mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
feat(route): isMain用于判断子窗口
This commit is contained in:
@@ -4,6 +4,7 @@ import Home from "../pages/Home.vue";
|
||||
import News from "../pages/News.vue";
|
||||
// 数据交互
|
||||
import Achievements from "../pages/Achievements.vue";
|
||||
import TPost from "../views/t-post.vue";
|
||||
// 应用配置相关
|
||||
import Config from "../pages/Config.vue";
|
||||
|
||||
@@ -12,30 +13,56 @@ const routes = [
|
||||
path: "/",
|
||||
name: "首页",
|
||||
component: Home,
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/achievements",
|
||||
name: "成就",
|
||||
component: Achievements,
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/config",
|
||||
name: "设置",
|
||||
component: Config,
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/GCG",
|
||||
name: "卡牌",
|
||||
component: GCG,
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/home",
|
||||
redirect: "/",
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/news",
|
||||
name: "咨讯",
|
||||
component: News,
|
||||
meta: {
|
||||
isMain: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/post_detail/:post_id",
|
||||
name: "帖子详情",
|
||||
component: TPost,
|
||||
meta: {
|
||||
isMain: false,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user