Commit af2e874e authored by 周远喜's avatar 周远喜

新增一个页面。

parent 06406809
......@@ -32,9 +32,10 @@ export default {
watch: {
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
$route(to, from) {
console.warn("to,from", to, from);
console.warn("to,from", to, from,menuSider);
let path = to.matched[to.matched.length - 1].path;
if (!Setting.dynamicSiderMenu) {
debugger
let headerName = getHeaderName(path, menuSider);
if (headerName === null) {
path = to.path;
......
......@@ -9,5 +9,11 @@ export default {
path: `${pre}console`,
title: '主控台'
}
],
// ,
// {
// path: '/hello',
// title: 'hello',
// header: 'home'
// }
]
}
......@@ -6,11 +6,5 @@ import log from './modules/log';
export default [
dashboard,
log,
{
path: '/hello',
title: 'hello',
header: 'home',
icon: 'md-home'
}
log
];
......@@ -33,6 +33,15 @@ const frameIn = [
},
component: () => import('@/pages/system/log')
},
{
path: '/hello',
name: 'hello',
meta: {
title: 'hello',
auth: true
},
component: () => import('@/pages/system/log')
},
// 刷新页面 必须保留
{
path: 'refresh',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment