diff --git a/web/src/router/index.ts b/web/src/router/index.ts index ef64ba8..129c0e1 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -121,7 +121,7 @@ router.beforeEach(async (to, from, next) => { NProgress.configure({showSpinner: false}); if (to.meta.title) NProgress.start(); const token = Session.get('token'); - if (to.path === '/login' && !token) { + if ((to.path === '/login' || to.path === '/login/supplier') && !token) { next(); NProgress.done(); } else {