mirror of https://github.com/1Panel-dev/1Panel
fix: 解决 WAF 选择启用一直 Loading的问题
parent
2ba24dadfb
commit
b956f81171
|
@ -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) => {
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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[]) => {
|
||||
|
|
Loading…
Reference in New Issue