1.添加Container 布局容器 Ztree页面,设置导航搜索路由

This commit is contained in:
WangHao
2020-08-11 22:31:18 +08:00
parent b86156d9d0
commit 606ca27730
3 changed files with 399 additions and 316 deletions

View File

@ -6,6 +6,13 @@ Vue.use(Router)
/* Layout */
import Layout from '@/layout'
// 导航首页
import bookmarkmenu from '@/views/bookmark/menu';
import index3 from '@/views/bookmark/index';
/**
* Note: 路由配置项
*
@ -23,6 +30,15 @@ import Layout from '@/layout'
breadcrumb: false // 如果设置为false则不会在breadcrumb面包屑中显示
}
*/
//书签路由bookmark
export const bookmark = [
{
path: '/index2',
component: bookmarkmenu,
hidden: true
},
]
// 公共路由
export const constantRoutes = [
@ -117,11 +133,23 @@ export const constantRoutes = [
meta: { title: '修改生成配置' }
}
]
}
},
{
path: '/index2',
component: bookmarkmenu,
hidden: true
},
{
path: '/index3',
component: index3,
hidden: true
},
]
export default new Router({
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
routes:constantRoutes
})