添加模板页
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user