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

新增一个页面。

parent 06406809
...@@ -32,9 +32,10 @@ export default { ...@@ -32,9 +32,10 @@ export default {
watch: { watch: {
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要) // 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
$route(to, from) { $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; let path = to.matched[to.matched.length - 1].path;
if (!Setting.dynamicSiderMenu) { if (!Setting.dynamicSiderMenu) {
debugger
let headerName = getHeaderName(path, menuSider); let headerName = getHeaderName(path, menuSider);
if (headerName === null) { if (headerName === null) {
path = to.path; path = to.path;
......
...@@ -9,5 +9,11 @@ export default { ...@@ -9,5 +9,11 @@ export default {
path: `${pre}console`, path: `${pre}console`,
title: '主控台' title: '主控台'
} }
], // ,
// {
// path: '/hello',
// title: 'hello',
// header: 'home'
// }
]
} }
...@@ -6,11 +6,5 @@ import log from './modules/log'; ...@@ -6,11 +6,5 @@ import log from './modules/log';
export default [ export default [
dashboard, dashboard,
log, log
{
path: '/hello',
title: 'hello',
header: 'home',
icon: 'md-home'
}
]; ];
...@@ -33,6 +33,15 @@ const frameIn = [ ...@@ -33,6 +33,15 @@ const frameIn = [
}, },
component: () => import('@/pages/system/log') component: () => import('@/pages/system/log')
}, },
{
path: '/hello',
name: 'hello',
meta: {
title: 'hello',
auth: true
},
component: () => import('@/pages/system/log')
},
// 刷新页面 必须保留 // 刷新页面 必须保留
{ {
path: 'refresh', 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