fix: 解决 WAF 选择启用一直 Loading的问题

pull/161/head
zhengkunwang223 2023-02-22 18:55:45 +08:00 committed by zhengkunwang223
parent 2ba24dadfb
commit b956f81171
4 changed files with 4 additions and 4 deletions

View File

@ -106,8 +106,8 @@ const updateEnable = async (enable: boolean) => {
await UpdateWafEnable(enableUpdate.value);
} catch (error) {
form.enable = !enable;
loading.value = false;
}
loading.value = false;
};
const submit = async (formEl: FormInstance | undefined) => {

View File

@ -128,8 +128,8 @@ const updateEnable = async (enable: boolean) => {
await UpdateWafEnable(enableUpdate.value);
} catch (error) {
enableUpdate.value.enable = !enable;
loading.value = false;
}
loading.value = false;
};
onMounted(() => {

View File

@ -151,8 +151,8 @@ const updateEnable = async (enable: boolean) => {
await UpdateWafEnable(enableUpdate.value);
} catch (error) {
enableUpdate.value.enable = !enable;
loading.value = false;
}
loading.value = false;
};
onMounted(() => {

View File

@ -147,8 +147,8 @@ const updateEnable = async (enable: boolean) => {
await UpdateWafEnable(enableUpdate.value);
} catch (error) {
enableUpdate.value.enable = !enable;
loading.value = false;
}
loading.value = false;
};
const submit = async (addArray: string[]) => {