新增:根据当前路由自动展开菜单

This commit is contained in:
chenghx
2018-08-02 17:59:42 +08:00
parent 0aaf3cf893
commit f5b569f170
6 changed files with 114 additions and 5 deletions

View File

@@ -17,6 +17,8 @@ import StandardList from '@/components/list/StandardList'
import CardList from '@/components/list/CardList'
import SearchLayout from '@/components/list/SearchLayout'
import ArticleList from '@/components/list/ArticleList'
import ApplicationList from '@/components/list/ApplicationList'
import ProjectList from '@/components/list/ProjectList'
import WorkPlace from '@/components/dashboard/WorkPlace'
Vue.use(Router)
@@ -105,6 +107,18 @@ export default new Router({
name: '文章',
component: ArticleList,
icon: 'none'
},
{
path: '/list/search/application',
name: '应用',
component: ApplicationList,
icon: 'none'
},
{
path: '/list/search/project',
name: '项目',
component: ProjectList,
icon: 'none'
}
]
}