mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
feat: 登录后是否自动跳转至首页的配置项
This commit is contained in:
parent
18615482d4
commit
540206936f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user