mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决 WAF 选择启用一直 Loading的问题
This commit is contained in:
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…
x
Reference in New Issue
Block a user