diff --git a/router/index.ts b/router/index.ts index f43ee9d..7d50883 100644 --- a/router/index.ts +++ b/router/index.ts @@ -12,7 +12,7 @@ router.beforeEach((to, next) => { const { user } = useStore(); if ( - ignoreToken.includes(to.path) || + ignoreToken.some((e) => to.path.includes(e)) || to.path.startsWith("/pages/demo") || to.path.startsWith("/pages/template") ) {