mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: update login redirection and form submission handling
This commit is contained in:
parent
47d4bce84f
commit
3b2c337e36
|
|
@ -188,7 +188,7 @@ const openResetPassword = () => {
|
|||
|
||||
const logout = () => {
|
||||
login.logout().then(() => {
|
||||
router.push({name: 'login'})
|
||||
router.push({name: 'login', query: {login_mode: 'manual'}})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue