mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决申请证书失败没有关闭 Loading 的问题
This commit is contained in:
parent
9cf7138af2
commit
c55d6335af
@ -52,6 +52,7 @@ const handleClose = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
|
accountForm.value.resetFields();
|
||||||
account.value = {
|
account.value = {
|
||||||
email: '',
|
email: '',
|
||||||
};
|
};
|
||||||
|
@ -188,12 +188,15 @@ const changeProvider = () => {
|
|||||||
const getDnsResolve = async (acmeAccountId: number, domains: string[]) => {
|
const getDnsResolve = async (acmeAccountId: number, domains: string[]) => {
|
||||||
hasResolve.value = false;
|
hasResolve.value = false;
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await GetDnsResolve({ acmeAccountId: acmeAccountId, domains: domains });
|
try {
|
||||||
if (res.data) {
|
const res = await GetDnsResolve({ acmeAccountId: acmeAccountId, domains: domains });
|
||||||
dnsResolve.value = res.data;
|
if (res.data) {
|
||||||
hasResolve.value = true;
|
dnsResolve.value = res.data;
|
||||||
|
hasResolve.value = true;
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
loading.value = false;
|
||||||
}
|
}
|
||||||
loading.value = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const submit = async (formEl: FormInstance | undefined) => {
|
const submit = async (formEl: FormInstance | undefined) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user