From f54d7b85a32d8a05af5a71dba5808b2bd8c70d12 Mon Sep 17 00:00:00 2001 From: lewis_yan Date: Thu, 2 Apr 2026 10:01:03 +0800 Subject: [PATCH] fix(login): allow /login/supplier route to be accessed without token --- web/src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {