Skip to content

Commit 3b2c337

Browse files
committed
feat: update login redirection and form submission handling
1 parent 47d4bce commit 3b2c337

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/src/layout/layout-header/avatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const openResetPassword = () => {
188188
189189
const logout = () => {
190190
login.logout().then(() => {
191-
router.push({name: 'login'})
191+
router.push({name: 'login', query: {login_mode: 'manual'}})
192192
})
193193
}
194194

ui/src/views/system-setting/authentication/component/Setting.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<el-scrollbar>
44
<div class="form-container p-24" v-loading="loading">
55
<el-form ref="authFormRef" :model="form" label-position="top"
6-
require-asterisk-position="right">
6+
require-asterisk-position="right" @submit.prevent>
77
<!-- 登录方式选择框 -->
88
<el-form-item
99
:label="$t('views.system.default_login')"
@@ -110,7 +110,7 @@ onMounted(() => {
110110
authApi.getLoginSetting().then((res) => {
111111
if (Object.keys(res.data).length > 0) {
112112
form.value = res.data;
113-
loginMethods.value =res.data.auth_types
113+
loginMethods.value = res.data.auth_types
114114
}
115115
})
116116
});

0 commit comments

Comments
 (0)