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

okhi

parent 9caad6ce
...@@ -34,7 +34,6 @@ export default { ...@@ -34,7 +34,6 @@ export default {
$route(to, from) { $route(to, from) {
console.warn("to,from", to, from); console.warn("to,from", to, from);
let path = to.matched[to.matched.length - 1].path; let path = to.matched[to.matched.length - 1].path;
debugger;
if (!Setting.dynamicSiderMenu) { if (!Setting.dynamicSiderMenu) {
let headerName = getHeaderName(path, menuSider); let headerName = getHeaderName(path, menuSider);
if (headerName === null) { if (headerName === null) {
......
...@@ -5,10 +5,9 @@ export default { ...@@ -5,10 +5,9 @@ export default {
title: 'Dashboard', title: 'Dashboard',
header: 'home', header: 'home',
icon: 'md-speedometer', icon: 'md-speedometer',
children: [ children: [{
{
path: `${pre}console`, path: `${pre}console`,
title: '主控台' title: '主控台'
} }
] ],
} }
...@@ -6,5 +6,11 @@ import log from './modules/log'; ...@@ -6,5 +6,11 @@ import log from './modules/log';
export default [ export default [
dashboard, dashboard,
log log,
{
path: '/hello',
title: 'hello',
header: 'home',
icon: 'md-home'
}
]; ];
<template>
<h1>这是一个测试页面</h1>
</template>
<script>
export default {
}
</script>
\ No newline at end of file
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