routers.ts 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. path: '/dashboard',
  5. name: 'dashboard',
  6. component: 'LAYOUT',
  7. redirect: '/dashboard/console',
  8. meta: {
  9. icon: 'DashboardOutlined',
  10. title: 'Dashboard',
  11. noCache: false,
  12. hidden: false,
  13. isFrame: '1',
  14. status: '0',
  15. isRoot: false,
  16. alwaysShow: false,
  17. },
  18. children: [
  19. {
  20. path: 'workplace',
  21. name: 'dashboard_workplace',
  22. component: '/dashboard/workplace/workplace',
  23. meta: {
  24. title: '工作台',
  25. noCache: false,
  26. hidden: false,
  27. isFrame: '1',
  28. status: '0',
  29. isRoot: false,
  30. alwaysShow: false,
  31. },
  32. },
  33. {
  34. path: 'console',
  35. name: 'dashboard_console',
  36. component: '/dashboard/console/console',
  37. meta: {
  38. title: '主控台',
  39. noCache: false,
  40. hidden: false,
  41. isFrame: '1',
  42. status: '0',
  43. isRoot: false,
  44. alwaysShow: false,
  45. },
  46. },
  47. {
  48. path: 'monitor',
  49. name: 'dashboard_monitor',
  50. component: '/dashboard/monitor/monitor',
  51. meta: {
  52. icon: '',
  53. title: '监控页',
  54. noCache: false,
  55. hidden: false,
  56. query: '',
  57. isFrame: '1',
  58. status: '0',
  59. isRoot: false,
  60. alwaysShow: true,
  61. },
  62. },
  63. ],
  64. },
  65. {
  66. path: '/auth',
  67. name: 'auth',
  68. component: 'LAYOUT',
  69. meta: {
  70. icon: 'SafetyOutlined',
  71. title: '权限管理',
  72. noCache: false,
  73. hidden: false,
  74. query: '',
  75. isFrame: '1',
  76. status: '0',
  77. isRoot: false,
  78. alwaysShow: false,
  79. },
  80. children: [
  81. {
  82. path: 'user',
  83. name: 'system_user',
  84. component: '/system/user/user',
  85. redirect: '',
  86. meta: {
  87. title: '用户管理',
  88. noCache: false,
  89. hidden: false,
  90. isFrame: '1',
  91. status: '0',
  92. isRoot: false,
  93. alwaysShow: false,
  94. },
  95. },
  96. {
  97. path: 'role',
  98. name: 'system_role',
  99. component: '/system/role/role',
  100. meta: {
  101. title: '角色管理',
  102. noCache: false,
  103. hidden: false,
  104. isFrame: '1',
  105. status: '0',
  106. isRoot: false,
  107. alwaysShow: false,
  108. },
  109. },
  110. {
  111. path: 'dept',
  112. name: 'dept',
  113. component: '/auth/dept/dept',
  114. meta: {
  115. title: '部门管理',
  116. noCache: false,
  117. hidden: false,
  118. isFrame: '1',
  119. status: '0',
  120. isRoot: false,
  121. alwaysShow: true,
  122. },
  123. },
  124. {
  125. path: 'post',
  126. name: 'post',
  127. component: '/auth/post/post',
  128. meta: {
  129. title: '岗位管理',
  130. noCache: false,
  131. hidden: false,
  132. isFrame: '1',
  133. status: '0',
  134. isRoot: false,
  135. alwaysShow: true,
  136. },
  137. },
  138. ],
  139. },
  140. {
  141. path: '/system',
  142. name: 'system',
  143. component: 'LAYOUT',
  144. redirect: '/system/menu',
  145. meta: {
  146. icon: 'OptionsSharp',
  147. title: '系统管理',
  148. noCache: false,
  149. hidden: false,
  150. isFrame: '1',
  151. status: '0',
  152. isRoot: false,
  153. alwaysShow: false,
  154. },
  155. children: [
  156. {
  157. path: 'menu',
  158. name: 'system_menu',
  159. component: '/system/menu/menu',
  160. redirect: '',
  161. meta: {
  162. title: '菜单管理',
  163. noCache: false,
  164. hidden: false,
  165. isFrame: '1',
  166. status: '0',
  167. isRoot: false,
  168. alwaysShow: false,
  169. },
  170. },
  171. {
  172. path: 'dictionary',
  173. name: 'system_dictionary',
  174. component: '/system/dictionary/dictionary',
  175. meta: {
  176. title: '字典管理',
  177. noCache: false,
  178. hidden: false,
  179. isFrame: '1',
  180. status: '0',
  181. isRoot: false,
  182. alwaysShow: false,
  183. },
  184. },
  185. {
  186. path: 'logs',
  187. name: 'system_logs',
  188. component: 'ParentLayout',
  189. meta: {
  190. title: '日志管理',
  191. noCache: false,
  192. hidden: false,
  193. isFrame: '1',
  194. status: '0',
  195. isRoot: false,
  196. alwaysShow: false,
  197. },
  198. },
  199. {
  200. path: 'region',
  201. name: 'system_region',
  202. component: 'ParentLayout',
  203. redirect: '',
  204. meta: {
  205. title: '区域管理',
  206. noCache: false,
  207. hidden: false,
  208. isFrame: '1',
  209. status: '0',
  210. isRoot: false,
  211. alwaysShow: true,
  212. },
  213. children: [
  214. {
  215. path: 'list',
  216. name: 'system_region_list',
  217. component: '/system/region/region',
  218. meta: {
  219. title: '区域管理',
  220. noCache: false,
  221. hidden: false,
  222. isFrame: '1',
  223. status: '0',
  224. isRoot: false,
  225. alwaysShow: false,
  226. },
  227. },
  228. ],
  229. },
  230. {
  231. path: 'config',
  232. name: 'system_config',
  233. component: 'ParentLayout',
  234. meta: {
  235. title: '配置管理',
  236. noCache: false,
  237. hidden: false,
  238. isFrame: '1',
  239. status: '0',
  240. isRoot: false,
  241. alwaysShow: true,
  242. },
  243. children: [
  244. {
  245. path: 'list',
  246. name: 'system_config_list',
  247. component: '/system/config/list',
  248. meta: {
  249. icon: '',
  250. title: '配置管理',
  251. noCache: false,
  252. hidden: false,
  253. query: '',
  254. isFrame: '1',
  255. status: '0',
  256. isRoot: false,
  257. alwaysShow: false,
  258. },
  259. },
  260. ],
  261. },
  262. {
  263. path: '/system/api',
  264. name: 'https://api-tenant.naiveadmin.com/swagger-ui/#/',
  265. component: '1',
  266. meta: {
  267. icon: '',
  268. title: '系统接口',
  269. noCache: false,
  270. hidden: false,
  271. query: '',
  272. isFrame: '1',
  273. frameSrc: '',
  274. status: '0',
  275. isRoot: false,
  276. alwaysShow: false,
  277. },
  278. },
  279. ],
  280. },
  281. {
  282. path: '/list',
  283. name: 'List',
  284. component: 'LAYOUT',
  285. redirect: '/list/basic-list',
  286. meta: {
  287. icon: 'TableOutlined',
  288. title: '列表页面',
  289. noCache: false,
  290. hidden: false,
  291. query: '',
  292. isFrame: '1',
  293. status: '0',
  294. isRoot: false,
  295. alwaysShow: true,
  296. },
  297. children: [
  298. {
  299. path: 'basic-info/:id?',
  300. name: 'BasicInfo',
  301. component: '/list/basicList/info',
  302. meta: {
  303. icon: '',
  304. title: '基础详情',
  305. noCache: false,
  306. hidden: true,
  307. query: '',
  308. isFrame: '1',
  309. status: '0',
  310. isRoot: false,
  311. alwaysShow: true,
  312. },
  313. },
  314. {
  315. path: 'basic-list',
  316. name: 'basic-list',
  317. component: '/list/basicList/index',
  318. meta: {
  319. icon: '',
  320. title: '基础列表',
  321. noCache: false,
  322. hidden: false,
  323. query: '',
  324. isFrame: '1',
  325. status: '0',
  326. isRoot: false,
  327. alwaysShow: true,
  328. },
  329. },
  330. ],
  331. },
  332. {
  333. path: '/exception',
  334. name: 'Exception',
  335. component: 'LAYOUT',
  336. redirect: '/exception/403',
  337. meta: {
  338. icon: 'ExclamationCircleOutlined',
  339. title: '异常页面',
  340. noCache: false,
  341. hidden: false,
  342. query: '',
  343. isFrame: '1',
  344. status: '0',
  345. isRoot: false,
  346. alwaysShow: false,
  347. },
  348. children: [
  349. {
  350. path: '403',
  351. name: 'exception-403',
  352. component: '/exception/403',
  353. meta: {
  354. icon: '',
  355. title: '403',
  356. noCache: false,
  357. hidden: false,
  358. query: '',
  359. isFrame: '1',
  360. status: '0',
  361. isRoot: false,
  362. alwaysShow: true,
  363. },
  364. },
  365. ],
  366. },
  367. {
  368. path: '/form',
  369. name: 'Form',
  370. component: 'LAYOUT',
  371. redirect: '/form/basic-form',
  372. meta: {
  373. icon: 'ProfileOutlined',
  374. title: '表单页面',
  375. noCache: false,
  376. hidden: false,
  377. query: '',
  378. isFrame: '1',
  379. status: '0',
  380. isRoot: false,
  381. alwaysShow: true,
  382. },
  383. children: [
  384. {
  385. path: 'basic-form',
  386. name: 'BasicForm',
  387. component: '/form/basicForm/index',
  388. meta: {
  389. icon: '',
  390. title: '基础表单',
  391. noCache: false,
  392. hidden: false,
  393. query: '',
  394. isFrame: '1',
  395. status: '0',
  396. isRoot: false,
  397. alwaysShow: true,
  398. },
  399. },
  400. {
  401. path: 'step-form',
  402. name: 'form-step-form',
  403. component: '/form/stepForm/stepForm',
  404. meta: {
  405. icon: '',
  406. title: '分步表单',
  407. noCache: false,
  408. hidden: false,
  409. query: '',
  410. isFrame: '1',
  411. status: '0',
  412. isRoot: false,
  413. alwaysShow: true,
  414. },
  415. },
  416. {
  417. path: 'advanced-form',
  418. name: 'form-advanced-form',
  419. component: '/form/advancedForm/advancedForm.',
  420. meta: {
  421. icon: '',
  422. title: '高级表单',
  423. noCache: false,
  424. hidden: false,
  425. query: '',
  426. isFrame: '1',
  427. status: '0',
  428. isRoot: false,
  429. alwaysShow: true,
  430. },
  431. },
  432. {
  433. path: 'detail',
  434. name: 'form-detail',
  435. component: '/form/detail/index',
  436. meta: {
  437. icon: '',
  438. title: '表单详情',
  439. noCache: false,
  440. hidden: false,
  441. query: '',
  442. isFrame: '1',
  443. status: '0',
  444. isRoot: false,
  445. alwaysShow: true,
  446. },
  447. },
  448. ],
  449. },
  450. {
  451. path: '/setting',
  452. name: 'Setting',
  453. component: 'LAYOUT',
  454. redirect: '/setting/account',
  455. meta: {
  456. icon: 'SettingOutlined',
  457. title: '设置页面',
  458. noCache: false,
  459. hidden: false,
  460. query: '',
  461. isFrame: '1',
  462. status: '0',
  463. isRoot: false,
  464. alwaysShow: true,
  465. },
  466. children: [
  467. {
  468. path: 'account',
  469. name: 'setting-account',
  470. component: '/setting/account/account',
  471. meta: {
  472. icon: '',
  473. title: '个人设置',
  474. noCache: false,
  475. hidden: false,
  476. query: '',
  477. isFrame: '1',
  478. status: '0',
  479. isRoot: false,
  480. alwaysShow: true,
  481. },
  482. },
  483. {
  484. path: 'system',
  485. name: 'setting-system',
  486. component: '/setting/system/system',
  487. meta: {
  488. icon: '',
  489. title: '系统设置',
  490. noCache: false,
  491. hidden: false,
  492. query: '',
  493. isFrame: '1',
  494. status: '0',
  495. isRoot: false,
  496. alwaysShow: true,
  497. },
  498. },
  499. ],
  500. },
  501. {
  502. path: '/feature',
  503. name: 'Feature',
  504. component: 'LAYOUT',
  505. redirect: '/feature/download',
  506. meta: {
  507. icon: 'ControlOutlined',
  508. title: '功能示例',
  509. noCache: false,
  510. hidden: false,
  511. query: '',
  512. isFrame: '1',
  513. status: '0',
  514. isRoot: false,
  515. alwaysShow: true,
  516. },
  517. children: [
  518. {
  519. path: 'download',
  520. name: 'Download',
  521. component: '/feature/download/downloadT',
  522. meta: {
  523. icon: '',
  524. title: '文件下载',
  525. noCache: false,
  526. hidden: false,
  527. query: '',
  528. isFrame: '1',
  529. status: '0',
  530. isRoot: false,
  531. alwaysShow: true,
  532. },
  533. },
  534. {
  535. path: 'tagsAction',
  536. name: 'tagsAction',
  537. component: '/feature/tags/tagsAction',
  538. meta: {
  539. icon: '',
  540. title: '多页签操作',
  541. noCache: false,
  542. hidden: false,
  543. query: '',
  544. isFrame: '1',
  545. status: '0',
  546. isRoot: false,
  547. alwaysShow: true,
  548. },
  549. },
  550. {
  551. path: 'context-menus',
  552. name: 'ContextMenus',
  553. component: '/feature/context-menus/context-menus',
  554. meta: {
  555. icon: '',
  556. title: '右键菜单',
  557. noCache: false,
  558. hidden: false,
  559. query: '',
  560. isFrame: '1',
  561. status: '0',
  562. isRoot: false,
  563. alwaysShow: true,
  564. },
  565. },
  566. {
  567. path: 'copy',
  568. name: 'copy',
  569. component: '/feature/copy/copy',
  570. meta: {
  571. icon: '',
  572. title: '剪贴板',
  573. noCache: false,
  574. hidden: false,
  575. query: '',
  576. isFrame: '1',
  577. status: '0',
  578. isRoot: false,
  579. alwaysShow: true,
  580. },
  581. },
  582. {
  583. path: 'print',
  584. name: 'print',
  585. component: '/feature/print/print',
  586. meta: {
  587. icon: '',
  588. title: '打印',
  589. noCache: false,
  590. hidden: false,
  591. query: '',
  592. isFrame: '1',
  593. status: '0',
  594. isRoot: false,
  595. alwaysShow: true,
  596. },
  597. },
  598. {
  599. path: 'scrollbar',
  600. name: 'scrollbar',
  601. component: '/feature/scrollbar/scrollbar',
  602. meta: {
  603. icon: '',
  604. title: '滚动条',
  605. noCache: false,
  606. hidden: false,
  607. query: '',
  608. isFrame: '1',
  609. status: '0',
  610. isRoot: false,
  611. alwaysShow: true,
  612. },
  613. },
  614. {
  615. path: 'Excel',
  616. name: 'Excel',
  617. component: 'ParentLayout',
  618. meta: {
  619. icon: '',
  620. title: 'Excel',
  621. noCache: false,
  622. hidden: false,
  623. query: '',
  624. isFrame: '1',
  625. status: '0',
  626. isRoot: false,
  627. alwaysShow: true,
  628. },
  629. children: [
  630. {
  631. path: 'jsonExport',
  632. name: 'jsonExport',
  633. component: '/feature/excel/jsonExport',
  634. meta: {
  635. icon: '',
  636. title: 'JSON数据导出',
  637. noCache: false,
  638. hidden: false,
  639. query: '',
  640. isFrame: '1',
  641. status: '0',
  642. isRoot: false,
  643. alwaysShow: true,
  644. },
  645. },
  646. {
  647. path: 'choiceExport',
  648. name: 'choiceExport',
  649. component: '/feature/excel/choiceExport',
  650. meta: {
  651. icon: '',
  652. title: '选择导出格式',
  653. noCache: false,
  654. hidden: false,
  655. query: '',
  656. isFrame: '1',
  657. status: '0',
  658. isRoot: false,
  659. alwaysShow: true,
  660. },
  661. },
  662. ],
  663. },
  664. ],
  665. },
  666. {
  667. path: '/article',
  668. name: 'System_Article',
  669. component: 'LAYOUT',
  670. redirect: '/article/list',
  671. meta: {
  672. icon: 'BookOutlined',
  673. title: '文章管理',
  674. noCache: false,
  675. hidden: false,
  676. isFrame: '1',
  677. status: '0',
  678. isRoot: false,
  679. alwaysShow: false,
  680. },
  681. children: [
  682. {
  683. path: 'list',
  684. name: 'article_list',
  685. component: '/article/list',
  686. meta: {
  687. title: '文章列表',
  688. noCache: false,
  689. hidden: false,
  690. isFrame: '1',
  691. status: '0',
  692. isRoot: false,
  693. alwaysShow: false,
  694. },
  695. },
  696. ],
  697. },
  698. {
  699. path: '/comp',
  700. name: 'comp',
  701. component: 'LAYOUT',
  702. redirect: '/comp/table',
  703. meta: {
  704. icon: 'WalletOutlined',
  705. title: '组件示例',
  706. noCache: false,
  707. hidden: false,
  708. query: '',
  709. isFrame: '1',
  710. status: '0',
  711. isRoot: false,
  712. alwaysShow: true,
  713. },
  714. children: [
  715. {
  716. path: 'richtext',
  717. name: 'richtext',
  718. component: '/comp/richtext/vue-quill',
  719. meta: {
  720. icon: '',
  721. title: '富文本',
  722. noCache: false,
  723. hidden: false,
  724. query: '',
  725. isFrame: '1',
  726. status: '0',
  727. isRoot: false,
  728. alwaysShow: true,
  729. },
  730. },
  731. {
  732. path: 'drag',
  733. name: 'Drag',
  734. component: '/comp/drag/index',
  735. meta: {
  736. icon: '',
  737. title: '拖拽',
  738. noCache: false,
  739. hidden: false,
  740. query: '',
  741. isFrame: '1',
  742. status: '0',
  743. isRoot: false,
  744. alwaysShow: true,
  745. },
  746. },
  747. {
  748. path: 'region',
  749. name: 'Region',
  750. component: '/comp/region/index',
  751. meta: {
  752. icon: '',
  753. title: '地区',
  754. noCache: false,
  755. hidden: false,
  756. query: '',
  757. isFrame: '1',
  758. status: '0',
  759. isRoot: false,
  760. alwaysShow: true,
  761. },
  762. },
  763. {
  764. path: 'qrcode',
  765. name: 'Qrcode',
  766. component: '/comp/qrcode/index',
  767. meta: {
  768. icon: '',
  769. title: '二维码',
  770. noCache: false,
  771. hidden: false,
  772. query: '',
  773. isFrame: '1',
  774. status: '0',
  775. isRoot: false,
  776. alwaysShow: true,
  777. },
  778. },
  779. {
  780. path: 'form',
  781. name: 'comp_form',
  782. component: 'ParentLayout',
  783. meta: {
  784. icon: '',
  785. title: '表单',
  786. noCache: false,
  787. hidden: false,
  788. query: '',
  789. isFrame: '1',
  790. status: '0',
  791. isRoot: false,
  792. alwaysShow: true,
  793. },
  794. children: [
  795. {
  796. path: 'basic',
  797. name: 'comp_form_basic',
  798. component: '/comp/form/basic',
  799. meta: {
  800. icon: '',
  801. title: '基础使用',
  802. noCache: false,
  803. hidden: false,
  804. query: '',
  805. isFrame: '1',
  806. status: '0',
  807. isRoot: false,
  808. alwaysShow: true,
  809. },
  810. },
  811. {
  812. path: 'useForm',
  813. name: 'useForm',
  814. component: '/comp/form/useForm',
  815. meta: {
  816. icon: '',
  817. title: 'useForm',
  818. noCache: false,
  819. hidden: false,
  820. query: '',
  821. isFrame: '1',
  822. status: '0',
  823. isRoot: false,
  824. alwaysShow: true,
  825. },
  826. },
  827. ],
  828. },
  829. {
  830. path: 'cropper',
  831. name: 'Cropper',
  832. component: '/comp/cropper/index',
  833. meta: {
  834. icon: '',
  835. title: '图片裁剪',
  836. noCache: false,
  837. hidden: false,
  838. query: '',
  839. isFrame: '1',
  840. status: '0',
  841. isRoot: false,
  842. alwaysShow: true,
  843. },
  844. },
  845. {
  846. path: 'password',
  847. name: 'Password',
  848. component: '/comp/password/index',
  849. meta: {
  850. icon: '',
  851. title: '密码强度',
  852. noCache: false,
  853. hidden: false,
  854. query: '',
  855. isFrame: '1',
  856. status: '0',
  857. isRoot: false,
  858. alwaysShow: true,
  859. },
  860. },
  861. {
  862. path: 'select',
  863. name: 'Select',
  864. component: '/comp/select/select',
  865. meta: {
  866. icon: '',
  867. title: '选择器',
  868. noCache: false,
  869. hidden: false,
  870. query: '',
  871. isFrame: '1',
  872. status: '0',
  873. isRoot: false,
  874. alwaysShow: true,
  875. },
  876. },
  877. {
  878. path: 'tableselect',
  879. name: 'Tableselect',
  880. component: '/comp/tableSelect/tableSelect',
  881. meta: {
  882. icon: '',
  883. title: '表格选择器',
  884. noCache: false,
  885. hidden: false,
  886. query: '',
  887. isFrame: '1',
  888. status: '0',
  889. isRoot: false,
  890. alwaysShow: true,
  891. },
  892. },
  893. {
  894. path: 'upload',
  895. name: 'comp_upload',
  896. component: '/comp/upload/index',
  897. meta: {
  898. icon: '',
  899. title: '上传图片',
  900. noCache: false,
  901. hidden: false,
  902. query: '',
  903. isFrame: '1',
  904. status: '0',
  905. isRoot: false,
  906. alwaysShow: true,
  907. },
  908. },
  909. {
  910. path: 'table',
  911. name: 'comp_table',
  912. component: 'ParentLayout',
  913. meta: {
  914. icon: '',
  915. title: '表格',
  916. noCache: false,
  917. hidden: false,
  918. query: '',
  919. isFrame: '1',
  920. status: '0',
  921. isRoot: false,
  922. alwaysShow: true,
  923. },
  924. children: [
  925. {
  926. path: 'basic',
  927. name: 'comp_table_basic',
  928. component: '/comp/table/basic',
  929. meta: {
  930. icon: '',
  931. title: '基础表格',
  932. noCache: false,
  933. hidden: false,
  934. query: '',
  935. isFrame: '1',
  936. status: '0',
  937. isRoot: false,
  938. alwaysShow: true,
  939. },
  940. },
  941. {
  942. path: 'editCell',
  943. name: 'comp_table_editCell',
  944. component: '/comp/table/editCell',
  945. meta: {
  946. icon: '',
  947. title: '单元格编辑',
  948. noCache: false,
  949. hidden: false,
  950. query: '',
  951. isFrame: '1',
  952. status: '0',
  953. isRoot: false,
  954. alwaysShow: true,
  955. },
  956. },
  957. {
  958. path: 'editRow',
  959. name: 'comp_table_editRow',
  960. component: '/comp/table/editRow',
  961. meta: {
  962. icon: '',
  963. title: '整行编辑',
  964. noCache: false,
  965. hidden: false,
  966. query: '',
  967. isFrame: '1',
  968. status: '0',
  969. isRoot: false,
  970. alwaysShow: true,
  971. },
  972. },
  973. ],
  974. },
  975. {
  976. path: 'modal',
  977. name: 'comp_modal',
  978. component: '/comp/modal/index',
  979. meta: {
  980. icon: '',
  981. title: '弹窗扩展',
  982. noCache: false,
  983. hidden: false,
  984. query: '',
  985. isFrame: '1',
  986. status: '0',
  987. isRoot: false,
  988. alwaysShow: true,
  989. },
  990. },
  991. ],
  992. },
  993. {
  994. path: '/instation',
  995. name: 'instation',
  996. component: 'LAYOUT',
  997. meta: {
  998. icon: 'BellOutlined',
  999. title: '站内通知',
  1000. noCache: false,
  1001. hidden: false,
  1002. isFrame: '1',
  1003. status: '0',
  1004. isRoot: false,
  1005. alwaysShow: false,
  1006. },
  1007. children: [
  1008. {
  1009. path: 'myalerts',
  1010. name: 'myalerts',
  1011. component: '/instation/myalerts/myalerts',
  1012. meta: {
  1013. icon: '',
  1014. title: '我的通知',
  1015. noCache: false,
  1016. hidden: false,
  1017. query: '',
  1018. isFrame: '1',
  1019. status: '0',
  1020. isRoot: false,
  1021. alwaysShow: false,
  1022. },
  1023. },
  1024. {
  1025. path: 'notice/info/:id',
  1026. name: 'instation_notice_info',
  1027. component: '/instation/notice/info',
  1028. meta: {
  1029. icon: '',
  1030. title: '查看通知',
  1031. noCache: false,
  1032. hidden: true,
  1033. query: '',
  1034. isFrame: '1',
  1035. status: '0',
  1036. isRoot: false,
  1037. alwaysShow: false,
  1038. },
  1039. },
  1040. {
  1041. path: 'notice',
  1042. name: 'instation_notice',
  1043. component: '/instation/notice/notice',
  1044. meta: {
  1045. icon: '',
  1046. title: '通知管理',
  1047. noCache: false,
  1048. hidden: false,
  1049. query: '',
  1050. isFrame: '1',
  1051. status: '0',
  1052. isRoot: false,
  1053. alwaysShow: false,
  1054. },
  1055. },
  1056. ],
  1057. },
  1058. {
  1059. path: '/result',
  1060. name: 'Result',
  1061. component: 'LAYOUT',
  1062. redirect: '/result/success',
  1063. meta: {
  1064. icon: 'CheckCircleOutlined',
  1065. title: '结果页面',
  1066. noCache: false,
  1067. hidden: false,
  1068. query: '',
  1069. isFrame: '1',
  1070. status: '0',
  1071. isRoot: false,
  1072. alwaysShow: true,
  1073. },
  1074. children: [
  1075. {
  1076. path: 'success',
  1077. name: 'result-success',
  1078. component: '/result/success',
  1079. meta: {
  1080. icon: '',
  1081. title: '成功页',
  1082. noCache: false,
  1083. hidden: false,
  1084. query: '',
  1085. isFrame: '1',
  1086. status: '0',
  1087. isRoot: false,
  1088. alwaysShow: true,
  1089. },
  1090. },
  1091. {
  1092. path: 'fail',
  1093. name: 'result-fail',
  1094. component: '/result/fail',
  1095. meta: {
  1096. icon: '',
  1097. title: '失败页',
  1098. noCache: false,
  1099. hidden: false,
  1100. query: '',
  1101. isFrame: '1',
  1102. status: '0',
  1103. isRoot: false,
  1104. alwaysShow: true,
  1105. },
  1106. },
  1107. {
  1108. path: 'info',
  1109. name: 'result-info',
  1110. component: '/result/info',
  1111. meta: {
  1112. icon: '',
  1113. title: '信息页',
  1114. noCache: false,
  1115. hidden: false,
  1116. query: '',
  1117. isFrame: '1',
  1118. status: '0',
  1119. isRoot: false,
  1120. alwaysShow: true,
  1121. },
  1122. },
  1123. ],
  1124. },
  1125. {
  1126. path: '/frame',
  1127. name: 'Frame',
  1128. component: 'LAYOUT',
  1129. redirect: '/frame/docs',
  1130. meta: {
  1131. icon: 'DesktopOutline',
  1132. title: '外部页面',
  1133. noCache: false,
  1134. hidden: false,
  1135. query: '',
  1136. isFrame: '1',
  1137. status: '0',
  1138. isRoot: false,
  1139. alwaysShow: true,
  1140. },
  1141. children: [
  1142. {
  1143. path: 'docs',
  1144. name: 'frame-docs',
  1145. component: 'IFRAME',
  1146. meta: {
  1147. icon: '',
  1148. title: '项目文档(内嵌)',
  1149. noCache: false,
  1150. hidden: false,
  1151. query: '',
  1152. isFrame: '0',
  1153. frameSrc: 'https://www.naiveadmin.com',
  1154. status: '0',
  1155. isRoot: false,
  1156. alwaysShow: true,
  1157. },
  1158. },
  1159. {
  1160. path: 'naive',
  1161. name: 'frame-naive',
  1162. component: 'IFRAME',
  1163. meta: {
  1164. icon: '',
  1165. title: 'NaiveUi(内嵌)',
  1166. noCache: false,
  1167. hidden: false,
  1168. query: '',
  1169. isFrame: '0',
  1170. frameSrc: 'https://www.naiveui.com',
  1171. status: '0',
  1172. isRoot: false,
  1173. alwaysShow: true,
  1174. },
  1175. },
  1176. ],
  1177. },
  1178. {
  1179. path: '/about',
  1180. name: 'about',
  1181. component: 'LAYOUT',
  1182. meta: {
  1183. icon: 'ProjectOutlined',
  1184. title: '关于项目',
  1185. noCache: false,
  1186. hidden: false,
  1187. query: '',
  1188. isFrame: '1',
  1189. status: '0',
  1190. isRoot: false,
  1191. alwaysShow: true,
  1192. },
  1193. children: [
  1194. {
  1195. path: 'index',
  1196. name: 'about_index',
  1197. component: '/about/index',
  1198. meta: {
  1199. icon: '',
  1200. title: '关于项目',
  1201. noCache: false,
  1202. hidden: false,
  1203. query: '',
  1204. isFrame: '1',
  1205. status: '0',
  1206. isRoot: false,
  1207. alwaysShow: false,
  1208. },
  1209. },
  1210. ],
  1211. },
  1212. {
  1213. path: '/external',
  1214. name: 'https://www.naiveadmin.com',
  1215. component: 'LAYOUT',
  1216. meta: {
  1217. icon: 'DocumentTextOutline',
  1218. title: '项目文档',
  1219. noCache: false,
  1220. hidden: false,
  1221. query: '',
  1222. isFrame: '0',
  1223. frameSrc: 'https://www.naiveadmin.com',
  1224. status: '0',
  1225. isRoot: false,
  1226. alwaysShow: true,
  1227. },
  1228. },
  1229. {
  1230. path: '/mandate',
  1231. name: 'https://www.naiveadmin.com/version/full',
  1232. component: 'LAYOUT',
  1233. meta: {
  1234. icon: 'DiamondOutline',
  1235. title: '获取授权',
  1236. noCache: false,
  1237. hidden: false,
  1238. query: '',
  1239. isFrame: '0',
  1240. frameSrc: 'https://www.naiveadmin.com/version/full',
  1241. status: '0',
  1242. isRoot: false,
  1243. alwaysShow: true,
  1244. },
  1245. },
  1246. {
  1247. path: '/external',
  1248. name: 'https://full-docs.naiveadmin.com/',
  1249. component: 'LAYOUT',
  1250. redirect: 'admin_doc',
  1251. meta: {
  1252. icon: 'DocumentTextOutline',
  1253. title: '后端框架',
  1254. noCache: false,
  1255. hidden: false,
  1256. query: '',
  1257. isFrame: '0',
  1258. frameSrc: 'https://full-docs.naiveadmin.com/',
  1259. status: '0',
  1260. isRoot: false,
  1261. alwaysShow: false,
  1262. },
  1263. },
  1264. ];
  1265. export default [
  1266. {
  1267. url: '/api/login/getRouters',
  1268. timeout: 1000,
  1269. method: 'get',
  1270. response: () => {
  1271. return resultSuccess(list);
  1272. },
  1273. },
  1274. ];