Browse Source

fix: 解决申请证书失败没有关闭 Loading 的问题

pull/196/head
zhengkunwang223 2 years ago committed by zhengkunwang223
parent
commit
c55d6335af
  1. 1
      frontend/src/views/website/ssl/acme-account/create/index.vue
  2. 13
      frontend/src/views/website/ssl/create/index.vue

1
frontend/src/views/website/ssl/acme-account/create/index.vue

@ -52,6 +52,7 @@ const handleClose = () => {
};
const resetForm = () => {
accountForm.value.resetFields();
account.value = {
email: '',
};

13
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) => {

Loading…
Cancel
Save