P0-3真bug:路由守卫放行register+Playwright真机验证全绿 / 文档最终数字510+514
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user