feat: update login settings API call to use structured parameters
parent
5bea2b2566
commit
e4232166e8
|
|
@ -90,10 +90,13 @@ const form = ref<any>({
|
||||||
|
|
||||||
const submit = async (formEl: FormInstance | undefined) => {
|
const submit = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return;
|
if (!formEl) return;
|
||||||
console.log(form)
|
|
||||||
await formEl.validate((valid, fields) => {
|
await formEl.validate((valid, fields) => {
|
||||||
if (valid) {
|
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'))
|
MsgSuccess(t('common.saveSuccess'))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue