ソースを参照

路径判断错误

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