From 034158771695b8dd696d37f7ca6b8bd77c05ba0a Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Tue, 11 Jun 2024 11:33:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=9C=AA=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E8=AE=BE=E7=BD=AE=E8=A1=A8=E5=8D=95=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=80=BC=20(#5383)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/setting/safe/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/setting/safe/index.vue b/frontend/src/views/setting/safe/index.vue index c6bb9d9d9..f04abb493 100644 --- a/frontend/src/views/setting/safe/index.vue +++ b/frontend/src/views/setting/safe/index.vue @@ -224,6 +224,7 @@ const form = reactive({ allowIPs: '', bindDomain: '', noAuthSetting: '200 - ' + i18n.global.t('setting.help200'), + noAuthSettingValue: '200', }); const unset = ref(i18n.global.t('setting.unSetting')); @@ -246,6 +247,7 @@ const search = async () => { form.mfaInterval = Number(res.data.mfaInterval); form.allowIPs = res.data.allowIPs.replaceAll(',', '\n'); form.bindDomain = res.data.bindDomain; + form.noAuthSettingValue = res.data.noAuthSetting; if (res.data.noAuthSetting !== '200') { form.noAuthSetting = res.data.noAuthSetting + ' - ' + i18n.global.t('setting.error' + res.data.noAuthSetting); } else { @@ -297,7 +299,7 @@ const onChangeBind = () => { bindRef.value.acceptParams({ ipv6: form.ipv6, bindAddress: form.bindAddress }); }; const onChangeResponse = () => { - responseRef.value.acceptParams({ noAuthSetting: form.noAuthSetting }); + responseRef.value.acceptParams({ noAuthSetting: form.noAuthSettingValue }); }; const onChangeBindDomain = () => { domainRef.value.acceptParams({ bindDomain: form.bindDomain });