router.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. /**
  2. * @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,pro版只支持remixIcon图标,具体配置请查看vip群文档
  3. */
  4. const List = [
  5. {
  6. path: '/',
  7. name: 'Root',
  8. component: 'Layout',
  9. meta: {
  10. title: '首页',
  11. icon: 'home-2-line',
  12. breadcrumbHidden: true,
  13. },
  14. children: [
  15. {
  16. path: 'index',
  17. name: 'Index',
  18. component: '@/views/index/index',
  19. meta: {
  20. title: '首页',
  21. icon: 'home-2-line',
  22. noClosable: true,
  23. },
  24. },
  25. {
  26. path: 'dashboard',
  27. name: 'Dashboard',
  28. component: '@/views/index/dashboard',
  29. meta: {
  30. title: '看板',
  31. icon: 'dashboard-line',
  32. },
  33. },
  34. {
  35. path: 'workbench',
  36. name: 'Workbench',
  37. component: '@/views/index/workbench',
  38. meta: {
  39. title: '工作台',
  40. icon: 'settings-6-line',
  41. dot: true,
  42. },
  43. },
  44. {
  45. path: 'store',
  46. name: 'Store',
  47. component: '@/views/index/store',
  48. meta: {
  49. title: '仓库',
  50. icon: 'app-store-line',
  51. dot: true,
  52. },
  53. },
  54. ],
  55. },
  56. {
  57. path: '/vab',
  58. name: 'Vab',
  59. component: 'Layout',
  60. meta: {
  61. title: '组件',
  62. icon: 'code-box-line',
  63. },
  64. children: [
  65. {
  66. path: 'icon',
  67. name: 'Icon',
  68. meta: {
  69. title: '图标',
  70. icon: 'remixicon-line',
  71. },
  72. children: [
  73. {
  74. path: 'remixIcon',
  75. name: 'RemixIcon',
  76. component: '@/views/vab/icon/remixIcon',
  77. meta: {
  78. title: '小清新图标',
  79. },
  80. },
  81. {
  82. path: 'iconSelector',
  83. name: 'IconSelector',
  84. component: '@/views/vab/icon/iconSelector',
  85. meta: {
  86. title: '图标选择器',
  87. },
  88. },
  89. {
  90. path: 'customSvg',
  91. name: 'CustomSvg',
  92. component: '@/views/vab/icon/customSvg',
  93. meta: {
  94. title: '自定义图标',
  95. },
  96. },
  97. ],
  98. },
  99. {
  100. path: 'permission',
  101. name: 'Permission',
  102. component: '@/views/vab/permission/index',
  103. meta: {
  104. title: '角色权限',
  105. icon: 'user-3-line',
  106. badge: 'Pro',
  107. },
  108. },
  109. {
  110. path: 'table',
  111. name: 'Table',
  112. meta: {
  113. title: '表格',
  114. // 非editor角色的用户可见
  115. guard: {
  116. role: ['Editor'],
  117. mode: 'except',
  118. },
  119. icon: 'table-2',
  120. },
  121. children: [
  122. {
  123. path: 'comprehensiveTable',
  124. name: 'ComprehensiveTable',
  125. component: '@/views/vab/table/comprehensiveTable',
  126. meta: {
  127. title: '综合表格',
  128. },
  129. },
  130. {
  131. path: 'detail',
  132. name: 'Detail',
  133. component: '@/views/vab/table/detail',
  134. meta: {
  135. hidden: true,
  136. title: '详情页',
  137. activeMenu: '/vab/table/comprehensiveTable',
  138. dynamicNewTab: true, //详情页根据id传参不同可打开多个
  139. },
  140. },
  141. {
  142. path: 'inlineEditTable',
  143. name: 'InlineEditTable',
  144. component: '@/views/vab/table/inlineEditTable',
  145. meta: {
  146. title: '行内编辑表格',
  147. noKeepAlive: true,
  148. },
  149. },
  150. {
  151. path: 'customTable',
  152. name: 'CustomTable',
  153. component: '@/views/vab/table/customTable',
  154. meta: {
  155. title: '自定义表格',
  156. },
  157. },
  158. {
  159. path: 'dynamicTable',
  160. name: 'DynamicTable',
  161. component: '@/views/vab/table/dynamicTable',
  162. meta: {
  163. title: '动态表格',
  164. badge: 'New',
  165. },
  166. },
  167. ],
  168. },
  169. {
  170. path: 'list',
  171. name: 'List',
  172. component: '@/views/vab/list/index',
  173. meta: {
  174. title: '列表',
  175. guard: ['Admin'],
  176. icon: 'list-check-2',
  177. },
  178. },
  179. {
  180. path: 'description',
  181. name: 'Description',
  182. component: '@/views/vab/description/index',
  183. meta: {
  184. title: '描述',
  185. guard: ['Admin'],
  186. icon: 'slideshow-line',
  187. },
  188. },
  189. {
  190. path: 'calendar',
  191. name: 'Calendar',
  192. component: '@/views/vab/calendar/index',
  193. meta: {
  194. title: '日历',
  195. guard: ['Admin'],
  196. icon: 'calendar-check-line',
  197. dot: true,
  198. },
  199. },
  200. {
  201. path: 'editor',
  202. name: 'Editor',
  203. meta: {
  204. title: '编辑器',
  205. guard: ['Admin'],
  206. icon: 'edit-2-line',
  207. },
  208. children: [
  209. {
  210. path: 'wangEditor',
  211. name: 'WangEditor',
  212. component: '@/views/vab/editor/wangEditor',
  213. meta: {
  214. title: '腾讯文档',
  215. guard: ['Admin'],
  216. dot: true,
  217. },
  218. },
  219. ],
  220. },
  221. {
  222. path: 'form',
  223. name: 'Form',
  224. meta: {
  225. title: '表单',
  226. guard: ['Admin'],
  227. icon: 'file-list-2-line',
  228. },
  229. children: [
  230. {
  231. path: 'comprehensiveForm',
  232. name: 'ComprehensiveForm',
  233. component: '@/views/vab/form/comprehensiveForm',
  234. meta: {
  235. title: '综合表单',
  236. },
  237. },
  238. {
  239. path: 'stepForm',
  240. name: 'StepForm',
  241. component: '@/views/vab/form/stepForm',
  242. meta: {
  243. title: '分步表单',
  244. },
  245. },
  246. {
  247. path: 'button',
  248. name: 'Button',
  249. component: '@/views/vab/form/button',
  250. meta: {
  251. title: '按钮',
  252. },
  253. },
  254. {
  255. path: 'link',
  256. name: 'Link',
  257. component: '@/views/vab/form/link',
  258. meta: {
  259. title: '文字链接',
  260. },
  261. },
  262. {
  263. path: 'radio',
  264. name: 'Radio',
  265. component: '@/views/vab/form/radio',
  266. meta: {
  267. title: '单选框',
  268. },
  269. },
  270. {
  271. path: 'checkbox',
  272. name: 'Checkbox',
  273. component: '@/views/vab/form/checkbox',
  274. meta: {
  275. title: '多选框',
  276. },
  277. },
  278. {
  279. path: 'input',
  280. name: 'Input',
  281. component: '@/views/vab/form/input',
  282. meta: {
  283. title: '输入框',
  284. },
  285. },
  286. {
  287. path: 'inputNumber',
  288. name: 'InputNumber',
  289. component: '@/views/vab/form/inputNumber',
  290. meta: {
  291. title: '计数器',
  292. },
  293. },
  294. {
  295. path: 'select',
  296. name: 'Select',
  297. component: '@/views/vab/form/select',
  298. meta: {
  299. title: '选择器',
  300. dot: true,
  301. },
  302. },
  303. {
  304. path: 'switch',
  305. name: 'Switch',
  306. component: '@/views/vab/form/switch',
  307. meta: {
  308. title: '开关',
  309. },
  310. },
  311. {
  312. path: 'slider',
  313. name: 'Slider',
  314. component: '@/views/vab/form/slider',
  315. meta: {
  316. title: '滑块',
  317. },
  318. },
  319. {
  320. path: 'timePicker',
  321. name: 'TimePicker',
  322. component: '@/views/vab/form/timePicker',
  323. meta: {
  324. title: '时间选择器',
  325. },
  326. },
  327. {
  328. path: 'datePicker',
  329. name: 'DatePicker',
  330. component: '@/views/vab/form/datePicker',
  331. meta: {
  332. title: '日期选择器',
  333. },
  334. },
  335. {
  336. path: 'dateTimePicker',
  337. name: 'DateTimePicker',
  338. component: '@/views/vab/form/dateTimePicker',
  339. meta: {
  340. title: '日期时间选择器',
  341. },
  342. },
  343. {
  344. path: 'rate',
  345. name: 'Rate',
  346. component: '@/views/vab/form/rate',
  347. meta: {
  348. title: '评分',
  349. },
  350. },
  351. ],
  352. },
  353. ],
  354. },
  355. {
  356. path: '/other',
  357. name: 'Other',
  358. component: 'Layout',
  359. meta: {
  360. title: '其他',
  361. icon: 'archive-line',
  362. guard: ['Admin'],
  363. },
  364. children: [
  365. {
  366. path: 'workflow',
  367. name: 'Workflow',
  368. component: '@/views/other/workflow/index',
  369. meta: {
  370. title: '工作流',
  371. guard: ['Admin'],
  372. icon: 'flow-chart',
  373. },
  374. },
  375. {
  376. path: 'echarts',
  377. name: 'Echarts',
  378. component: '@/views/other/echarts/index',
  379. meta: {
  380. title: '图表',
  381. guard: ['Admin'],
  382. icon: 'bubble-chart-line',
  383. },
  384. },
  385. {
  386. path: 'print',
  387. name: 'Print',
  388. component: '@/views/other/print/index',
  389. meta: {
  390. title: '打印',
  391. guard: ['Admin'],
  392. icon: 'printer-line',
  393. },
  394. },
  395. {
  396. path: 'cropper',
  397. name: 'Cropper',
  398. component: '@/views/other/cropper/index',
  399. meta: {
  400. title: '头像裁剪',
  401. guard: ['Admin'],
  402. icon: 'crop-line',
  403. },
  404. },
  405. {
  406. path: 'notice',
  407. name: 'Notice',
  408. component: '@/views/other/notice/index',
  409. meta: {
  410. title: '通知',
  411. guard: ['Admin'],
  412. icon: 'message-2-line',
  413. },
  414. },
  415. {
  416. path: 'timeline',
  417. name: 'Timeline',
  418. component: '@/views/other/timeline/index',
  419. meta: {
  420. title: '时间线',
  421. guard: ['Admin'],
  422. icon: 'time-line',
  423. },
  424. },
  425. {
  426. path: 'count',
  427. name: 'Count',
  428. component: '@/views/other/count/index',
  429. meta: {
  430. title: '数字自增长',
  431. guard: ['Admin'],
  432. icon: 'number-9',
  433. },
  434. },
  435. {
  436. path: 'tabs',
  437. name: 'Tabs',
  438. component: '@/views/other/tabs/index',
  439. meta: {
  440. title: '多标签',
  441. guard: ['Admin'],
  442. icon: 'bank-card-line',
  443. },
  444. },
  445. {
  446. path: 'watermark',
  447. name: 'Watermark',
  448. component: '@/views/other/watermark/index',
  449. meta: {
  450. title: '水印',
  451. guard: ['Admin'],
  452. icon: 'water-flash-line',
  453. dot: true,
  454. },
  455. },
  456. {
  457. path: 'share',
  458. name: 'Share',
  459. component: '@/views/other/share/index',
  460. meta: {
  461. title: '分享',
  462. guard: ['Admin'],
  463. icon: 'share-line',
  464. dot: true,
  465. },
  466. },
  467. {
  468. path: 'dynamicAnchor',
  469. name: 'DynamicAnchor',
  470. component: '@/views/other/dynamicAnchor/index',
  471. meta: {
  472. title: '动态锚点',
  473. guard: ['Admin'],
  474. icon: 'anchor-line',
  475. badge: 'New',
  476. },
  477. },
  478. {
  479. path: 'dynamicMeta',
  480. name: 'DynamicMeta',
  481. component: '@/views/other/dynamicMeta/index',
  482. meta: {
  483. title: '动态Meta',
  484. guard: ['Admin'],
  485. icon: 'notification-badge-line',
  486. badge: '0',
  487. },
  488. },
  489. {
  490. path: 'dynamicSegment',
  491. name: 'DynamicSegment',
  492. redirect: '/other/dynamicSegment/test1/1',
  493. meta: {
  494. title: '动态路径参数',
  495. guard: ['Admin'],
  496. icon: 'arrow-left-right-line',
  497. },
  498. children: [
  499. {
  500. path: 'test1/:id',
  501. name: 'Test1',
  502. component: '@/views/other/dynamicSegment/test1',
  503. meta: {
  504. hidden: true,
  505. title: 'Params',
  506. dynamicNewTab: true,
  507. },
  508. },
  509. {
  510. path: 'test1/1',
  511. name: 'test1/1',
  512. component: '@/views/other/dynamicSegment/test1',
  513. meta: { title: 'Params id=1' },
  514. },
  515. {
  516. path: 'test2',
  517. name: 'Test2',
  518. component: '@/views/other/dynamicSegment/test2',
  519. meta: {
  520. hidden: true,
  521. title: 'Query',
  522. dynamicNewTab: true,
  523. },
  524. },
  525. {
  526. path: 'test2?id=1',
  527. name: 'test2?id=1',
  528. component: '@/views/other/dynamicSegment/test2',
  529. meta: { title: 'Query id=1' },
  530. },
  531. ],
  532. },
  533. {
  534. path: 'drag',
  535. name: 'Drag',
  536. meta: {
  537. title: '拖拽',
  538. guard: ['Admin'],
  539. icon: 'drag-drop-line',
  540. },
  541. children: [
  542. {
  543. path: 'dialogDrag',
  544. name: 'DialogDrag',
  545. component: '@/views/other/drag/dialogDrag',
  546. meta: {
  547. title: '弹窗拖拽',
  548. dot: true,
  549. },
  550. },
  551. {
  552. path: 'cardDrag',
  553. name: 'CardDrag',
  554. component: '@/views/other/drag/cardDrag',
  555. meta: {
  556. title: '卡片拖拽',
  557. },
  558. },
  559. ],
  560. },
  561. {
  562. path: 'noLayout',
  563. name: 'NoLayout',
  564. component: '@/views/other/noLayout/index',
  565. meta: {
  566. title: '无框',
  567. guard: ['Admin'],
  568. icon: 'aspect-ratio-line',
  569. dot: true,
  570. },
  571. },
  572. {
  573. path: 'player',
  574. name: 'Player',
  575. component: '@/views/other/player/index',
  576. meta: {
  577. title: '视频播放器',
  578. guard: ['Admin'],
  579. icon: 'video-line',
  580. noKeepAlive: true,
  581. },
  582. },
  583. {
  584. path: 'upload',
  585. name: 'Upload',
  586. component: '@/views/other/upload/index',
  587. meta: {
  588. title: '上传',
  589. guard: ['Admin'],
  590. icon: 'chat-upload-line',
  591. },
  592. },
  593. {
  594. path: 'menu1',
  595. name: 'Menu1',
  596. meta: {
  597. title: '多级路由缓存',
  598. guard: ['Admin'],
  599. icon: 'route-line',
  600. },
  601. children: [
  602. {
  603. path: 'menu1-1',
  604. name: 'Menu11',
  605. meta: {
  606. title: '多级路由1-1',
  607. },
  608. children: [
  609. {
  610. path: 'menu1-1-1',
  611. name: 'Menu111',
  612. meta: {
  613. title: '多级路由1-1-1',
  614. },
  615. children: [
  616. {
  617. path: 'menu1-1-1-1',
  618. name: 'Menu1111',
  619. meta: {
  620. title: '多级路由1-1-1-1',
  621. },
  622. component:
  623. '@/views/other/nested/menu1/menu1-1/menu1-1-1/menu1-1-1-1/index',
  624. },
  625. ],
  626. },
  627. ],
  628. },
  629. ],
  630. },
  631. {
  632. path: 'log',
  633. name: 'Log',
  634. component: '@/views/other/errorLog/index',
  635. meta: {
  636. title: '错误日志模拟',
  637. guard: ['Admin'],
  638. icon: 'error-warning-line',
  639. },
  640. },
  641. {
  642. path: 'cssfx',
  643. name: 'Cssfx',
  644. component: '@/views/other/cssfx/index',
  645. meta: {
  646. title: 'Css动画',
  647. guard: ['Admin'],
  648. icon: 'css3-line',
  649. },
  650. },
  651. {
  652. path: 'social',
  653. name: 'Social',
  654. component: '@/views/other/social/index',
  655. meta: {
  656. title: '第三方登录',
  657. guard: ['Admin'],
  658. icon: 'github-fill',
  659. },
  660. },
  661. // {
  662. // path: 'mobilePreview',
  663. // name: 'MobilePreview',
  664. // component: '@/views/vab/mobilePreview',
  665. // meta: {
  666. // title: '手机预览',
  667. // guard: ['Admin'],
  668. // icon: 'smartphone-line',
  669. // },
  670. // },
  671. {
  672. path: '//github.com/chuzhixin/vue-admin-beautiful?utm_source=gold_browser_extension',
  673. name: 'ExternalLink',
  674. meta: {
  675. title: '外链',
  676. target: '_blank',
  677. // 等价guard: ['Admin', 'Editor'],
  678. guard: {
  679. role: ['Admin', 'Editor'],
  680. mode: 'oneOf',
  681. },
  682. icon: 'external-link-line',
  683. },
  684. },
  685. {
  686. path: 'iframe',
  687. name: 'Iframe',
  688. redirect: '/other/iframe/search',
  689. meta: {
  690. title: 'Iframe',
  691. guard: ['Admin'],
  692. icon: 'window-line',
  693. },
  694. children: [
  695. {
  696. path: 'view',
  697. name: 'IframeView',
  698. component: '@/views/other/iframe/view',
  699. meta: {
  700. hidden: true,
  701. title: 'Iframe',
  702. icon: 'window-line',
  703. dynamicNewTab: true,
  704. },
  705. },
  706. {
  707. path: 'view?url=www.so.com&title=360%E6%90%9C%E7%B4%A2&icon=search-2-line',
  708. name: 'Search360Iframe',
  709. meta: { title: '360搜索', icon: 'search-2-line' },
  710. },
  711. {
  712. path: 'view?url=www.bilibili.com&title=%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9&icon=bilibili-line',
  713. name: 'BiliBiliIframe',
  714. meta: { title: '哔哩哔哩', icon: 'bilibili-line' },
  715. },
  716. {
  717. path: 'search',
  718. name: 'IframeSearch',
  719. component: '@/views/other/iframe/search',
  720. meta: {
  721. title: '自定义Iframe',
  722. icon: 'search-2-line',
  723. },
  724. },
  725. ],
  726. },
  727. {
  728. path: 'excel',
  729. name: 'Excel',
  730. meta: {
  731. title: 'Excel',
  732. guard: ['Admin'],
  733. icon: 'file-excel-2-line',
  734. },
  735. children: [
  736. {
  737. path: 'exportExcel',
  738. name: 'ExportExcel',
  739. component: '@/views/other/excel/exportExcel',
  740. meta: {
  741. title: '导出Excel',
  742. },
  743. },
  744. {
  745. path: 'exportSelectedExcel',
  746. name: 'SelectExcel',
  747. component: '@/views/other/excel/exportSelectExcel',
  748. meta: {
  749. title: '导出选中行Excel',
  750. },
  751. },
  752. {
  753. path: 'exportMergeHeaderExcel',
  754. name: 'MergeHeaderExcel',
  755. component: '@/views/other/excel/exportMergeHeaderExcel',
  756. meta: {
  757. title: '导出合并Excel',
  758. },
  759. },
  760. ],
  761. },
  762. ],
  763. },
  764. {
  765. path: '/mall',
  766. name: 'Mall',
  767. component: 'Layout',
  768. meta: {
  769. title: '物料源',
  770. icon: 'apps-line',
  771. levelHidden: true,
  772. guard: ['Admin'],
  773. },
  774. children: [
  775. {
  776. path: 'goods',
  777. name: 'Goods',
  778. component: '@/views/mall/goods/index',
  779. meta: {
  780. title: '物料市场',
  781. icon: 'shopping-cart-line',
  782. badge: 'Hot',
  783. },
  784. },
  785. ],
  786. },
  787. {
  788. path: '/noColumn',
  789. name: 'NoColumn',
  790. component: 'Layout',
  791. meta: {
  792. title: '无分栏',
  793. icon: 'delete-column',
  794. guard: ['Admin'],
  795. breadcrumbHidden: true,
  796. },
  797. children: [
  798. {
  799. path: 'deleteColumn',
  800. name: 'DeleteColumn',
  801. component: '@/views/noColumn/deleteColumn/index',
  802. meta: {
  803. title: '无分栏',
  804. icon: 'delete-column',
  805. noColumn: true,
  806. },
  807. },
  808. ],
  809. },
  810. {
  811. path: '/setting',
  812. name: 'PersonnelManagement',
  813. component: 'Layout',
  814. meta: {
  815. title: '配置',
  816. icon: 'user-settings-line',
  817. guard: ['Admin'],
  818. },
  819. children: [
  820. {
  821. path: 'personalCenter',
  822. name: 'PersonalCenter',
  823. component: '@/views/setting/personalCenter/index',
  824. meta: {
  825. title: '个人中心',
  826. icon: 'map-pin-user-line',
  827. },
  828. },
  829. {
  830. path: 'userManagement',
  831. name: 'UserManagement',
  832. component: '@/views/setting/userManagement/index',
  833. meta: {
  834. title: '用户管理',
  835. icon: 'user-3-line',
  836. },
  837. },
  838. {
  839. path: 'roleManagement',
  840. name: 'RoleManagement',
  841. component: '@/views/setting/roleManagement/index',
  842. meta: {
  843. title: '角色管理',
  844. icon: 'admin-line',
  845. },
  846. },
  847. {
  848. path: 'departmentManagement',
  849. name: 'DepartmentManagement',
  850. component: '@/views/setting/departmentManagement/index',
  851. meta: {
  852. title: '部门管理',
  853. icon: 'group-line',
  854. },
  855. },
  856. {
  857. path: 'menuManagement',
  858. name: 'MenuManagement',
  859. component: '@/views/setting/menuManagement/index',
  860. meta: {
  861. title: '菜单管理',
  862. icon: 'menu-2-fill',
  863. },
  864. },
  865. {
  866. path: 'dictionaryManagement',
  867. name: 'DictionaryManagement',
  868. component: '@/views/setting/dictionaryManagement/index',
  869. meta: {
  870. title: '字典管理',
  871. icon: 'book-2-line',
  872. dot: true,
  873. },
  874. },
  875. {
  876. path: 'taskManagement',
  877. name: 'TaskManagement',
  878. component: '@/views/setting/taskManagement/index',
  879. meta: {
  880. title: '任务管理',
  881. icon: 'task-line',
  882. badge: 'New',
  883. },
  884. },
  885. {
  886. path: 'systemLog',
  887. name: 'SystemLog',
  888. component: '@/views/setting/systemLog/index',
  889. meta: {
  890. title: '系统日志',
  891. icon: 'file-shield-2-line',
  892. },
  893. },
  894. ],
  895. },
  896. {
  897. path: '/tools',
  898. name: 'Tools',
  899. component: 'Layout',
  900. meta: {
  901. title: '工具',
  902. icon: 'tools-line',
  903. levelHidden: true,
  904. guard: ['Admin'],
  905. },
  906. children: [
  907. {
  908. path: 'eyeDropper',
  909. name: 'EyeDropper',
  910. component: '@/views/tools/EyeDropper.vue',
  911. meta: {
  912. title: '取色器',
  913. icon: 'contrast-drop-line',
  914. },
  915. },
  916. {
  917. path: 'speechSynthesis',
  918. name: 'SpeechSynthesis',
  919. component: '@/views/tools/SpeechSynthesis.vue',
  920. meta: {
  921. title: '语音合成',
  922. icon: 'customer-service-line',
  923. },
  924. },
  925. ],
  926. },
  927. {
  928. path: '//github.com/chuzhixin/vue-admin-beautiful?utm_source=gold_browser_extension',
  929. name: 'Github',
  930. component: 'Layout',
  931. meta: {
  932. title: '外链',
  933. icon: 'external-link-line',
  934. guard: ['Admin'],
  935. target: '_blank',
  936. breadcrumbHidden: true,
  937. noColumn: true,
  938. },
  939. children: [
  940. {
  941. path: '//github.com/chuzhixin/vue-admin-beautiful?utm_source=gold_browser_extension',
  942. name: 'GithubExternalLink',
  943. component: '@/views/github/githubExternalLink/index',
  944. meta: {
  945. title: '外链',
  946. icon: 'external-link-line',
  947. noColumn: true,
  948. target: '_blank',
  949. },
  950. },
  951. ],
  952. },
  953. {
  954. path: '/error',
  955. name: 'Error',
  956. component: 'Layout',
  957. meta: {
  958. title: '错误页',
  959. icon: 'error-warning-line',
  960. levelHidden: true,
  961. },
  962. children: [
  963. {
  964. path: '403',
  965. name: 'Error403',
  966. component: '@/views/403',
  967. meta: {
  968. title: '403',
  969. icon: 'error-warning-line',
  970. },
  971. },
  972. {
  973. path: '404',
  974. name: 'Error404',
  975. component: '@/views/404',
  976. meta: {
  977. title: '404',
  978. icon: 'error-warning-line',
  979. },
  980. },
  981. ],
  982. },
  983. ]
  984. module.exports = [
  985. {
  986. url: '/router/getList',
  987. type: 'get',
  988. response() {
  989. return {
  990. code: 200,
  991. msg: 'success',
  992. data: { list: List },
  993. }
  994. },
  995. },
  996. ]