fix(electron): update electron login page

This commit is contained in:
qier222 2020-12-09 18:27:19 +08:00
parent f68ae5c078
commit 95aa6e176c
4 changed files with 20 additions and 5 deletions

View file

@ -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();