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': {
|
'$route.matched': {
|
||||||
handler (val) {
|
handler (val) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
}
|
},
|
||||||
|
immediate: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
export default [
|
// 路由菜单 插件
|
||||||
{
|
const demoPlugins = {
|
||||||
path: '/index',
|
|
||||||
title: '首页'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/demo',
|
|
||||||
title: '功能',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/demo/plugins',
|
path: '/demo/plugins',
|
||||||
title: '插件',
|
title: '插件',
|
||||||
icon: 'plug',
|
icon: 'plug',
|
||||||
@@ -51,8 +43,10 @@ export default [
|
|||||||
{ path: `${pre}js-cookie`, title: 'cookie读写' },
|
{ path: `${pre}js-cookie`, title: 'cookie读写' },
|
||||||
{ path: `${pre}timeago`, title: '计算已经过去的时间' }
|
{ path: `${pre}timeago`, title: '计算已经过去的时间' }
|
||||||
])('/demo/plugins/')
|
])('/demo/plugins/')
|
||||||
},
|
}
|
||||||
{
|
|
||||||
|
// 路由菜单 组件
|
||||||
|
const demoComponents = {
|
||||||
path: '/demo/components',
|
path: '/demo/components',
|
||||||
title: '组件',
|
title: '组件',
|
||||||
icon: 'puzzle-piece',
|
icon: 'puzzle-piece',
|
||||||
@@ -91,8 +85,10 @@ export default [
|
|||||||
{ path: `${pre}highlight`, title: '代码高亮显示' },
|
{ path: `${pre}highlight`, title: '代码高亮显示' },
|
||||||
{ path: `${pre}markdown`, title: 'markdown解析' }
|
{ path: `${pre}markdown`, title: 'markdown解析' }
|
||||||
])('/demo/components/')
|
])('/demo/components/')
|
||||||
},
|
}
|
||||||
{
|
|
||||||
|
// 路由菜单 图表
|
||||||
|
const demoChart = {
|
||||||
path: '/demo/chart',
|
path: '/demo/chart',
|
||||||
title: '图表',
|
title: '图表',
|
||||||
icon: 'pie-chart',
|
icon: 'pie-chart',
|
||||||
@@ -116,6 +112,20 @@ export default [
|
|||||||
{ path: `${pre}dynamicSize`, title: '动态尺寸与可拖拽' }
|
{ path: `${pre}dynamicSize`, title: '动态尺寸与可拖拽' }
|
||||||
])('/demo/chart/')
|
])('/demo/chart/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 菜单
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
path: '/index',
|
||||||
|
title: '首页'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/demo',
|
||||||
|
title: '功能',
|
||||||
|
children: [
|
||||||
|
demoPlugins,
|
||||||
|
demoComponents,
|
||||||
|
demoChart
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user