feat: update login redirection and form submission handling

This commit is contained in:
wxg0103 2025-09-19 15:28:12 +08:00
parent 47d4bce84f
commit 3b2c337e36
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ const openResetPassword = () => {
const logout = () => {
login.logout().then(() => {
router.push({name: 'login'})
router.push({name: 'login', query: {login_mode: 'manual'}})
})
}

View File

@ -3,7 +3,7 @@
<el-scrollbar>
<div class="form-container p-24" v-loading="loading">
<el-form ref="authFormRef" :model="form" label-position="top"
require-asterisk-position="right">
require-asterisk-position="right" @submit.prevent>
<!-- 登录方式选择框 -->
<el-form-item
:label="$t('views.system.default_login')"
@ -110,7 +110,7 @@ onMounted(() => {
authApi.getLoginSetting().then((res) => {
if (Object.keys(res.data).length > 0) {
form.value = res.data;
loginMethods.value =res.data.auth_types
loginMethods.value = res.data.auth_types
}
})
});