From 3b2c337e360584bf17d51b0edd8f2591ce842bbb Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 19 Sep 2025 15:28:12 +0800 Subject: [PATCH] feat: update login redirection and form submission handling --- ui/src/layout/layout-header/avatar/index.vue | 2 +- .../views/system-setting/authentication/component/Setting.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/layout/layout-header/avatar/index.vue b/ui/src/layout/layout-header/avatar/index.vue index c3f8278a2..f5f9d7be1 100644 --- a/ui/src/layout/layout-header/avatar/index.vue +++ b/ui/src/layout/layout-header/avatar/index.vue @@ -188,7 +188,7 @@ const openResetPassword = () => { const logout = () => { login.logout().then(() => { - router.push({name: 'login'}) + router.push({name: 'login', query: {login_mode: 'manual'}}) }) } diff --git a/ui/src/views/system-setting/authentication/component/Setting.vue b/ui/src/views/system-setting/authentication/component/Setting.vue index 39d703b03..b2a629b28 100644 --- a/ui/src/views/system-setting/authentication/component/Setting.vue +++ b/ui/src/views/system-setting/authentication/component/Setting.vue @@ -3,7 +3,7 @@
+ require-asterisk-position="right" @submit.prevent> { 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 } }) });