123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
-
- const newMenu = [
-
- {
- path: '/distributor',
- redirect: '/distributor/account',
- },
- {
- name: 'distributor.account',
- icon: 'icon-zhanghaoguanli',
- path: '/distributor/account',
- access: "isShow",
- component: './Distributor/Account',
- },
- {
- name: 'distributor.miniApp',
- icon: 'icon-xiaochengxu',
- path: '/distributor/miniApp',
- access: "isShow",
- component: './Distributor/MiniApp',
- },
-
- {
- path: '/miniApp',
- redirect: '/miniApp/book',
- },
-
- {
- path: '/miniApp/book',
- name: 'miniApp.book',
- icon: 'icon-xiaoshuo',
- access: 'isShow',
- routes: [
- {
- path: '/miniApp/book',
- redirect: '/miniApp/book/short',
- },
- {
- path: '/miniApp/book/short',
- name: "short",
- component: './MiniApp/BookManage/Short',
- },
- {
- path: '/miniApp/book/long',
- name: 'long',
- component: './MiniApp/BookManage/Long',
- },
- ],
- },
-
- {
- name: 'miniApp.appManage',
- icon: 'icon-xiaochengxu',
- path: '/miniApp/appManage',
- access: "isShow",
- routes: [
- {
- path: '/miniApp/appManage/moduleConfig',
- name: "moduleConfig",
- component: './Admin',
- },
- {
- path: '/miniApp/appManage/moduleInfo',
- name: "moduleInfo",
- component: './Admin',
- },
- {
- path: '/miniApp/appManage/shortBookShelf',
- name: "shortBookShelf",
- component: './Admin',
- },
- {
- path: '/miniApp/appManage/shortBook',
- name: "shortBook",
- component: './Admin',
- },
- {
- path: '/miniApp/appManage/longtBook',
- name: "longBook",
- component: './Admin',
- },
- {
- path: '/miniApp/appManage/classify',
- name: "classify",
- component: './Admin',
- },
- ],
- },
-
- {
- path: '/miniApp/readLog',
- name: 'miniApp.readLog',
- icon: 'icon-yuedu-2',
- access: 'isShow',
- routes: [
- {
- path: '/miniApp/readLog',
- redirect: '/miniApp/readLog/short',
- },
- {
- path: '/miniApp/readLog/short',
- name: "short",
- component: './MiniApp/ReadLog/Short',
- },
- {
- path: '/miniApp/readLog/long',
- name: 'long',
- component: './MiniApp/ReadLog/Long',
- },
- ],
- },
-
- {
- path: '/miniApp/payLog',
- name: 'miniApp.payLog',
- icon: 'icon-chongzhi01',
- access: 'isShow',
- routes: [
- {
- path: '/miniApp/payLog',
- redirect: '/miniApp/payLog/short',
- },
- {
- path: '/miniApp/payLog/short',
- name: "short",
- component: './MiniApp/PayLog/Short',
- },
- {
- path: '/miniApp/payLog/long',
- name: 'long',
- component: './MiniApp/PayLog/Long',
- },
- ],
- },
-
- {
- name: 'miniApp.consume',
- icon: 'icon-xiaofei',
- path: '/miniApp/consume',
- access: "isShow",
- component: './MiniApp/Consume',
- },
-
- {
- name: 'miniApp.payModuleConfig',
- icon: 'icon-shubi',
- path: '/miniApp/payModuleConfig',
- access: "isShow",
- component: './MiniApp/ModuleConfig',
- },
- ]
- export default [
- {
- path: '/user',
- layout: false,
- routes: [
- {
- name: 'login',
- path: '/user/login',
- component: './User/Login',
- },
- ],
- },
- {
- path: '/',
- redirect: '/distributor/miniApp',
- },
- {
- path: '*',
- layout: false,
- component: './404',
- },
- ...newMenu
- ];
|