Browse Source

路径判断错误

icssoa 6 tháng trước cách đây
mục cha
commit
97a25d3c7a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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")
 	) {