index.js 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  1. /*
  2. * @Author: wenjie 1454560336@qq.com
  3. * @Date: 2024-03-05 11:36:07
  4. * @LastEditors: wenjie 1454560336@qq.com
  5. * @LastEditTime: 2024-11-25 14:54:13
  6. * @FilePath: \admin-manage\src\router\index.js
  7. * @Description:
  8. *
  9. * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
  10. */
  11. import Vue from 'vue'
  12. import Router from 'vue-router'
  13. Vue.use(Router)
  14. /* Layout */
  15. import Layout from '@/layout'
  16. import operationLayout from '@/views/operationManage/index'
  17. /**
  18. * Note: sub-menu only appear when route children.length >= 1
  19. * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  20. *
  21. * hidden: true if set true, item will not show in the sidebar(default is false)
  22. * alwaysShow: true if set true, will always show the root menu
  23. * if not set alwaysShow, when item has more than one children route,
  24. * it will becomes nested mode, otherwise not show the root menu
  25. * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
  26. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  27. * meta : {
  28. roles: ['admin','editor'] control the page roles (you can set multiple roles)
  29. title: 'title' the name show in sidebar and breadcrumb (recommend set)
  30. icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
  31. breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
  32. activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
  33. }
  34. */
  35. /**
  36. * constantRoutes
  37. * a base page that does not have permission requirements
  38. * all roles can be accessed
  39. */
  40. export let constantRoutes = [{
  41. path: '/login',
  42. component: () => import('@/views/login/index'),
  43. hidden: true
  44. },
  45. {
  46. path: '/404',
  47. component: () => import('@/views/404'),
  48. hidden: true
  49. },
  50. // {
  51. // id: 0,
  52. // path: '/statisticsManage',
  53. // component: Layout,
  54. // meta: { title: '中数❤移动', icon: 'icon-shouyefill' },
  55. // children: [
  56. // {
  57. // id: 1,
  58. // path: '/statisticsManage',
  59. // name: '/statisticsManage',
  60. // component: () => import('@/views/statisticsManage/index.vue'),
  61. // meta: { title: '中数❤移动', icon: '' },
  62. // },
  63. // ]
  64. // },
  65. // {
  66. // id: 0,
  67. // path: '/',
  68. // component: Layout,
  69. // redirect: '/home',
  70. // meta: {
  71. // title: '首页',
  72. // icon: 'icon-shouyefill'
  73. // },
  74. // children: [{
  75. // id: 1,
  76. // path: '/home',
  77. // name: '/home',
  78. // component: () => import('@/views/home/index.vue'),
  79. // meta: {
  80. // title: '首页',
  81. // icon: ''
  82. // },
  83. // },
  84. // {
  85. // id: 2,
  86. // path: '/updatePassword',
  87. // name: '/updatePassword',
  88. // component: () => import('@/views/updatePassword/index.vue'),
  89. // meta: {
  90. // title: '修改密码',
  91. // icon: ''
  92. // },
  93. // },
  94. // ]
  95. // },
  96. // {
  97. // id: 0,
  98. // path: '/authorityManage',
  99. // component: Layout,
  100. // meta: {
  101. // title: '权限管理',
  102. // icon: 'icon-shouyefill'
  103. // },
  104. // children: [
  105. // {
  106. // id: 1,
  107. // path: '/authorityManage/menuList',
  108. // name: '/authorityManage/menuList',
  109. // component: () => import('@/views/authorityManage/menuList.vue'),
  110. // meta: {
  111. // title: '菜单列表',
  112. // icon: ''
  113. // },
  114. // },
  115. // {
  116. // id: 2,
  117. // path: '/authorityManage/roleList',
  118. // name: '/authorityManage/roleList',
  119. // component: () => import('@/views/authorityManage/roleList.vue'),
  120. // meta: {
  121. // title: '角色列表',
  122. // icon: ''
  123. // },
  124. // },
  125. // {
  126. // id: 2,
  127. // path: '/authorityManage/userList',
  128. // name: '/authorityManage/userList',
  129. // component: () => import('@/views/authorityManage/userList.vue'),
  130. // meta: {
  131. // title: '用户列表',
  132. // icon: ''
  133. // },
  134. // },
  135. // ]
  136. // },
  137. // {
  138. // id: 0,
  139. // path: '/operationManage/index',
  140. // component: Layout,
  141. // meta: {
  142. // title: '运营管理',
  143. // icon: 'el-icon-s-shop'
  144. // },
  145. // alwaysShow: true,
  146. // children: [{
  147. // id: 0,
  148. // path: '/operationManage/shopManage/index',
  149. // component: operationLayout,
  150. // meta: {
  151. // title: '商铺管理',
  152. // icon: ''
  153. // },
  154. // alwaysShow: true,
  155. // children: [
  156. // {
  157. // id: 1,
  158. // path: '/operationManage/shopManage/shopType',
  159. // name: '/operationManage/shopManage/shopType',
  160. // component: () => import('@/views/operationManage/shopManage/shopType.vue'),
  161. // hidden:true,
  162. // meta: {
  163. // title: '店铺类型',
  164. // icon: ''
  165. // },
  166. // },{
  167. // id: 1,
  168. // path: '/operationManage/shopManage/index',
  169. // name: '/operationManage/shopManage/index',
  170. // component: () => import('@/views/operationManage/shopManage/index.vue'),
  171. // meta: {
  172. // title: '店铺列表',
  173. // icon: ''
  174. // },
  175. // },
  176. // {
  177. // id: 1,
  178. // path: '/operationManage/shopManage/shopAdd',
  179. // name: '/operationManage/shopManage/shopAdd',
  180. // component: () => import('@/views/operationManage/shopManage/shopAdd.vue'),
  181. // meta: {
  182. // title: '店铺添加'
  183. // },
  184. // },
  185. // {
  186. // id: 1,
  187. // path: '/operationManage/shopManage/shopAdd1',
  188. // name: '/operationManage/shopManage/shopAdd1',
  189. // hidden: true,
  190. // component: () => import('@/views/operationManage/shopManage/shopAdd1.vue'),
  191. // meta: {
  192. // title: '银联认证',
  193. // activeMenu: '/operationManage/shopManage/index'
  194. // },
  195. // },
  196. // {
  197. // id: 1,
  198. // path: '/operationManage/shopManage/shopAdd2',
  199. // name: '/operationManage/shopManage/shopAdd2',
  200. // hidden: true,
  201. // component: () => import('@/views/operationManage/shopManage/shopAdd2.vue'),
  202. // meta: {
  203. // title: '银联认证',
  204. // activeMenu: '/operationManage/shopManage/index'
  205. // },
  206. // },
  207. // {
  208. // id: 1,
  209. // path: '/operationManage/shopManage/shopAdd3',
  210. // name: '/operationManage/shopManage/shopAdd3',
  211. // hidden: true,
  212. // component: () => import('@/views/operationManage/shopManage/shopAdd3.vue'),
  213. // meta: {
  214. // title: '银联认证',
  215. // activeMenu: '/operationManage/shopManage/index'
  216. // },
  217. // },
  218. // {
  219. // id: 1,
  220. // path: '/operationManage/shopManage/shopAdd4',
  221. // name: '/operationManage/shopManage/shopAdd4',
  222. // hidden: true,
  223. // component: () => import('@/views/operationManage/shopManage/shopAdd4.vue'),
  224. // meta: {
  225. // title: '银联认证',
  226. // activeMenu: '/operationManage/shopManage/index'
  227. // },
  228. // }
  229. // ]
  230. // },
  231. // {
  232. // id: 0,
  233. // path: '/operationManage/goodsType/index',
  234. // component: operationLayout,
  235. // meta: {
  236. // title: '商品分类',
  237. // icon: ''
  238. // },
  239. // alwaysShow: true,
  240. // children: [{
  241. // id: 1,
  242. // path: '/operationManage/goodsType/index',
  243. // name: '/operationManage/goodsType/index',
  244. // component: () => import('@/views/operationManage/goodsType/index.vue'),
  245. // meta: {
  246. // title: '分类列表',
  247. // icon: ''
  248. // },
  249. // },
  250. // {
  251. // id: 1,
  252. // path: '/operationManage/goodsType/addGoodsType',
  253. // name: '/operationManage/goodsType/addGoodsType',
  254. // hidden:true,
  255. // component: () => import('@/views/operationManage/goodsType/addGoodsType.vue'),
  256. // meta: {
  257. // title: '添加分类',
  258. // icon: '',
  259. // activeMenu: '/operationManage/goodsType/index'
  260. // },
  261. // },
  262. // ]
  263. // },
  264. // {
  265. // id: 0,
  266. // path: '/operationManage/goodsManage/index',
  267. // component: operationLayout,
  268. // meta: {
  269. // title: '商品管理',
  270. // icon: ''
  271. // },
  272. // alwaysShow: true,
  273. // children: [{
  274. // id: 1,
  275. // path: '/operationManage/goodsManage/index',
  276. // name: '/operationManage/goodsManage/index',
  277. // component: () => import('@/views/operationManage/goodsManage/index.vue'),
  278. // meta: {
  279. // title: '商品列表',
  280. // icon: ''
  281. // },
  282. // },
  283. // {
  284. // id: 1,
  285. // path: '/operationManage/goodsManage/goodsDetail',
  286. // name: '/operationManage/goodsManage/goodsDetail',
  287. // hidden:true,
  288. // component: () => import('@/views/operationManage/goodsManage/goodsDetail.vue'),
  289. // meta: {
  290. // title: '商品配置',
  291. // icon: '',
  292. // activeMenu: '/operationManage/goodsManage/index'
  293. // },
  294. // },
  295. // {
  296. // id: 1,
  297. // path: '/operationManage/goodsManage/labelList',
  298. // name: '/operationManage/goodsManage/labelList',
  299. // component: () => import('@/views/operationManage/goodsManage/labelList.vue'),
  300. // meta: {
  301. // title: '标签列表',
  302. // icon: ''
  303. // },
  304. // },
  305. // {
  306. // id: 1,
  307. // path: '/operationManage/goodsManage/productLibrary',
  308. // name: '/operationManage/goodsManage/productLibrary',
  309. // component: () => import('@/views/operationManage/goodsManage/productLibrary.vue'),
  310. // meta: {
  311. // title: '产品库',
  312. // icon: ''
  313. // },
  314. // },
  315. // {
  316. // id: 1,
  317. // path: '/operationManage/goodsManage/homeGoodsSet',
  318. // name: '/operationManage/goodsManage/homeGoodsSet',
  319. // component: () => import('@/views/operationManage/goodsManage/homeGoodsSet.vue'),
  320. // meta: {
  321. // title: '首页设置',
  322. // icon: ''
  323. // },
  324. // },
  325. // ]
  326. // },
  327. // {
  328. // id: 0,
  329. // path: '/operationManage/orderManage/index',
  330. // component: operationLayout,
  331. // meta: {
  332. // title: '订单管理',
  333. // icon: ''
  334. // },
  335. // alwaysShow: true,
  336. // children: [{
  337. // id: 1,
  338. // path: '/operationManage/orderManage/index',
  339. // name: '/operationManage/orderManage/index',
  340. // component: () => import('@/views/operationManage/orderManage/index.vue'),
  341. // meta: {
  342. // title: '支付订单',
  343. // icon: ''
  344. // },
  345. // },
  346. // {
  347. // id: 1,
  348. // path: '/operationManage/orderManage/payDetail',
  349. // name: '/operationManage/orderManage/payDetail',
  350. // hidden:true,
  351. // component: () => import('@/views/operationManage/orderManage/payDetail.vue'),
  352. // meta: {
  353. // title: '订单详情',
  354. // icon: '',
  355. // activeMenu: '/operationManage/orderManage/index'
  356. // },
  357. // },
  358. // {
  359. // id: 1,
  360. // path: '/operationManage/orderManage/list',
  361. // name: '/operationManage/orderManage/list',
  362. // component: () => import('@/views/operationManage/orderManage/list.vue'),
  363. // meta: {
  364. // title: '商品订单',
  365. // icon: ''
  366. // },
  367. // },
  368. // {
  369. // id: 1,
  370. // path: '/operationManage/orderManage/orderDetail',
  371. // name: '/operationManage/orderManage/orderDetail',
  372. // hidden:true,
  373. // component: () => import('@/views/operationManage/orderManage/orderDetail.vue'),
  374. // meta: {
  375. // title: '订单详情',
  376. // icon: '',
  377. // activeMenu: '/operationManage/orderManage/list'
  378. // },
  379. // },
  380. // ]
  381. // },
  382. // {
  383. // id: 0,
  384. // path: '/operationManage/marketingManage/index',
  385. // component: operationLayout,
  386. // meta: {
  387. // title: '营销管理',
  388. // icon: ''
  389. // },
  390. // alwaysShow: true,
  391. // children: [{
  392. // id: 1,
  393. // path: '/operationManage/marketingManage/index',
  394. // name: '/operationManage/marketingManage/index',
  395. // component: () => import('@/views/operationManage/marketingManage/index.vue'),
  396. // meta: {
  397. // title: '小桔活动',
  398. // icon: ''
  399. // },
  400. // },
  401. // {
  402. // id: 0,
  403. // path: '/operationManage/marketingManage/invitePromotion/index',
  404. // component: operationLayout,
  405. // meta: {
  406. // title: '推广邀请规则',
  407. // icon: ''
  408. // },
  409. // alwaysShow: true,
  410. // children: [
  411. // {
  412. // id: 1,
  413. // path: '/operationManage/marketingManage/invitePromotion/index',
  414. // name: '/operationManage/marketingManage/invitePromotion/index',
  415. // component: () => import('@/views/operationManage/marketingManage/invitePromotion/index.vue'),
  416. // meta: {
  417. // title: '规则管理',
  418. // icon: ''
  419. // },
  420. // },
  421. // {
  422. // id: 1,
  423. // path: '/operationManage/marketingManage/invitePromotion/add',
  424. // name: '/operationManage/marketingManage/invitePromotion/add',
  425. // component: () => import('@/views/operationManage/marketingManage/invitePromotion/add.vue'),
  426. // meta: {
  427. // title: '规则添加',
  428. // icon: ''
  429. // },
  430. // }
  431. // ]
  432. // }
  433. // ]
  434. // },
  435. // {
  436. // id: 0,
  437. // path: '/operationManage/comboManage/index',
  438. // component: operationLayout,
  439. // meta: {
  440. // title: '套餐管理',
  441. // icon: ''
  442. // },
  443. // alwaysShow: true,
  444. // children: [{
  445. // id: 1,
  446. // path: '/operationManage/comboManage/index',
  447. // name: '/operationManage/comboManage/index',
  448. // component: () => import('@/views/operationManage/comboManage/index.vue'),
  449. // meta: {
  450. // title: '套餐列表',
  451. // icon: ''
  452. // },
  453. // },
  454. // {
  455. // id: 1,
  456. // path: '/operationManage/comboManage/logList',
  457. // name: '/operationManage/comboManage/logList',
  458. // component: () => import('@/views/operationManage/comboManage/logList.vue'),
  459. // meta: {
  460. // title: '权益记录',
  461. // icon: ''
  462. // },
  463. // },
  464. // {
  465. // id: 1,
  466. // path: '/operationManage/comboManage/vipActivation',
  467. // name: '/operationManage/comboManage/vipActivation',
  468. // component: () => import('@/views/operationManage/comboManage/vipActivation.vue'),
  469. // meta: {
  470. // title: '会员激活码',
  471. // icon: ''
  472. // },
  473. // },
  474. // {
  475. // id: 1,
  476. // path: '/operationManage/comboManage/editCombo',
  477. // name: '/operationManage/comboManage/editCombo',
  478. // hidden:true,
  479. // component: () => import('@/views/operationManage/comboManage/editCombo.vue'),
  480. // meta: {
  481. // title: '编辑套餐',
  482. // icon: ''
  483. // },
  484. // },
  485. // {
  486. // id: 1,
  487. // path: '/operationManage/equitiesManage/index',
  488. // name: '/operationManage/equitiesManage/index',
  489. // component: () => import('@/views/operationManage/equitiesManage/index.vue'),
  490. // hidden:true,
  491. // meta: {
  492. // title: '权益列表',
  493. // icon: '',
  494. // activeMenu: '/operationManage/comboManage/index'
  495. // },
  496. // },
  497. // {
  498. // id: 1,
  499. // path: '/operationManage/equitiesManage/addEquities',
  500. // name: '/operationManage/equitiesManage/addEquities',
  501. // hidden:true,
  502. // component: () => import('@/views/operationManage/equitiesManage/addEquities.vue'),
  503. // meta: {
  504. // title: '添加权益',
  505. // icon: '',
  506. // activeMenu: '/operationManage/comboManage/index'
  507. // },
  508. // },
  509. // {
  510. // id: 1,
  511. // path: '/operationManage/comboManage/checkoutCode',
  512. // name: '/operationManage/comboManage/checkoutCode',
  513. // component: () => import('@/views/operationManage/comboManage/checkoutCode.vue'),
  514. // hidden:true,
  515. // meta: {
  516. // title: '查看激活码',
  517. // icon: '',
  518. // activeMenu: '/operationManage/comboManage/vipActivation'
  519. // },
  520. // },
  521. // ]
  522. // },
  523. // {
  524. // id: 0,
  525. // path: '/operationManage/financeManage/index',
  526. // component: operationLayout,
  527. // meta: {
  528. // title: '财务管理',
  529. // icon: ''
  530. // },
  531. // alwaysShow: true,
  532. // children: [{
  533. // id: 1,
  534. // path: '/operationManage/financeManage/index',
  535. // name: '/operationManage/financeManage/index',
  536. // component: () => import('@/views/operationManage/financeManage/index.vue'),
  537. // meta: {
  538. // title: '分账列表',
  539. // icon: ''
  540. // },
  541. // },
  542. // {
  543. // id: 1,
  544. // path: '/operationManage/financeManage/withdraw',
  545. // name: '/operationManage/financeManage/withdraw',
  546. // component: () => import('@/views/operationManage/financeManage/withdraw.vue'),
  547. // meta: {
  548. // title: '账户余额',
  549. // icon: ''
  550. // },
  551. // },
  552. // ]
  553. // },
  554. // {
  555. // id: 0,
  556. // path: '/operationManage/appMenuManage/index',
  557. // component: operationLayout,
  558. // meta: {
  559. // title: '小程序菜单',
  560. // icon: ''
  561. // },
  562. // alwaysShow: true,
  563. // children: [{
  564. // id: 1,
  565. // path: '/operationManage/appMenuManage/index',
  566. // name: '/operationManage/appMenuManage/index',
  567. // component: () => import('@/views/operationManage/appMenuManage/index.vue'),
  568. // meta: {
  569. // title: '菜单列表',
  570. // icon: ''
  571. // },
  572. // },
  573. // {
  574. // id: 1,
  575. // path: '/operationManage/appMenuManage/addMenu',
  576. // name: '/operationManage/appMenuManage/addMenu',
  577. // hidden:true,
  578. // component: () => import('@/views/operationManage/appMenuManage/addMenu.vue'),
  579. // meta: {
  580. // title: '添加菜单',
  581. // icon: '',
  582. // activeMenu: '/operationManage/appMenuManage/index'
  583. // },
  584. // },
  585. // {
  586. // id: 1,
  587. // path: '/operationManage/appMenuManage/editMenu',
  588. // name: '/operationManage/appMenuManage/editMenu',
  589. // hidden:true,
  590. // component: () => import('@/views/operationManage/appMenuManage/editMenu.vue'),
  591. // meta: {
  592. // title: '编辑菜单',
  593. // icon: '',
  594. // activeMenu: '/operationManage/appMenuManage/index'
  595. // },
  596. // },
  597. // ]
  598. // },
  599. // {
  600. // id: 0,
  601. // path: '/operationManage/bannerManage/index',
  602. // component: operationLayout,
  603. // meta: {
  604. // title: 'banner管理',
  605. // icon: ''
  606. // },
  607. // alwaysShow: true,
  608. // children: [{
  609. // id: 1,
  610. // path: '/operationManage/bannerManage/index',
  611. // name: '/operationManage/bannerManage/index',
  612. // component: () => import('@/views/operationManage/bannerManage/index.vue'),
  613. // meta: {
  614. // title: 'banner列表',
  615. // icon: ''
  616. // },
  617. // },
  618. // {
  619. // id: 1,
  620. // path: '/operationManage/bannerManage/addBanner',
  621. // name: '/operationManage/bannerManage/addBanner',
  622. // hidden:true,
  623. // component: () => import('@/views/operationManage/bannerManage/addBanner.vue'),
  624. // meta: {
  625. // title: '添加banner',
  626. // icon: '',
  627. // activeMenu: '/operationManage/bannerManage/index'
  628. // },
  629. // },
  630. // {
  631. // id: 1,
  632. // path: '/operationManage/bannerManage/editBanner',
  633. // name: '/operationManage/bannerManage/editBanner',
  634. // hidden:true,
  635. // component: () => import('@/views/operationManage/bannerManage/editBanner.vue'),
  636. // meta: {
  637. // title: '编辑banner',
  638. // icon: '',
  639. // activeMenu: '/operationManage/bannerManage/index'
  640. // },
  641. // },
  642. // ]
  643. // },
  644. // {
  645. // id: 0,
  646. // path: '/operationManage/advertisingManage/index',
  647. // component: operationLayout,
  648. // meta: {
  649. // title: '广告位管理',
  650. // icon: ''
  651. // },
  652. // alwaysShow: true,
  653. // children: [{
  654. // id: 1,
  655. // path: '/operationManage/advertisingManage/index',
  656. // name: '/operationManage/advertisingManage/index',
  657. // component: () => import('@/views/operationManage/advertisingManage/index.vue'),
  658. // meta: {
  659. // title: '广告位列表',
  660. // icon: ''
  661. // },
  662. // },
  663. // {
  664. // id: 1,
  665. // path: '/operationManage/advertisingManage/addAdv',
  666. // name: '/operationManage/advertisingManage/addAdv',
  667. // hidden:true,
  668. // component: () => import('@/views/operationManage/advertisingManage/addAdv.vue'),
  669. // meta: {
  670. // title: '添加广告位',
  671. // icon: '',
  672. // activeMenu: '/operationManage/advertisingManage/index'
  673. // },
  674. // },
  675. // {
  676. // id: 1,
  677. // path: '/operationManage/advertisingManage/editAdv',
  678. // name: '/operationManage/advertisingManage/editAdv',
  679. // hidden:true,
  680. // component: () => import('@/views/operationManage/advertisingManage/editAdv.vue'),
  681. // meta: {
  682. // title: '编辑广告位',
  683. // icon: '',
  684. // activeMenu: '/operationManage/advertisingManage/index'
  685. // },
  686. // },
  687. // ]
  688. // },
  689. // {
  690. // id: 0,
  691. // path: '/operationManage/couponManage/index',
  692. // component: operationLayout,
  693. // meta: {
  694. // title: '优惠券管理',
  695. // icon: ''
  696. // },
  697. // alwaysShow: true,
  698. // children: [{
  699. // id: 1,
  700. // path: '/operationManage/couponManage/index',
  701. // name: '/operationManage/couponManage/index',
  702. // component: () => import('@/views/operationManage/couponManage/index.vue'),
  703. // meta: {
  704. // title: '优惠券列表',
  705. // icon: ''
  706. // },
  707. // },
  708. // {
  709. // id: 1,
  710. // path: '/operationManage/couponManage/fullDiscountCoupon',
  711. // name: '/operationManage/couponManage/fullDiscountCoupon',
  712. // component: () => import('@/views/operationManage/couponManage/fullDiscountCoupon.vue'),
  713. // hidden:true,
  714. // meta: {
  715. // title: '满减优惠券',
  716. // icon: '',
  717. // activeMenu: '/operationManage/couponManage/index'
  718. // },
  719. // },
  720. // {
  721. // id: 1,
  722. // path: '/operationManage/couponManage/discountCoupon',
  723. // name: '/operationManage/couponManage/discountCoupon',
  724. // component: () => import('@/views/operationManage/couponManage/discountCoupon.vue'),
  725. // hidden:true,
  726. // meta: {
  727. // title: '折扣优惠券',
  728. // icon: '',
  729. // activeMenu: '/operationManage/couponManage/index'
  730. // },
  731. // },
  732. // {
  733. // id: 1,
  734. // path: '/operationManage/couponManage/refuelCoupon',
  735. // name: '/operationManage/couponManage/refuelCoupon',
  736. // component: () => import('@/views/operationManage/couponManage/refuelCoupon.vue'),
  737. // hidden:true,
  738. // meta: {
  739. // title: '加油优惠券',
  740. // icon: '',
  741. // activeMenu: '/operationManage/couponManage/index'
  742. // },
  743. // },
  744. // ]
  745. // },
  746. // {
  747. // id: 0,
  748. // path: '/operationManage/luckyDrawManage/index',
  749. // component: operationLayout,
  750. // meta: {
  751. // title: '抽奖管理',
  752. // icon: ''
  753. // },
  754. // alwaysShow: true,
  755. // children: [{
  756. // id: 1,
  757. // path: '/operationManage/luckyDrawManage/index',
  758. // name: '/operationManage/luckyDrawManage/index',
  759. // component: () => import('@/views/operationManage/luckyDrawManage/index.vue'),
  760. // meta: {
  761. // title: '抽奖列表',
  762. // icon: ''
  763. // },
  764. // },
  765. // {
  766. // id: 1,
  767. // path: '/operationManage/luckyDrawManage/addLuckyDraw',
  768. // name: '/operationManage/luckyDrawManage/addLuckyDraw',
  769. // hidden:true,
  770. // component: () => import('@/views/operationManage/luckyDrawManage/addLuckyDraw.vue'),
  771. // meta: {
  772. // title: '添加抽奖',
  773. // icon: '',
  774. // activeMenu: '/operationManage/luckyDrawManage/index'
  775. // },
  776. // },
  777. // {
  778. // id: 1,
  779. // path: '/operationManage/luckyDrawManage/dataList',
  780. // name: '/operationManage/luckyDrawManage/dataList',
  781. // hidden:true,
  782. // component: () => import('@/views/operationManage/luckyDrawManage/dataList.vue'),
  783. // meta: {
  784. // title: '中奖数据',
  785. // icon: '',
  786. // activeMenu: '/operationManage/luckyDrawManage/index'
  787. // },
  788. // },
  789. // {
  790. // id: 1,
  791. // path: '/operationManage/luckyDrawManage/luckyDrawRule',
  792. // name: '/operationManage/luckyDrawManage/luckyDrawRule',
  793. // hidden:true,
  794. // component: () => import('@/views/operationManage/luckyDrawManage/luckyDrawRule.vue'),
  795. // meta: {
  796. // title: '活动规则',
  797. // icon: '',
  798. // activeMenu: '/operationManage/luckyDrawManage/index'
  799. // },
  800. // },
  801. // ]
  802. // },
  803. // {
  804. // id: 0,
  805. // path: '/operationManage/activityManage/index',
  806. // component: operationLayout,
  807. // meta: {
  808. // title: '活动管理',
  809. // icon: ''
  810. // },
  811. // alwaysShow: true,
  812. // children: [{
  813. // id: 1,
  814. // path: '/operationManage/activityManage/index',
  815. // name: '/operationManage/activityManage/index',
  816. // component: () => import('@/views/operationManage/activityManage/index.vue'),
  817. // meta: {
  818. // title: '活动列表',
  819. // icon: ''
  820. // },
  821. // },
  822. // {
  823. // id: 1,
  824. // path: '/operationManage/activityManage/addActivity',
  825. // name: '/operationManage/activityManage/addActivity',
  826. // hidden:true,
  827. // component: () => import('@/views/operationManage/activityManage/addActivity.vue'),
  828. // meta: {
  829. // title: '添加活动',
  830. // icon: '',
  831. // activeMenu: '/operationManage/activityManage/index'
  832. // },
  833. // },
  834. // {
  835. // id: 1,
  836. // path: '/operationManage/activityManage/dataList',
  837. // name: '/operationManage/activityManage/dataList',
  838. // hidden:true,
  839. // component: () => import('@/views/operationManage/activityManage/dataList.vue'),
  840. // meta: {
  841. // title: '报名详情',
  842. // icon: '',
  843. // activeMenu: '/operationManage/activityManage/index'
  844. // },
  845. // },
  846. // ]
  847. // },
  848. // {
  849. // id: 0,
  850. // path: '/operationManage/templateManage/index',
  851. // component: operationLayout,
  852. // meta: {
  853. // title: '数据采集模板',
  854. // icon: ''
  855. // },
  856. // alwaysShow: true,
  857. // children: [{
  858. // id: 1,
  859. // path: '/operationManage/templateManage/index',
  860. // name: '/operationManage/templateManage/index',
  861. // component: () => import('@/views/operationManage/templateManage/index.vue'),
  862. // meta: {
  863. // title: '模板列表',
  864. // icon: ''
  865. // },
  866. // },
  867. // {
  868. // id: 1,
  869. // path: '/operationManage/templateManage/addTemplate',
  870. // name: '/operationManage/templateManage/addTemplate',
  871. // hidden:true,
  872. // component: () => import('@/views/operationManage/templateManage/addTemplate.vue'),
  873. // meta: {
  874. // title: '添加模板',
  875. // icon: '',
  876. // activeMenu: '/operationManage/templateManage/index'
  877. // },
  878. // },
  879. // ]
  880. // },
  881. // ]
  882. // },
  883. // {
  884. // id: 0,
  885. // path: '/studyManage/index',
  886. // component: Layout,
  887. // meta: {
  888. // title: '研学管理',
  889. // icon: 'el-icon-s-shop'
  890. // },
  891. // alwaysShow: true,
  892. // children: [
  893. // {
  894. // id: 0,
  895. // path: '/studyManage/bannerManage/index',
  896. // component: operationLayout,
  897. // meta: {
  898. // title: 'banner管理',
  899. // icon: ''
  900. // },
  901. // alwaysShow: true,
  902. // children: [
  903. // {
  904. // id: 1,
  905. // path: '/studyManage/bannerManage/index',
  906. // name: '/studyManage/bannerManage/index',
  907. // component: () => import('@/views/studyManage/bannerManage/index.vue'),
  908. // meta: {
  909. // title: 'banner列表',
  910. // icon: ''
  911. // },
  912. // },
  913. // {
  914. // id: 1,
  915. // path: '/studyManage/bannerManage/addBanner',
  916. // name: '/studyManage/bannerManage/addBanner',
  917. // hidden:true,
  918. // component: () => import('@/views/studyManage/bannerManage/addBanner.vue'),
  919. // meta: {
  920. // title: '添加banner',
  921. // icon: '',
  922. // activeMenu: '/studyManage/bannerManage/index'
  923. // },
  924. // }
  925. // ]
  926. // },
  927. // {
  928. // id: 0,
  929. // path: '/studyManage/menuManage/index',
  930. // component: operationLayout,
  931. // meta: {
  932. // title: '栏目管理',
  933. // icon: ''
  934. // },
  935. // alwaysShow: true,
  936. // children: [
  937. // {
  938. // id: 1,
  939. // path: '/studyManage/menuManage/index',
  940. // name: '/studyManage/menuManage/index',
  941. // component: () => import('@/views/studyManage/menuManage/index.vue'),
  942. // meta: {
  943. // title: '栏目列表',
  944. // icon: ''
  945. // },
  946. // },
  947. // {
  948. // id: 1,
  949. // path: '/studyManage/menuManage/addMenu',
  950. // name: '/studyManage/menuManage/addMenu',
  951. // hidden:true,
  952. // component: () => import('@/views/studyManage/menuManage/addMenu.vue'),
  953. // meta: {
  954. // title: '添加栏目',
  955. // icon: '',
  956. // activeMenu: '/studyManage/menuManage/index'
  957. // },
  958. // }
  959. // ]
  960. // },
  961. // {
  962. // id: 0,
  963. // path: '/studyManage/courseManage/index',
  964. // component: operationLayout,
  965. // meta: {
  966. // title: '课程管理',
  967. // icon: ''
  968. // },
  969. // alwaysShow: true,
  970. // children: [
  971. // {
  972. // id: 1,
  973. // path: '/studyManage/courseManage/index',
  974. // name: '/studyManage/courseManage/index',
  975. // component: () => import('@/views/studyManage/courseManage/index.vue'),
  976. // meta: {
  977. // title: '课程列表',
  978. // icon: ''
  979. // },
  980. // },
  981. // {
  982. // id: 1,
  983. // path: '/studyManage/courseManage/addCourse',
  984. // name: '/studyManage/courseManage/addCourse',
  985. // hidden:true,
  986. // component: () => import('@/views/studyManage/courseManage/addCourse.vue'),
  987. // meta: {
  988. // title: '添加课程',
  989. // icon: '',
  990. // activeMenu: '/studyManage/courseManage/index'
  991. // },
  992. // }
  993. // ]
  994. // },
  995. // {
  996. // id: 0,
  997. // path: '/studyManage/tabManage/index',
  998. // component: operationLayout,
  999. // meta: {
  1000. // title: '社区标签',
  1001. // icon: ''
  1002. // },
  1003. // alwaysShow: true,
  1004. // children: [
  1005. // {
  1006. // id: 1,
  1007. // path: '/studyManage/tabManage/index',
  1008. // name: '/studyManage/tabManage/index',
  1009. // component: () => import('@/views/studyManage/tabManage/index.vue'),
  1010. // meta: {
  1011. // title: '标签列表',
  1012. // icon: ''
  1013. // },
  1014. // },
  1015. // ]
  1016. // },
  1017. // {
  1018. // id: 0,
  1019. // path: '/studyManage/communityManage/index',
  1020. // component: operationLayout,
  1021. // meta: {
  1022. // title: '社区管理',
  1023. // icon: ''
  1024. // },
  1025. // alwaysShow: true,
  1026. // children: [
  1027. // {
  1028. // id: 1,
  1029. // path: '/studyManage/communityManage/index',
  1030. // name: '/studyManage/communityManage/index',
  1031. // component: () => import('@/views/studyManage/communityManage/index.vue'),
  1032. // meta: {
  1033. // title: '文章列表',
  1034. // icon: ''
  1035. // },
  1036. // },
  1037. // {
  1038. // id: 1,
  1039. // path: '/studyManage/communityManage/addArticle',
  1040. // name: '/studyManage/communityManage/addArticle',
  1041. // hidden:true,
  1042. // component: () => import('@/views/studyManage/communityManage/addArticle.vue'),
  1043. // meta: {
  1044. // title: '添加文章',
  1045. // icon: '',
  1046. // activeMenu: '/studyManage/communityManage/index'
  1047. // },
  1048. // }
  1049. // ]
  1050. // },
  1051. // {
  1052. // id: 0,
  1053. // path: '/studyManage/questionBankManage/index',
  1054. // component: operationLayout,
  1055. // meta: {
  1056. // title: '试题管理',
  1057. // icon: ''
  1058. // },
  1059. // alwaysShow: true,
  1060. // children: [
  1061. // {
  1062. // id: 1,
  1063. // path: '/studyManage/questionBankManage/index',
  1064. // name: '/studyManage/questionBankManage/index',
  1065. // component: () => import('@/views/studyManage/questionBankManage/index.vue'),
  1066. // meta: {
  1067. // title: '题库列表',
  1068. // icon: ''
  1069. // },
  1070. // },
  1071. // {
  1072. // id: 1,
  1073. // path: '/studyManage/questionBankManage/editQuestions',
  1074. // name: '/studyManage/questionBankManage/editQuestions',
  1075. // hidden:true,
  1076. // component: () => import('@/views/studyManage/questionBankManage/editQuestions.vue'),
  1077. // meta: {
  1078. // title: '编辑试卷',
  1079. // icon: '',
  1080. // activeMenu: '/studyManage/questionBankManage/index'
  1081. // },
  1082. // },
  1083. // ]
  1084. // },
  1085. // {
  1086. // id: 0,
  1087. // path: '/studyManage/subscribeManage/index',
  1088. // component: operationLayout,
  1089. // meta: {
  1090. // title: '预约管理',
  1091. // icon: ''
  1092. // },
  1093. // alwaysShow: true,
  1094. // children: [
  1095. // {
  1096. // id: 1,
  1097. // path: '/studyManage/subscribeManage/index',
  1098. // name: '/studyManage/subscribeManage/index',
  1099. // component: () => import('@/views/studyManage/subscribeManage/index.vue'),
  1100. // meta: {
  1101. // title: '预约列表',
  1102. // icon: ''
  1103. // },
  1104. // },
  1105. // ]
  1106. // },
  1107. // ]
  1108. // },
  1109. // {
  1110. // id: 0,
  1111. // path: '/merchantManage/index',
  1112. // component: Layout,
  1113. // redirect: '/merchantManage/index',
  1114. // meta: {
  1115. // title: '商户管理',
  1116. // icon: 'el-icon-s-shop'
  1117. // },
  1118. // children: [{
  1119. // id: 1,
  1120. // path: '/merchantManage/index',
  1121. // name: '/merchantManage/index',
  1122. // component: () => import('@/views/merchantManage/index.vue'),
  1123. // meta: {
  1124. // title: '商户列表',
  1125. // icon: ''
  1126. // },
  1127. // },
  1128. // {
  1129. // id: 1,
  1130. // path: '/merchantManage/shopDetail',
  1131. // name: '/merchantManage/shopDetail',
  1132. // component: () => import('@/views/merchantManage/shopDetail.vue'),
  1133. // hidden:true,
  1134. // meta: {
  1135. // title: '商户详情',
  1136. // icon: '',
  1137. // activeMenu:'/merchantManage/index'
  1138. // },
  1139. // },
  1140. // {
  1141. // id: 1,
  1142. // hidden:true,
  1143. // path: '/merchantManage/addUser',
  1144. // name: '/merchantManage/addUser',
  1145. // component: () => import('@/views/merchantManage/addUser.vue'),
  1146. // meta: {
  1147. // title: '添加商户',
  1148. // icon: ''
  1149. // },
  1150. // },
  1151. // ]
  1152. // },
  1153. // // 用户管理
  1154. // {
  1155. // id: 0,
  1156. // path: '/userManage/index',
  1157. // component: Layout,
  1158. // meta: {
  1159. // title: '用户管理',
  1160. // icon: 'el-icon-s-shop'
  1161. // },
  1162. // alwaysShow: true,
  1163. // children:[
  1164. // // {
  1165. // // id: 0,
  1166. // // path: '/userManage/agentManage',
  1167. // // component: operationLayout,
  1168. // // redirect: '/userManage/agentManage',
  1169. // // meta: {
  1170. // // title: '渠道商',
  1171. // // icon: ''
  1172. // // },
  1173. // // children: [{
  1174. // // id: 1,
  1175. // // path: '/userManage/agentManage/index',
  1176. // // name: '/userManage/agentManage/index',
  1177. // // component: () => import('@/views/userManage/agentManage/index.vue'),
  1178. // // meta: {
  1179. // // title: '渠道商列表',
  1180. // // icon: ''
  1181. // // },
  1182. // // },
  1183. // // {
  1184. // // id: 1,
  1185. // // path: '/userManage/agentManage/addAgent',
  1186. // // name: '/userManage/agentManage/addAgent',
  1187. // // hidden:true,
  1188. // // component: () => import('@/views/userManage/agentManage/addAgent.vue'),
  1189. // // meta: {
  1190. // // title: '添加渠道商',
  1191. // // icon: ''
  1192. // // },
  1193. // // },
  1194. // // {
  1195. // // id: 1,
  1196. // // path: '/userManage/agentManage/editAgent',
  1197. // // name: '/userManage/agentManage/editAgent',
  1198. // // hidden:true,
  1199. // // component: () => import('@/views/userManage/agentManage/editAgent.vue'),
  1200. // // meta: {
  1201. // // title: '编辑渠道商',
  1202. // // icon: ''
  1203. // // },
  1204. // // },
  1205. // // ]
  1206. // // },
  1207. // {
  1208. // id: 0,
  1209. // path: '/userManage/memberManage',
  1210. // component: operationLayout,
  1211. // redirect: '/userManage/memberManage',
  1212. // meta: {
  1213. // title: '会员管理',
  1214. // icon: ''
  1215. // },
  1216. // children: [{
  1217. // id: 1,
  1218. // path: '/userManage/memberManage/index',
  1219. // name: '/userManage/memberManage/index',
  1220. // component: () => import('@/views/userManage/memberManage/index.vue'),
  1221. // meta: {
  1222. // title: '会员列表',
  1223. // icon: ''
  1224. // },
  1225. // },
  1226. // // {
  1227. // // id: 1,
  1228. // // path: '/userManage/memberManage/memberDetail',
  1229. // // name: '/userManage/memberManage/memberDetail',
  1230. // // component: () => import('@/views/userManage/memberManage/memberDetail.vue'),
  1231. // // meta: {
  1232. // // title: '会员详情',
  1233. // // icon: ''
  1234. // // },
  1235. // // },
  1236. // ]
  1237. // },
  1238. // // {
  1239. // // id: 0,
  1240. // // path: '/userManage/userList',
  1241. // // component: operationLayout,
  1242. // // redirect: '/userManage/userList',
  1243. // // meta: {
  1244. // // title: '会员管理',
  1245. // // icon: ''
  1246. // // },
  1247. // // children: [{
  1248. // // id: 1,
  1249. // // path: '/userManage/userList/index',
  1250. // // name: '/userManage/userList/index',
  1251. // // component: () => import('@/views/userManage/userList/index.vue'),
  1252. // // meta: {
  1253. // // title: '用户列表',
  1254. // // icon: ''
  1255. // // },
  1256. // // },
  1257. // // ]
  1258. // // },
  1259. // ]
  1260. // },
  1261. // {
  1262. // id: 0,
  1263. // path: '/setting/index',
  1264. // component: Layout,
  1265. // meta: {
  1266. // title: '系统设置',
  1267. // icon: 'el-icon-s-shop'
  1268. // },
  1269. // alwaysShow: true,
  1270. // children:[
  1271. // {
  1272. // id: 0,
  1273. // path: '/setting/rulesManage',
  1274. // component: operationLayout,
  1275. // meta: {
  1276. // title: '分账规则',
  1277. // icon: ''
  1278. // },
  1279. // children: [{
  1280. // id: 1,
  1281. // path: '/setting/rulesManage',
  1282. // name: '/setting/rulesManage',
  1283. // component: () => import('@/views//setting/rulesManage/index.vue'),
  1284. // meta: {
  1285. // title: '规则列表',
  1286. // icon: ''
  1287. // },
  1288. // },
  1289. // ]
  1290. // },
  1291. // {
  1292. // id: 1,
  1293. // path: '/setting/synchronization',
  1294. // name: '/setting/synchronization',
  1295. // component: () => import('@/views/setting/synchronization.vue'),
  1296. // meta: {
  1297. // title: '同步管理',
  1298. // icon: ''
  1299. // },
  1300. // },
  1301. // {
  1302. // id: 1,
  1303. // path: '/setting/cityList',
  1304. // name: '/setting/cityList',
  1305. // component: () => import('@/views/setting/cityList.vue'),
  1306. // meta: {
  1307. // title: '城市列表',
  1308. // icon: ''
  1309. // },
  1310. // },
  1311. // // {
  1312. // // id: 0,
  1313. // // path: '/setting/commissionManage',
  1314. // // component: operationLayout,
  1315. // // meta: {
  1316. // // title: '渠道佣金',
  1317. // // icon: ''
  1318. // // },
  1319. // // children: [{
  1320. // // id: 1,
  1321. // // path: '/setting/commissionManage',
  1322. // // name: '/setting/commissionManage',
  1323. // // component: () => import('@/views//setting/commissionManage/index.vue'),
  1324. // // meta: {
  1325. // // title: '渠道佣金',
  1326. // // icon: ''
  1327. // // },
  1328. // // },
  1329. // // ]
  1330. // // },
  1331. // {
  1332. // id: 0,
  1333. // path: '/setting/setting',
  1334. // component: operationLayout,
  1335. // meta: {
  1336. // title: '账号设置',
  1337. // icon: ''
  1338. // },
  1339. // children: [{
  1340. // id: 1,
  1341. // path: '/setting/setting',
  1342. // name: '/setting/setting',
  1343. // component: () => import('@/views//setting/setting.vue'),
  1344. // meta: {
  1345. // title: '账号设置',
  1346. // icon: ''
  1347. // },
  1348. // },
  1349. // ]
  1350. // },
  1351. // {
  1352. // id: 0,
  1353. // path: '/setting/base',
  1354. // component: operationLayout,
  1355. // meta: {
  1356. // title: '通用设置',
  1357. // icon: ''
  1358. // },
  1359. // children: [{
  1360. // id: 0,
  1361. // path: '/setting/base',
  1362. // name: '/setting/base',
  1363. // component: () => import('@/views/setting/base.vue'),
  1364. // meta: {
  1365. // title: '通用设置',
  1366. // icon: ''
  1367. // },
  1368. // },
  1369. // ]
  1370. // }
  1371. // ]
  1372. // }
  1373. // 404 page must be placed at the end !!!
  1374. // { path: '*', redirect: '/404', hidden: true }
  1375. ]
  1376. export const asyncRouter = [
  1377. {
  1378. id: 0,
  1379. path: '/authorityManage',
  1380. component: Layout,
  1381. meta: {
  1382. title: '权限管理',
  1383. icon: 'icon-shouyefill'
  1384. },
  1385. children: [
  1386. {
  1387. id: 1,
  1388. path: '/authorityManage/menuList',
  1389. name: '/authorityManage/menuList',
  1390. component: () => import('@/views/authorityManage/menuList.vue'),
  1391. meta: {
  1392. title: '菜单列表',
  1393. icon: ''
  1394. },
  1395. },
  1396. {
  1397. id: 2,
  1398. path: '/authorityManage/roleList',
  1399. name: '/authorityManage/roleList',
  1400. component: () => import('@/views/authorityManage/roleList.vue'),
  1401. meta: {
  1402. title: '角色列表',
  1403. icon: ''
  1404. },
  1405. },
  1406. {
  1407. id: 2,
  1408. path: '/authorityManage/userList',
  1409. name: '/authorityManage/userList',
  1410. component: () => import('@/views/authorityManage/userList.vue'),
  1411. meta: {
  1412. title: '用户列表',
  1413. icon: ''
  1414. },
  1415. },
  1416. ]
  1417. },
  1418. ]
  1419. const createRouter = () => new Router({
  1420. // mode: 'history', // require service support
  1421. scrollBehavior: () => ({
  1422. y: 0
  1423. }),
  1424. routes: constantRoutes
  1425. })
  1426. const router = createRouter()
  1427. // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
  1428. export function resetRouter() {
  1429. const newRouter = createRouter()
  1430. router.matcher = newRouter.matcher // reset router
  1431. }
  1432. export default router