|
|
@@ -5,6 +5,7 @@ Vue.use(Router)
|
|
|
|
|
|
/* Layout */
|
|
|
import Layout from '@/layout'
|
|
|
+import { title } from '@/settings'
|
|
|
|
|
|
|
|
|
export const constantRoutes = [
|
|
|
@@ -32,65 +33,93 @@ export const constantRoutes = [
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
|
- path:"/level",
|
|
|
- component:Layout,
|
|
|
- meta:{
|
|
|
- title:"等级管理",
|
|
|
- icon:"el-icon-s-management"
|
|
|
+ path: "/level",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "等级管理",
|
|
|
+ icon: "el-icon-s-management"
|
|
|
},
|
|
|
- children:[
|
|
|
+ children: [
|
|
|
{
|
|
|
- path:"/level/list",
|
|
|
- name:"LevelList",
|
|
|
+ path: "/level/list",
|
|
|
+ name: "LevelList",
|
|
|
// @ 代表 src 目录
|
|
|
- component:() => import('@/views/level/LevelList.vue'),
|
|
|
- meta:{
|
|
|
- title:"等级列表",
|
|
|
- icon:"el-icon-s-order"
|
|
|
+ component: () => import('@/views/level/LevelList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "等级列表",
|
|
|
+ icon: "el-icon-s-order"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path:"/level/add",
|
|
|
- name:"LevelAdd",
|
|
|
+ path: "/level/add",
|
|
|
+ name: "LevelAdd",
|
|
|
+ // @ 代表 src 目录
|
|
|
+ component: () => import('@/views/level/LevelAdd.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "添加等级",
|
|
|
+ icon: "el-icon-circle-plus-outline"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "/address",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "地址管理",
|
|
|
+ icon: "el-icon-s-flag"
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "/address/list",
|
|
|
+ name: "AddressList",
|
|
|
// @ 代表 src 目录
|
|
|
- component:() => import('@/views/level/LevelAdd.vue'),
|
|
|
- meta:{
|
|
|
- title:"添加等级",
|
|
|
- icon:"el-icon-circle-plus-outline"
|
|
|
+ component: () => import('@/views/address/AddressList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "地址列表",
|
|
|
+ icon: "el-icon-tickets"
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ path: "/address/add",
|
|
|
+ name: "AddressAdd",
|
|
|
+ // @ 代表 src 目录
|
|
|
+ component: () => import('@/views/address/AddressAdd.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "添加地址",
|
|
|
+ icon: "el-icon-document-add"
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path:"/address",
|
|
|
- component:Layout,
|
|
|
- meta:{
|
|
|
- title:"地址管理",
|
|
|
- icon:"el-icon-s-flag"
|
|
|
+ path: "/message",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title:"消息管理",
|
|
|
+ icon:"el-icon-chat-round"
|
|
|
},
|
|
|
- children:[
|
|
|
+ children: [
|
|
|
{
|
|
|
- path:"/address/list",
|
|
|
- name:"AddressList",
|
|
|
+ path: "/message/list",
|
|
|
+ name: "MessageList",
|
|
|
// @ 代表 src 目录
|
|
|
- component:() => import('@/views/address/AddressList.vue'),
|
|
|
- meta:{
|
|
|
- title:"地址列表",
|
|
|
- icon:"el-icon-tickets"
|
|
|
+ component: () => import('@/views/message/MessageList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "消息列表",
|
|
|
+ icon: "el-icon-chat-line-round"
|
|
|
}
|
|
|
},{
|
|
|
- path:"/address/add",
|
|
|
- name:"AddressAdd",
|
|
|
+ path: "/message/add",
|
|
|
+ name: "MessageAdd",
|
|
|
// @ 代表 src 目录
|
|
|
- component:() => import('@/views/address/AddressAdd.vue'),
|
|
|
- meta:{
|
|
|
- title:"添加地址",
|
|
|
- icon:"el-icon-document-add"
|
|
|
+ component: () => import('@/views/message/MessageAdd.vue'),
|
|
|
+ meta: {
|
|
|
+ title: "添加消息",
|
|
|
+ icon: "el-icon-chat-line-square"
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|