diff --git a/src/router/index.js b/src/router/index.js index 5e13ea3..abc316f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,9 +17,9 @@ Vue.use(Router); import Layout from "@/views/Layout" import basic from "./basic" // 基础功能 -// import payment from "./payment" // 缴费管理 +import payment from "./payment" // 缴费管理 import shop from "./shop" // 智慧商城 -// import operation from "./operation" // 运营管理 +import operation from "./operation" // 运营管理 import setting from "./setting" // 设置 const router = [ @@ -34,17 +34,6 @@ const router = [ ...basic, ] }, - { - path: "/setting", - name: "setting", - title: "设置", - component: Layout, - redirect: '/basicSet', - meta: {title: '设置'}, - children: [ - ...setting, - ] - }, { path: "/shop", name: "shop", @@ -56,6 +45,39 @@ const router = [ ...shop, ] }, + { + path: "/payment", + name: "payment", + title: "缴费管理", + component: Layout, + redirect: '/', + meta: {title: '缴费管理'}, + children: [ + ...payment, + ] + }, + { + path: "/operation", + name: "operation", + title: "运营管理", + component: Layout, + redirect: '/', + meta: {title: '运营管理'}, + children: [ + ...operation, + ] + }, + { + path: "/setting", + name: "setting", + title: "设置", + component: Layout, + redirect: '/basicSet', + meta: {title: '设置'}, + children: [ + ...setting, + ] + }, { path: "/login", name: "Login", diff --git a/src/views/Layout/index.vue b/src/views/Layout/index.vue index 2abfbaf..03d0cb9 100644 --- a/src/views/Layout/index.vue +++ b/src/views/Layout/index.vue @@ -73,22 +73,22 @@ export default { label: "基础功能", value: "basic" }, - // { - // label: "缴费管理", - // value: "payment" - // }, { label: "智慧商城", value: "shop" }, - // { - // label: "运营管理", - // value: "operation" - // }, - // { - // label: "设置", - // value: "setting" - // } + { + label: "缴费管理", + value: "payment" + }, + { + label: "运营管理", + value: "operation" + }, + { + label: "设置", + value: "setting" + } ], }; },