소스 검색

路径判断错误

icssoa 6 달 전
부모
커밋
97a25d3c7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      router/index.ts

+ 1 - 1
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")
 	) {