feat: 更新
This commit is contained in:
1 parent
96230447e4
commit
1f46e44efc
7 files changed
+103
-34
No files matched your search
+23
-3
@@ -2,7 +2,7 @@ const routes = [
|
||||
{
|
||||
path: "/",
|
||||
name: "app",
|
||||
redirect: "/reactivity",
|
||||
redirect: "/reactivity"
|
||||
},
|
||||
{
|
||||
path: "/reactivity",
|
||||
@@ -59,7 +59,7 @@ const routes = [
|
||||
name: "computedAdvan",
|
||||
meta: { title: "computed双向绑定" },
|
||||
component: () => import("@/views/computed/ComputedAdvan.vue")
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -103,9 +103,29 @@ const routes = [
|
||||
name: "watchStop",
|
||||
meta: { title: "watch停止侦听器" },
|
||||
component: () => import("@/views/watch/WatchStop.vue")
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/component",
|
||||
name: "component",
|
||||
meta: { title: "组件" },
|
||||
redirect: "/component/global",
|
||||
children: [
|
||||
{
|
||||
path: "/component/global",
|
||||
name: "globalComponent",
|
||||
meta: { title: "全局组件" },
|
||||
component: () => import("@/views/component/GlobalComponent.vue")
|
||||
},
|
||||
{
|
||||
path: "/component/part",
|
||||
name: "partComponent",
|
||||
meta: { title: "局部组件" },
|
||||
component: () => import("@/views/component/PartComponent.vue")
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in new issue
Block a user