| | |
| | | // icon: "build", |
| | | // link: null, |
| | | // noCache: false, |
| | | // title: "生产仓库列表", |
| | | // title: "生产资料列表", |
| | | // }, |
| | | // component: () => import('@/views/basic/gyWarehouse/index.vue'), |
| | | // component: () => |
| | | // import("@/views/basic/production/gySource.vue"), |
| | | // hidden: false, |
| | | // name: "GyWarehouse", |
| | | // path: "gyWarehouse", |
| | | // }, |
| | | // name: "GySource", |
| | | // path: "gySource", |
| | | // } |
| | | ], |
| | | }, |
| | | ], |
| | | },{ |
| | | alwaysShow: true, |
| | | component: "Layout", |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "系统管理", |
| | | }, |
| | | hidden: false, |
| | | name: "System", |
| | | path: "/system", |
| | | redirect: "noRedirect", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "用户管理", |
| | | }, |
| | | hidden: false, |
| | | name: "User", |
| | | path: "user", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "用户列表", |
| | | }, |
| | | component: () => |
| | | import("@/views/system/user/xtUserList.vue"), |
| | | hidden: false, |
| | | name: "XtUserList", |
| | | path: "xtUserList", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | |
| | | rewriteRoutes.push({ path: "*", redirect: "/404", hidden: true }); |
| | | router.addRoutes(asyncRoutes); |
| | | commit("SET_ROUTES", rewriteRoutes); |
| | | commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes)); |
| | | commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes)); |
| | | commit("SET_DEFAULT_ROUTES", sidebarRoutes); |
| | | commit("SET_TOPBAR_ROUTES", sidebarRoutes); |