Skip to content

Commit 3ca3949

Browse files
Frost-ZXwanghe-fit2cloud
authored andcommitted
fix: 修正未认证设置表单初始值 (#5383)
1 parent 2e05af6 commit 3ca3949

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/views/setting/safe/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ const form = reactive({
224224
allowIPs: '',
225225
bindDomain: '',
226226
noAuthSetting: '200 - ' + i18n.global.t('setting.help200'),
227+
noAuthSettingValue: '200',
227228
});
228229
229230
const unset = ref(i18n.global.t('setting.unSetting'));
@@ -246,6 +247,7 @@ const search = async () => {
246247
form.mfaInterval = Number(res.data.mfaInterval);
247248
form.allowIPs = res.data.allowIPs.replaceAll(',', '\n');
248249
form.bindDomain = res.data.bindDomain;
250+
form.noAuthSettingValue = res.data.noAuthSetting;
249251
if (res.data.noAuthSetting !== '200') {
250252
form.noAuthSetting = res.data.noAuthSetting + ' - ' + i18n.global.t('setting.error' + res.data.noAuthSetting);
251253
} else {
@@ -297,7 +299,7 @@ const onChangeBind = () => {
297299
bindRef.value.acceptParams({ ipv6: form.ipv6, bindAddress: form.bindAddress });
298300
};
299301
const onChangeResponse = () => {
300-
responseRef.value.acceptParams({ noAuthSetting: form.noAuthSetting });
302+
responseRef.value.acceptParams({ noAuthSetting: form.noAuthSettingValue });
301303
};
302304
const onChangeBindDomain = () => {
303305
domainRef.value.acceptParams({ bindDomain: form.bindDomain });

0 commit comments

Comments
 (0)