no message
Former-commit-id: ba35b8e3c2dc8d8ddeb91951b12485b9bbe255b9 Former-commit-id: 0c7de77a06c20eec527d94e267dd05d177505e38 Former-commit-id: 677a14140769c64edb97c075e4dfc4a93792a879
This commit is contained in:
@@ -37,7 +37,8 @@ export default {
|
||||
'$route.matched': {
|
||||
handler (val) {
|
||||
console.log(val)
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
export default [
|
||||
{
|
||||
path: '/index',
|
||||
title: '首页'
|
||||
},
|
||||
{
|
||||
path: '/demo',
|
||||
title: '功能',
|
||||
children: [
|
||||
{
|
||||
// 路由菜单 插件
|
||||
const demoPlugins = {
|
||||
path: '/demo/plugins',
|
||||
title: '插件',
|
||||
icon: 'plug',
|
||||
@@ -51,8 +43,10 @@ export default [
|
||||
{ path: `${pre}js-cookie`, title: 'cookie读写' },
|
||||
{ path: `${pre}timeago`, title: '计算已经过去的时间' }
|
||||
])('/demo/plugins/')
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
// 路由菜单 组件
|
||||
const demoComponents = {
|
||||
path: '/demo/components',
|
||||
title: '组件',
|
||||
icon: 'puzzle-piece',
|
||||
@@ -91,8 +85,10 @@ export default [
|
||||
{ path: `${pre}highlight`, title: '代码高亮显示' },
|
||||
{ path: `${pre}markdown`, title: 'markdown解析' }
|
||||
])('/demo/components/')
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
// 路由菜单 图表
|
||||
const demoChart = {
|
||||
path: '/demo/chart',
|
||||
title: '图表',
|
||||
icon: 'pie-chart',
|
||||
@@ -115,7 +111,21 @@ export default [
|
||||
{ path: `${pre}all`, title: '示例' },
|
||||
{ path: `${pre}dynamicSize`, title: '动态尺寸与可拖拽' }
|
||||
])('/demo/chart/')
|
||||
}
|
||||
}
|
||||
|
||||
// 菜单
|
||||
export default [
|
||||
{
|
||||
path: '/index',
|
||||
title: '首页'
|
||||
},
|
||||
{
|
||||
path: '/demo',
|
||||
title: '功能',
|
||||
children: [
|
||||
demoPlugins,
|
||||
demoComponents,
|
||||
demoChart
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user