diff --git a/blossom-editor/src/renderer/src/views/index/SettingLogin.vue b/blossom-editor/src/renderer/src/views/index/SettingLogin.vue index 2e7911f..2e029aa 100644 --- a/blossom-editor/src/renderer/src/views/index/SettingLogin.vue +++ b/blossom-editor/src/renderer/src/views/index/SettingLogin.vue @@ -117,7 +117,7 @@ const login = async () => { } logingIn.value = true await userStore.loginByPassword(formLogin.value.username, formLogin.value.password) - if (configStore.viewStyle.isLoginToHomePage) { + if (userStore.isLogin && configStore.viewStyle.isLoginToHomePage) { router.push('/home') } logingIn.value = false