mirror of
https://github.com/certd/certd.git
synced 2026-07-07 13:07:36 +08:00
chore: 整理代码并修复部分交互细节
1. 移除configuration.ts中多余的空行 2. 调整dns-persist列表列宽至220px 3. 为icon-select新增selected-change事件并传递选中项信息 4. 优化apply-template的infoRequest逻辑,处理空id情况 5. 调整设置弹窗宽度至600px,更新绑定按钮文案 6. 为sslProvider新增mergeScript,切换时清空acme账号配置 7. 更新helper文案修正ZeroSSL翻墙说明
This commit is contained in:
@@ -15,8 +15,13 @@ const props = defineProps<{
|
||||
value: any;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(["update:value"]);
|
||||
const emit = defineEmits(["update:value", "selected-change"]);
|
||||
function onChange(value: any) {
|
||||
const item = props.options.find(item => item.value === value);
|
||||
emit("update:value", value);
|
||||
emit("selected-change", {
|
||||
value,
|
||||
...item,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -322,7 +322,7 @@ export const useSettingStore = defineStore({
|
||||
}
|
||||
const modalRef: any = Modal.warning({
|
||||
title: title,
|
||||
width: 500,
|
||||
width: 600,
|
||||
keyboard: false,
|
||||
closable,
|
||||
content: () => {
|
||||
@@ -334,7 +334,7 @@ export const useSettingStore = defineStore({
|
||||
<a-tag color="green">{bindUrl || "未占用"}</a-tag>
|
||||
</span>
|
||||
<a-button type="primary" onClick={() => doBindRequest("url")}>
|
||||
绑定到地址1
|
||||
绑定当前URL到地址1
|
||||
</a-button>
|
||||
</div>
|
||||
<div class="helper">各类通知里面会以地址1作为URL显示</div>
|
||||
@@ -344,7 +344,7 @@ export const useSettingStore = defineStore({
|
||||
<a-tag color="green">{bindUrl2 || "未占用"}</a-tag>
|
||||
</span>
|
||||
<a-button type="primary" onClick={() => doBindRequest("url2")}>
|
||||
绑定到地址2
|
||||
绑定当前URL到地址2
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,10 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
return await api.DelObj(row.id);
|
||||
};
|
||||
const infoRequest = async ({ row }: DelReq) => {
|
||||
return await api.GetObj(row.id);
|
||||
if (row?.id) {
|
||||
return await api.GetObj(row.id);
|
||||
}
|
||||
return row;
|
||||
};
|
||||
|
||||
async function setDefault(row: any) {
|
||||
|
||||
@@ -180,7 +180,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
},
|
||||
},
|
||||
column: {
|
||||
width: 180,
|
||||
width: 220,
|
||||
},
|
||||
},
|
||||
caType: {
|
||||
|
||||
Reference in New Issue
Block a user