feat: update login settings API call to use structured parameters

v3.2
wxg0103 2025-09-19 14:03:58 +08:00
parent 5bea2b2566
commit e4232166e8
1 changed files with 5 additions and 2 deletions

View File

@ -90,10 +90,13 @@ const form = ref<any>({
const submit = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
console.log(form)
await formEl.validate((valid, fields) => {
if (valid) {
authApi.putLoginSetting(form.value, loading).then((res) => {
const params = {
default_value: form.value.default_value,
max_attempts: form.value.max_attempts,
};
authApi.putLoginSetting(params, loading).then((res) => {
MsgSuccess(t('common.saveSuccess'))
})
} else {