mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix(electron): update electron login page
This commit is contained in:
parent
f68ae5c078
commit
95aa6e176c
4 changed files with 20 additions and 5 deletions
|
|
@ -128,8 +128,11 @@ router.beforeEach((to, from, next) => {
|
|||
if (isLooseLoggedIn()) {
|
||||
next();
|
||||
} else {
|
||||
if (process.env.IS_ELECTRON === true) next({ path: "/login/account" });
|
||||
next({ path: "/login" });
|
||||
if (process.env.IS_ELECTRON === true) {
|
||||
next({ path: "/login/account" });
|
||||
} else {
|
||||
next({ path: "/login" });
|
||||
}
|
||||
}
|
||||
} else {
|
||||
next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue