瀏覽代碼

路径判断错误

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