From a06afe1468144c553a8f51afb07b33b519883558 Mon Sep 17 00:00:00 2001 From: qier222 Date: Thu, 3 Dec 2020 22:15:26 +0800 Subject: [PATCH] fix(electron): remove search account login --- src/router/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/index.js b/src/router/index.js index 3825258..1fcad49 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -128,6 +128,7 @@ router.beforeEach((to, from, next) => { if (isLooseLoggedIn()) { next(); } else { + if (process.env.IS_ELECTRON === true) next({ path: "/login/account" }); next({ path: "/login" }); } } else {