更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
app_title: 'vueadmin',
|
||||
DASHBOARD_URL: '/home',
|
||||
baseURL: ''
|
||||
}
|
||||
|
||||
18
src/config/routes.js
Normal file
18
src/config/routes.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 用户静态路由配置
|
||||
* 这些路由会根据用户角色进行过滤后添加到路由中
|
||||
*/
|
||||
const userRoutes = [
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: 'home',
|
||||
meta: {
|
||||
title: 'dashboard',
|
||||
icon: 'el-icon-odometer',
|
||||
role: ['admin']
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
export default userRoutes
|
||||
Reference in New Issue
Block a user