diff --git a/frontend/src/views/ai/model/domain/index.vue b/frontend/src/views/ai/model/domain/index.vue index dd73308ab..8ae691831 100644 --- a/frontend/src/views/ai/model/domain/index.vue +++ b/frontend/src/views/ai/model/domain/index.vue @@ -80,12 +80,7 @@ - + ({ domain: [Rules.domainWithPort], + sslID: [Rules.requiredSelectBusiness], }); const emit = defineEmits(['search']); @@ -173,7 +169,7 @@ const changeSSl = (sslid: number) => { const changeSSL = () => { if (!req.value.enableSSL) { - req.value.sslID = 0; + req.value.sslID = undefined; } else { listAcmeAccount(); } @@ -198,7 +194,7 @@ const listSSL = () => { } changeSSl(req.value.sslID); } else { - req.value.sslID = 0; + req.value.sslID = undefined; } }); }; @@ -236,7 +232,7 @@ const search = async (appInstallID: number) => { operate.value = 'update'; req.value.domain = res.data.domain; req.value.websiteID = res.data.websiteID; - if (res.data.allowIPs.length > 0) { + if (res.data.allowIPs && res.data.allowIPs.length > 0) { req.value.ipList = res.data.allowIPs.join('\n'); } if (res.data.sslID > 0) {