diff --git a/frontend/src/views/website/ssl/acme-account/create/index.vue b/frontend/src/views/website/ssl/acme-account/create/index.vue index 1b2feb8f4..d26c37d8b 100644 --- a/frontend/src/views/website/ssl/acme-account/create/index.vue +++ b/frontend/src/views/website/ssl/acme-account/create/index.vue @@ -52,6 +52,7 @@ const handleClose = () => { }; const resetForm = () => { + accountForm.value.resetFields(); account.value = { email: '', }; diff --git a/frontend/src/views/website/ssl/create/index.vue b/frontend/src/views/website/ssl/create/index.vue index f65258584..66ffec3b3 100644 --- a/frontend/src/views/website/ssl/create/index.vue +++ b/frontend/src/views/website/ssl/create/index.vue @@ -188,12 +188,15 @@ const changeProvider = () => { const getDnsResolve = async (acmeAccountId: number, domains: string[]) => { hasResolve.value = false; loading.value = true; - const res = await GetDnsResolve({ acmeAccountId: acmeAccountId, domains: domains }); - if (res.data) { - dnsResolve.value = res.data; - hasResolve.value = true; + try { + const res = await GetDnsResolve({ acmeAccountId: acmeAccountId, domains: domains }); + if (res.data) { + dnsResolve.value = res.data; + hasResolve.value = true; + } + } finally { + loading.value = false; } - loading.value = false; }; const submit = async (formEl: FormInstance | undefined) => {