添加模板页

This commit is contained in:
icssoa
2025-08-20 08:53:58 +08:00
parent 10e17efb67
commit b9f20beee2
8 changed files with 482 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import { router, useStore } from "@/cool";
const ignoreToken = [
"/pages/index/home",
"/pages/index/my",
"/pages/index/template",
"/pages/user/login",
"/pages/user/doc"
];
@@ -10,7 +11,11 @@ const ignoreToken = [
router.beforeEach((to, next) => {
const { user } = useStore();
if (ignoreToken.includes(to.path) || to.path.startsWith("/pages/demo")) {
if (
ignoreToken.includes(to.path) ||
to.path.startsWith("/pages/demo") ||
to.path.startsWith("/pages/template")
) {
next();
} else {
if (!user.isNull()) {