|
@@ -48,7 +48,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "/",
|
|
|
path: "/index",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/menu/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -57,7 +57,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/menu",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/role/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -66,7 +66,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Role",
|
|
|
path: "/system/role",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/user/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -75,7 +75,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/user",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/dept/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -84,7 +84,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/dept",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/post/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -93,7 +93,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/post",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/dict/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -102,7 +102,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/dict",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -111,7 +111,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -120,7 +120,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -129,7 +129,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -138,7 +138,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -147,7 +147,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -156,7 +156,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -165,7 +165,7 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
+ }, {
|
|
|
component: "system/notice/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
@@ -174,21 +174,23 @@ const usePermissionStore = defineStore(
|
|
|
},
|
|
|
name: "Menu",
|
|
|
path: "/system/notice",
|
|
|
- },{
|
|
|
- component: "system/notice/index",
|
|
|
+ }, {
|
|
|
+ component: "receptiondesk/index",
|
|
|
hidden: false,
|
|
|
meta: {
|
|
|
icon: "service",
|
|
|
title: "服务台"
|
|
|
},
|
|
|
- name: "Menu",
|
|
|
- path: "/system/notice",
|
|
|
+ name: "Receptiondesk",
|
|
|
+ path: "/receptiondesk",
|
|
|
}]
|
|
|
// const sidebarRoutes = filterAsyncRouter(sdata)
|
|
|
const sidebarRoutes = filterAsyncRouter(arrData)
|
|
|
+ // const rewriteRoutes = filterAsyncRouter(arrData, false, true)
|
|
|
const rewriteRoutes = filterAsyncRouter(rdata, false, true)
|
|
|
const defaultRoutes = filterAsyncRouter(defaultData)
|
|
|
const asyncRoutes = filterDynamicRoutes(dynamicRoutes)
|
|
|
+
|
|
|
asyncRoutes.forEach(route => { router.addRoute(route) })
|
|
|
this.setRoutes(rewriteRoutes)
|
|
|
this.setSidebarRouters(constantRoutes.concat(sidebarRoutes))
|