mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 23:47:39 +08:00
fix: 修正未认证设置表单初始值 (#5383)
This commit is contained in:
parent
e2316369a7
commit
0341587716
1 changed files with 3 additions and 1 deletions
|
@ -224,6 +224,7 @@ const form = reactive({
|
||||||
allowIPs: '',
|
allowIPs: '',
|
||||||
bindDomain: '',
|
bindDomain: '',
|
||||||
noAuthSetting: '200 - ' + i18n.global.t('setting.help200'),
|
noAuthSetting: '200 - ' + i18n.global.t('setting.help200'),
|
||||||
|
noAuthSettingValue: '200',
|
||||||
});
|
});
|
||||||
|
|
||||||
const unset = ref(i18n.global.t('setting.unSetting'));
|
const unset = ref(i18n.global.t('setting.unSetting'));
|
||||||
|
@ -246,6 +247,7 @@ const search = async () => {
|
||||||
form.mfaInterval = Number(res.data.mfaInterval);
|
form.mfaInterval = Number(res.data.mfaInterval);
|
||||||
form.allowIPs = res.data.allowIPs.replaceAll(',', '\n');
|
form.allowIPs = res.data.allowIPs.replaceAll(',', '\n');
|
||||||
form.bindDomain = res.data.bindDomain;
|
form.bindDomain = res.data.bindDomain;
|
||||||
|
form.noAuthSettingValue = res.data.noAuthSetting;
|
||||||
if (res.data.noAuthSetting !== '200') {
|
if (res.data.noAuthSetting !== '200') {
|
||||||
form.noAuthSetting = res.data.noAuthSetting + ' - ' + i18n.global.t('setting.error' + res.data.noAuthSetting);
|
form.noAuthSetting = res.data.noAuthSetting + ' - ' + i18n.global.t('setting.error' + res.data.noAuthSetting);
|
||||||
} else {
|
} else {
|
||||||
|
@ -297,7 +299,7 @@ const onChangeBind = () => {
|
||||||
bindRef.value.acceptParams({ ipv6: form.ipv6, bindAddress: form.bindAddress });
|
bindRef.value.acceptParams({ ipv6: form.ipv6, bindAddress: form.bindAddress });
|
||||||
};
|
};
|
||||||
const onChangeResponse = () => {
|
const onChangeResponse = () => {
|
||||||
responseRef.value.acceptParams({ noAuthSetting: form.noAuthSetting });
|
responseRef.value.acceptParams({ noAuthSetting: form.noAuthSettingValue });
|
||||||
};
|
};
|
||||||
const onChangeBindDomain = () => {
|
const onChangeBindDomain = () => {
|
||||||
domainRef.value.acceptParams({ bindDomain: form.bindDomain });
|
domainRef.value.acceptParams({ bindDomain: form.bindDomain });
|
||||||
|
|
Loading…
Add table
Reference in a new issue