P0-3真bug:路由守卫放行register+Playwright真机验证全绿 / 文档最终数字510+514

This commit is contained in:
seagull
2026-09-12 02:25:50 +08:00
parent 67540e8d30
commit 3809774a6f
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ const routes = [
const router = createRouter({ history: createWebHashHistory(), routes })
const PUBLIC_ROUTES = new Set(['login', 'storefront'])
const PUBLIC_ROUTES = new Set(['login', 'register', 'storefront'])
router.beforeEach((to) => {
const token = localStorage.getItem('token')