index.ts 90 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956
  1. import { EnumRouterName } from '@/common/constants/enumRouterName';
  2. import { setLoadComplete } from '@/common/methods';
  3. import { getLoadIsComplete } from '@/common/methods/mixin';
  4. import Main from '@/layout/components/main.vue';
  5. import Layout from '@/layout/index.vue';
  6. import { globalDataRefresh } from '@/services/bus';
  7. import { isLogin, login } from '@/services/bus/login';
  8. import { localStorageUtil } from '@/utils/storage';
  9. import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
  10. import eventBus from '../utils/eventBus';
  11. const routes: Array<RouteRecordRaw> = [
  12. {
  13. path: '/login',
  14. name: 'login',
  15. component: () => import('@/views/account/login.vue'),
  16. },
  17. {
  18. path: '/logon',
  19. name: 'logon',
  20. component: () => import('@/views/account/logon.vue'),
  21. },
  22. {
  23. path: '/resetPassword',
  24. name: 'resetPassword',
  25. component: () => import('@/views/account/resetPassword.vue'),
  26. },
  27. {
  28. path: '/',
  29. component: Layout,
  30. props: true,
  31. redirect: '/login',
  32. children: [
  33. {
  34. path: '/home',
  35. name: 'home',
  36. component: () => import('@/views/home.vue'),
  37. },
  38. {
  39. path: '/futures',
  40. name: 'forward',
  41. component: () => import('@/views/market/forward/index.vue'),
  42. },
  43. {
  44. path: '/warehouse-trade',
  45. name: 'warehouseTrade',
  46. component: () => import('@/views/market/warehouseTrade/index.vue'),
  47. },
  48. {
  49. path: 'custom_info',
  50. name: 'custom_info',
  51. component: Main,
  52. meta: {
  53. requireAuth: true,
  54. },
  55. redirect: (to) => {
  56. return { name: 'custom_info_unsubmit' };
  57. },
  58. children: [
  59. {
  60. path: '/custom_info/custom_info_normal',
  61. name: 'custom_info_normal',
  62. component: () => import('@/views/information/custom/list/normal-use/index.vue'),
  63. meta: {
  64. requireAuth: true,
  65. },
  66. },
  67. {
  68. path: '/custom_info/custom_info_disabled',
  69. name: 'custom_info_disabled',
  70. component: () => import('@/views/information/custom/list/stop-use/index.vue'),
  71. meta: {
  72. requireAuth: true,
  73. },
  74. },
  75. {
  76. path: '/custom_info/custom_info_checkpending',
  77. name: 'custom_info_checkpending',
  78. component: () => import('@/views/information/custom/list/checkpending/index.vue'),
  79. meta: {
  80. requireAuth: true,
  81. },
  82. },
  83. {
  84. path: '/custom_info/custom_info_unsubmit',
  85. name: 'custom_info_unsubmit',
  86. component: () => import('@/views/information/custom/list/unsubmit/index.vue'),
  87. meta: {
  88. requireAuth: true,
  89. },
  90. },
  91. ],
  92. },
  93. {
  94. path: 'goods_info',
  95. name: 'goods_info',
  96. component: Main,
  97. meta: {
  98. requireAuth: true,
  99. },
  100. redirect: (to) => {
  101. return { name: 'goods_info_spot' };
  102. },
  103. children: [
  104. {
  105. path: '/goods_info/goods_info_spot',
  106. name: 'goods_info_spot',
  107. component: () => import('@/views/information/goods/list/spot-variety/index.vue'),
  108. meta: {
  109. requireAuth: true,
  110. },
  111. },
  112. {
  113. path: '/goods_info/goods_info_hedge',
  114. name: 'goods_info_hedge',
  115. component: () => import('@/views/information/goods/list/hedging-variety/index.vue'),
  116. meta: {
  117. requireAuth: true,
  118. },
  119. },
  120. ],
  121. },
  122. {
  123. path: '/spot_contract',
  124. name: 'spot_contract',
  125. component: Main,
  126. meta: {
  127. requireAuth: true,
  128. },
  129. redirect: (to) => {
  130. return { name: 'spot_contract_unsubmitted' };
  131. },
  132. children: [
  133. {
  134. path: '/spot_contract/spot_contract_unsubmitted',
  135. name: 'spot_contract_unsubmitted',
  136. component: () => import('@/views/information/spot-contract/list/unsubmitted/index.vue'),
  137. meta: {
  138. requireAuth: true,
  139. },
  140. },
  141. {
  142. path: '/spot_contract/spot_contract_checkpending',
  143. name: 'spot_contract_checkpending',
  144. component: () => import('@/views/information/spot-contract/list/checkpending/index.vue'),
  145. meta: {
  146. requireAuth: true,
  147. },
  148. },
  149. {
  150. path: '/spot_contract/spot_contract_performance',
  151. name: 'spot_contract_performance',
  152. component: () => import('@/views/information/spot-contract/list/performance/index.vue'),
  153. meta: {
  154. requireAuth: true,
  155. },
  156. },
  157. {
  158. path: '/spot_contract/spot_contract_finished',
  159. name: 'spot_contract_finished',
  160. component: () => import('@/views/information/spot-contract/list/finished/index.vue'),
  161. meta: {
  162. requireAuth: true,
  163. },
  164. },
  165. ],
  166. },
  167. {
  168. path: '/account_info',
  169. name: 'account_info',
  170. component: Main,
  171. meta: {
  172. requireAuth: true,
  173. },
  174. redirect: (to) => {
  175. return { name: 'account_info_business' };
  176. },
  177. children: [
  178. {
  179. path: '/account_info/account_info_business',
  180. name: 'account_info_business',
  181. component: () => import('@/views/information/account_info/list/account_info_business/index.vue'),
  182. meta: {
  183. requireAuth: true,
  184. },
  185. },
  186. {
  187. path: '/account_info/account_info_futures',
  188. name: 'account_info_futures',
  189. component: () => import('@/views/information/account_info/list/account_info_futures/index.vue'),
  190. meta: {
  191. requireAuth: true,
  192. },
  193. },
  194. {
  195. path: '/account_info/account_info_manager',
  196. name: 'account_info_manager',
  197. component: () => import('@/views/information/account_info/list/account_info_manager/index.vue'),
  198. meta: {
  199. requireAuth: true,
  200. },
  201. },
  202. {
  203. path: '/account_info/account_info_trade',
  204. name: 'account_info_trade',
  205. component: () => import('@/views/information/account_info/list/account_info_trade/index.vue'),
  206. meta: {
  207. requireAuth: true,
  208. },
  209. },
  210. ],
  211. },
  212. {
  213. path: '/warehouse_info',
  214. name: 'warehouse_info',
  215. component: Main,
  216. meta: {
  217. requireAuth: true,
  218. },
  219. redirect: (to) => {
  220. return { name: 'warehouse_info_normal' };
  221. },
  222. children: [
  223. {
  224. path: '/warehouse_info/warehouse_info_normal',
  225. name: 'warehouse_info_normal',
  226. component: () => import('@/views/information/warehouse-info/list/normal-use/index.vue'),
  227. meta: {
  228. requireAuth: true,
  229. },
  230. },
  231. {
  232. path: '/warehouse_info/warehouse_info_disabled',
  233. name: 'warehouse_info_disabled',
  234. component: () => import('@/views/information/warehouse-info/list/stop-use/index.vue'),
  235. meta: {
  236. requireAuth: true,
  237. },
  238. },
  239. ],
  240. },
  241. {
  242. path: '/outaccount_status',
  243. name: 'outaccount_status',
  244. component: () => import('@/views/search/outaccount_status/index.vue'),
  245. meta: {
  246. requireAuth: true,
  247. },
  248. },
  249. {
  250. path: '/inventory',
  251. name: 'inventory',
  252. component: Main,
  253. meta: {
  254. requireAuth: true,
  255. },
  256. redirect: (to) => {
  257. return { name: 'inventory_current' };
  258. },
  259. children: [
  260. {
  261. path: '/inventory/inventory_current',
  262. name: 'inventory_current',
  263. component: () => import('@/views/search/inventory/list/inventory_current/index.vue'),
  264. meta: {
  265. requireAuth: true,
  266. },
  267. },
  268. {
  269. path: '/inventory/inventory_applyrecord',
  270. name: 'inventory_applyrecord',
  271. component: () => import('@/views/search/inventory/list/inventory_applyrecord/index.vue'),
  272. meta: {
  273. requireAuth: true,
  274. },
  275. },
  276. ]
  277. },
  278. {
  279. path: '/purchase',
  280. name: 'purchase',
  281. component: Main,
  282. meta: {
  283. requireAuth: true,
  284. },
  285. redirect: { name: 'purchase_pending' },
  286. children: [
  287. {
  288. path: '/purchase/purchase_pending',
  289. name: 'purchase_pending',
  290. component: () => import('@/views/business/purchase/list/pending/index.vue'),
  291. meta: {
  292. requireAuth: true,
  293. },
  294. },
  295. {
  296. path: '/purchase/purchase_performance',
  297. name: 'purchase_performance',
  298. component: () => import('@/views/business/purchase/list/performance/index.vue'),
  299. meta: {
  300. requireAuth: true,
  301. },
  302. },
  303. {
  304. path: '/purchase/purchase_all',
  305. name: 'purchase_all',
  306. component: () => import('@/views/business/purchase/list/all/index.vue'),
  307. meta: {
  308. requireAuth: true,
  309. },
  310. },
  311. ],
  312. },
  313. {
  314. path: '/sell',
  315. name: 'sell',
  316. component: Main,
  317. meta: {
  318. requireAuth: true,
  319. },
  320. redirect: { name: 'sell_pending' },
  321. children: [
  322. {
  323. path: '/sell/sell_pending',
  324. name: 'sell_pending',
  325. component: () => import('@/views/business/sell/list/pending/index.vue'),
  326. meta: {
  327. requireAuth: true,
  328. },
  329. },
  330. {
  331. path: '/sell/sell_performance',
  332. name: 'sell_performance',
  333. component: () => import('@/views/business/sell/list/performance/index.vue'),
  334. meta: {
  335. requireAuth: true,
  336. },
  337. },
  338. {
  339. path: '/sell/sell_all',
  340. name: 'sell_all',
  341. component: () => import('@/views/business/sell/list/all/index.vue'),
  342. meta: {
  343. requireAuth: true,
  344. },
  345. },
  346. ],
  347. },
  348. {
  349. path: '/exposure',
  350. name: 'exposure',
  351. component: Main,
  352. meta: {
  353. requireAuth: true,
  354. },
  355. redirect: { name: 'exposure_realtime' },
  356. children: [
  357. {
  358. path: '/exposure/exposure_realtime',
  359. name: 'exposure_realtime',
  360. component: () => import('@/views/business/exposure/list/realTime/index.vue'),
  361. meta: {
  362. requireAuth: true,
  363. },
  364. },
  365. {
  366. path: '/exposure/exposure_spot',
  367. name: 'exposure_spot',
  368. component: () => import('@/views/business/exposure/list/spot/index.vue'),
  369. meta: {
  370. requireAuth: true,
  371. },
  372. },
  373. {
  374. path: '/exposure/exposure_futures',
  375. name: 'exposure_futures',
  376. component: () => import('@/views/business/exposure/list/futures/index.vue'),
  377. meta: {
  378. requireAuth: true,
  379. },
  380. },
  381. {
  382. path: '/exposure/exposure_history',
  383. name: 'exposure_history',
  384. component: () => import('@/views/business/exposure/list/history/index.vue'),
  385. meta: {
  386. requireAuth: true,
  387. },
  388. },
  389. ],
  390. },
  391. {
  392. path: '/plan',
  393. name: 'plan',
  394. component: Main,
  395. meta: {
  396. requireAuth: true,
  397. },
  398. redirect: { name: 'plan_uncommitted' },
  399. children: [
  400. {
  401. path: '/plan/plan_uncommitted',
  402. name: 'plan_uncommitted',
  403. component: () => import('@/views/business/plan/list/uncommitted/index.vue'),
  404. meta: {
  405. requireAuth: true,
  406. },
  407. },
  408. {
  409. path: '/plan/plan_audit',
  410. name: 'plan_audit',
  411. component: () => import('@/views/business/plan/list/audit/index.vue'),
  412. meta: {
  413. requireAuth: true,
  414. },
  415. },
  416. {
  417. path: '/plan/plan_running',
  418. name: 'plan_running',
  419. component: () => import('@/views/business/plan/list/running/index.vue'),
  420. meta: {
  421. requireAuth: true,
  422. },
  423. },
  424. ],
  425. },
  426. {
  427. path: 'review',
  428. name: 'business_review',
  429. component: Main,
  430. meta: {
  431. requireAuth: true,
  432. },
  433. redirect: { name: 'business_review_someprice' },
  434. children: [
  435. {
  436. path: '/business_review/business_review_someprice',
  437. name: 'business_review_someprice',
  438. component: () => import('@/views/manage/business-review/list/someprice/index.vue'),
  439. meta: {
  440. requireAuth: true,
  441. },
  442. },
  443. {
  444. path: '/business_review/business_review_settlement',
  445. name: 'business_review_settlement',
  446. component: () => import('@/views/manage/business-review/list/settlement/index.vue'),
  447. meta: {
  448. requireAuth: true,
  449. },
  450. },
  451. ]
  452. },
  453. {
  454. path: '/finance_review',
  455. name: 'finance_review',
  456. component: Main,
  457. meta: {
  458. requireAuth: true,
  459. },
  460. redirect: { name: 'finance_review_funds' },
  461. children: [
  462. {
  463. path: '/finance_review/finance_review_funds',
  464. name: 'finance_review_funds',
  465. component: () => import('@/views/manage/finance-review/list/funds/index.vue'),
  466. meta: {
  467. requireAuth: true,
  468. },
  469. },
  470. {
  471. path: '/finance_review/finance_review_invoice',
  472. name: 'finance_review_invoice',
  473. component: () => import('@/views/manage/finance-review/list/invoice/index.vue'),
  474. meta: {
  475. requireAuth: true,
  476. },
  477. },
  478. ]
  479. },
  480. {
  481. path: '/inventory_review',
  482. name: 'inventory_review',
  483. component: Main,
  484. meta: {
  485. requireAuth: true,
  486. },
  487. redirect: { name: 'inventory_review_checkin' },
  488. children: [
  489. {
  490. path: '/inventory_review/inventory_review_checkin',
  491. name: 'inventory_review_checkin',
  492. component: () => import('@/views/manage/inventory-review/list/checkin/index.vue'),
  493. meta: {
  494. requireAuth: true,
  495. },
  496. },
  497. {
  498. path: '/inventory_review/inventory_review_checkout',
  499. name: 'inventory_review_checkout',
  500. component: () => import('@/views/manage/inventory-review/list/checkout/index.vue'),
  501. meta: {
  502. requireAuth: true,
  503. },
  504. },
  505. ]
  506. },
  507. {
  508. path: '/exposure_report',
  509. name: 'exposure_report',
  510. component: Main,
  511. meta: {
  512. requireAuth: true,
  513. },
  514. redirect: { name: 'exposure_report_exposure' },
  515. children: [
  516. {
  517. path: '/exposure_report/exposure_report_exposure',
  518. name: 'exposure_report_exposure',
  519. component: () => import('@/views/report/exposure-report/list/exposure_report/index.vue'),
  520. meta: {
  521. requireAuth: true,
  522. },
  523. },
  524. ]
  525. },
  526. {
  527. path: '/finance_report',
  528. name: 'finance_report',
  529. component: Main,
  530. meta: {
  531. requireAuth: true,
  532. },
  533. redirect: { name: 'finance_report_finance' },
  534. children: [
  535. {
  536. path: '/finance_report/finance_report_finance',
  537. name: 'finance_report_finance',
  538. component: () => import('@/views/report/finance-report/list/finance_report_finance/index.vue'),
  539. meta: {
  540. requireAuth: true,
  541. },
  542. },
  543. ]
  544. },
  545. {
  546. path: '/inventory_report',
  547. name: 'inventory_report',
  548. component: Main,
  549. meta: {
  550. requireAuth: true,
  551. },
  552. redirect: { name: 'inventory_report_inventory_category' },
  553. children: [
  554. {
  555. path: '/inventory_report/inventory_report_inventory_category',
  556. name: 'inventory_report_inventory_category',
  557. component: () => import('@/views/report/inventory-report/list/category/index.vue'),
  558. meta: {
  559. requireAuth: true,
  560. },
  561. },
  562. {
  563. path: '/inventory_report/warehouse',
  564. name: 'inventory_report_warehouse',
  565. component: () => import('@/views/report/inventory-report/list/warehouse/index.vue'),
  566. meta: {
  567. requireAuth: true,
  568. },
  569. },
  570. ]
  571. },
  572. {
  573. path: '/spot_report',
  574. name: 'spot_report',
  575. component: Main,
  576. meta: {
  577. requireAuth: true,
  578. },
  579. redirect: { name: 'spot_report_spot' },
  580. children: [
  581. {
  582. path: '/spot_report/spot_report_spot',
  583. name: 'spot_report_spot',
  584. component: () => import('@/views/report/spot-report/list/spot_report/index.vue'),
  585. meta: {
  586. requireAuth: true,
  587. },
  588. },
  589. ]
  590. },
  591. {
  592. path: '/sum_pl_report',
  593. name: 'sum_pl_report',
  594. component: Main,
  595. meta: {
  596. requireAuth: true,
  597. },
  598. redirect: { name: 'sum_pl_report_sum_pl' },
  599. children: [
  600. {
  601. path: '/sum_pl_report/sum_pl_report_sum_pl',
  602. name: 'sum_pl_report_sum_pl',
  603. component: () => import('@/views/report/sum_pl_report/list/sum_pl_report/index.vue'),
  604. meta: {
  605. requireAuth: true,
  606. },
  607. },
  608. ]
  609. },
  610. {
  611. path: '/future_report',
  612. name: 'future_report',
  613. component: Main,
  614. meta: {
  615. requireAuth: true,
  616. },
  617. redirect: { name: 'future_report_future' },
  618. children: [
  619. {
  620. path: '/future_report/future_report_future',
  621. name: 'future_report_future',
  622. component: () => import('@/views/report/future_report/list/future_report/index.vue'),
  623. meta: {
  624. requireAuth: true,
  625. },
  626. },
  627. ]
  628. },
  629. {
  630. path: '/platinum_customer_info',
  631. name: 'platinum_customer_info',
  632. component: Main,
  633. meta: {
  634. requireAuth: true,
  635. },
  636. redirect: { name: 'platinum_custom_info_normal' },
  637. children: [
  638. {
  639. path: '/platinum_customer_info/platinum_custom_info_normal',
  640. name: 'platinum_custom_info_normal',
  641. component: () => import('@/views/platinum/platinum_customer_info/list/normal-use/index.vue'),
  642. meta: {
  643. requireAuth: true,
  644. },
  645. },
  646. {
  647. path: '/platinum_customer_info/platinum_customer_info_unsubmit',
  648. name: 'platinum_customer_info_unsubmit',
  649. component: () => import('@/views/platinum/platinum_customer_info/list/unsubmit/index.vue'),
  650. meta: {
  651. requireAuth: true,
  652. },
  653. },
  654. {
  655. path: '/platinum_customer_info/platinum_customer_info_stop',
  656. name: 'platinum_customer_info_stop',
  657. component: () => import('@/views/platinum/platinum_customer_info/list/stop-use/index.vue'),
  658. meta: {
  659. requireAuth: true,
  660. },
  661. },
  662. ]
  663. },
  664. {
  665. path: '/platinum_pick_query',
  666. name: 'platinum_pick_query',
  667. component: Main,
  668. meta: {
  669. requireAuth: true,
  670. },
  671. redirect: { name: 'platinum_pick_query_tab' },
  672. children: [
  673. {
  674. path: '/platinum_pick_query/platinum_pick_query_tab',
  675. name: 'platinum_pick_query_tab',
  676. component: () => import('@/views/platinum/platinum_pick_query/list/tab/index.vue'),
  677. meta: {
  678. requireAuth: true,
  679. },
  680. },
  681. ]
  682. },
  683. {
  684. path: '/platinum_recharge_withdrawal_review',
  685. name: 'platinum_recharge_withdrawal_review',
  686. component: Main,
  687. meta: {
  688. requireAuth: true,
  689. },
  690. redirect: { name: 'platinum_recharge_review_tab' },
  691. children: [
  692. {
  693. path: '/platinum_withdrawal_review_tab/platinum_recharge_review_tab',
  694. name: 'platinum_recharge_review_tab',
  695. component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/recharge/index.vue'),
  696. meta: {
  697. requireAuth: true,
  698. },
  699. },
  700. {
  701. path: '/platinum_withdrawal_review_tab/platinum_withdrawal_review_tab',
  702. name: 'platinum_withdrawal_review_tab',
  703. component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/index.vue'),
  704. meta: {
  705. requireAuth: true,
  706. },
  707. },
  708. ]
  709. },
  710. {
  711. path: '/platinum_fixed_investment_price_query',
  712. name: 'platinum_fixed_investment_price_query',
  713. component: Main,
  714. meta: {
  715. requireAuth: true,
  716. },
  717. redirect: { name: 'platinum_fixed_investment_price_query_tab' },
  718. children: [
  719. {
  720. path: '/platinum_fixed_investment_price_query/platinum_fixed_investment_price_query_tab',
  721. name: 'platinum_fixed_investment_price_query_tab',
  722. component: () => import('@/views/platinum/platinum_fixed_investment_price_query/list/tab/index.vue'),
  723. meta: {
  724. requireAuth: true,
  725. },
  726. },
  727. ]
  728. },
  729. {
  730. path: '/platinum_fixed_investment_query',
  731. name: 'platinum_fixed_investment_query',
  732. component: Main,
  733. meta: {
  734. requireAuth: true,
  735. },
  736. redirect: { name: 'platinum_fixed_investment_plan_query' },
  737. children: [
  738. {
  739. path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_plan_query',
  740. name: 'platinum_fixed_investment_plan_query',
  741. component: () => import('@/views/platinum/platinum_fixed_investment_query/list/plan/index.vue'),
  742. meta: {
  743. requireAuth: true,
  744. },
  745. },
  746. {
  747. path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_flow_query',
  748. name: 'platinum_fixed_investment_flow_query',
  749. component: () => import('@/views/platinum/platinum_fixed_investment_query/list/flow/index.vue'),
  750. meta: {
  751. requireAuth: true,
  752. },
  753. },
  754. ]
  755. },
  756. {
  757. path: '/platinum_document_query',
  758. name: 'platinum_document_query',
  759. component: Main,
  760. meta: {
  761. requireAuth: true,
  762. },
  763. redirect: { name: 'platinum_document_query_position' },
  764. children: [
  765. {
  766. path: '/platinum_document_query/platinum_document_query_position',
  767. name: 'platinum_document_query_position',
  768. component: () => import('@/views/platinum/platinum_document_query/list/position/index.vue'),
  769. meta: {
  770. requireAuth: true,
  771. },
  772. },
  773. {
  774. path: '/platinum_document_query/platinum_document_query_order',
  775. name: 'platinum_document_query_order',
  776. component: () => import('@/views/platinum/platinum_document_query/list/order/index.vue'),
  777. meta: {
  778. requireAuth: true,
  779. },
  780. },
  781. {
  782. path: '/platinum_document_query/platinum_document_query_waiting',
  783. name: 'platinum_document_query_waiting',
  784. component: () => import('@/views/platinum/platinum_document_query/list/waiting/index.vue'),
  785. meta: {
  786. requireAuth: true,
  787. },
  788. },
  789. {
  790. path: '/platinum_document_query/platinum_document_query_success',
  791. name: 'platinum_document_query_success',
  792. component: () => import('@/views/platinum/platinum_document_query/list/success/index.vue'),
  793. meta: {
  794. requireAuth: true,
  795. },
  796. },
  797. ]
  798. },
  799. {
  800. path: '/platinum_financing_information',
  801. name: 'platinum_financing_information',
  802. component: Main,
  803. meta: {
  804. requireAuth: true,
  805. },
  806. redirect: { name: 'platinum_financing_information_tab' },
  807. children: [
  808. {
  809. path: '/platinum_financing_information/platinum_financing_information_tab',
  810. name: 'platinum_financing_information_tab',
  811. component: () => import('@/views/platinum/platinum_financing_information/list/tab/index.vue'),
  812. meta: {
  813. requireAuth: true,
  814. },
  815. },
  816. ]
  817. },
  818. {
  819. path: '/platinum_agents_and_stores',
  820. name: 'platinum_agents_and_stores',
  821. component: Main,
  822. meta: {
  823. requireAuth: true,
  824. },
  825. redirect: { name: 'platinum_agents_and_stores_tab' },
  826. children: [
  827. {
  828. path: '/platinum_agents_and_stores/platinum_agents_and_stores_tab',
  829. name: 'platinum_agents_and_stores_tab',
  830. component: () => import('@/views/platinum/platinum_agents_and_stores/list/tab/index.vue'),
  831. meta: {
  832. requireAuth: true,
  833. },
  834. },
  835. ]
  836. },
  837. {
  838. path: '/platinum_agreement',
  839. name: 'platinum_agreement',
  840. component: Main,
  841. meta: {
  842. requireAuth: true,
  843. },
  844. redirect: { name: 'platinum_agreement_tab' },
  845. children: [
  846. {
  847. path: '/platinum_agreement/platinum_agreement_tab',
  848. name: 'platinum_agreement_tab',
  849. component: () => import('@/views/platinum/platinum_agreement/list/tab/index.vue'),
  850. meta: {
  851. requireAuth: true,
  852. },
  853. },
  854. ]
  855. },
  856. {
  857. path: '/platinum_capital_flow',
  858. name: 'platinum_capital_flow',
  859. component: Main,
  860. meta: {
  861. requireAuth: true,
  862. },
  863. redirect: { name: 'platinum_capital_flow_tab' },
  864. children: [
  865. {
  866. path: '/platinum_capital_flow_tab/platinum_capital_flow_tab',
  867. name: 'platinum_capital_flow_tab',
  868. component: () => import('@/views/platinum/platinum_capital_flow/platinum_capital_flow_tab/index.vue'),
  869. meta: {
  870. requireAuth: true,
  871. },
  872. },
  873. ]
  874. },
  875. {
  876. path: '/platinum_promotion_report',
  877. name: 'platinum_promotion_report',
  878. component: Main,
  879. meta: {
  880. requireAuth: true,
  881. },
  882. redirect: { name: 'platinum_promotion_report_tab' },
  883. children: [
  884. {
  885. path: '/platinum_promotion_report/platinum_promotion_report_tab',
  886. name: 'platinum_promotion_report_tab',
  887. component: () => import('@/views/platinum/platinum_promotion_report/platinum_promotion_report_tab/index.vue'),
  888. meta: {
  889. requireAuth: true,
  890. },
  891. },
  892. ]
  893. },
  894. {
  895. path: '/platinum_signing_settings',
  896. name: 'platinum_signing_settings',
  897. component: Main,
  898. meta: {
  899. requireAuth: true,
  900. },
  901. redirect: { name: 'platinum_signing_settings_tab' },
  902. children: [
  903. {
  904. path: '/platinum_signing_settings/platinum_signing_settings_tab',
  905. name: 'platinum_signing_settings_tab',
  906. component: () => import('@/views/platinum/platinum_signing_settings/index.vue'),
  907. meta: {
  908. requireAuth: true,
  909. },
  910. },
  911. ]
  912. },
  913. {
  914. path: '/platinum_team_settings',
  915. name: 'platinum_team_settings',
  916. component: Main,
  917. meta: {
  918. requireAuth: true,
  919. },
  920. redirect: { name: 'platinum_team_settings_tab' },
  921. children: [
  922. {
  923. path: '/platinum_team_settings/platinum_team_settings_tab',
  924. name: 'platinum_team_settings_tab',
  925. component: () => import('@/views/platinum/platinum_team_settings/index.vue'),
  926. meta: {
  927. requireAuth: true,
  928. },
  929. },
  930. ]
  931. },
  932. {
  933. path: '/platinum_account_manager',
  934. name: 'platinum_account_manager',
  935. component: Main,
  936. meta: {
  937. requireAuth: true,
  938. },
  939. redirect: { name: 'platinum_account_manager_tab' },
  940. children: [
  941. {
  942. path: '/platinum_account_manager/platinum_account_manager_tab',
  943. name: 'platinum_account_manager_tab',
  944. component: () => import('@/views/platinum/platinum_account_manager/index.vue'),
  945. meta: {
  946. requireAuth: true,
  947. },
  948. },
  949. ]
  950. },
  951. {
  952. path: '/trading_strategy_notes_sub',
  953. name: 'trading_strategy_notes_sub',
  954. component: Main,
  955. meta: {
  956. requireAuth: true,
  957. },
  958. redirect: { name: 'trading_strategy_notes' },
  959. children: [
  960. {
  961. path: '/trading_strategy_notes_sub/trading_strategy_notes',
  962. name: 'trading_strategy_notes',
  963. component: () => import('@/views/ping_an/trading_strategy_notes_sub/trading_strategy_notes/index.vue'),
  964. meta: {
  965. requireAuth: true,
  966. },
  967. },
  968. ]
  969. },
  970. {
  971. path: '/goods_info_p',
  972. name: 'goods_info_p',
  973. component: Main,
  974. meta: {
  975. requireAuth: true,
  976. },
  977. redirect: { name: 'goods_info_p_spot' },
  978. children: [
  979. {
  980. path: '/goods_info_p/goods_info_p_spot',
  981. name: 'goods_info_p_spot',
  982. component: () => import('@/views/ping_an/goods_info_p/goods_info_p_spot/index.vue'),
  983. meta: {
  984. requireAuth: true,
  985. },
  986. },
  987. {
  988. path: '/goods_info_p/goods_info_p_hedge',
  989. name: 'goods_info_p_hedge',
  990. component: () => import('@/views/ping_an/goods_info_p/goods_info_p_hedge/index.vue'),
  991. meta: {
  992. requireAuth: true,
  993. },
  994. },
  995. ]
  996. },
  997. {
  998. path: '/division_management',
  999. name: 'division_management',
  1000. component: Main,
  1001. meta: {
  1002. requireAuth: true,
  1003. },
  1004. redirect: { name: 'division_management_sub' },
  1005. children: [
  1006. {
  1007. path: '/division_management/division_management_sub',
  1008. name: 'trading_strategy_notes',
  1009. component: () => import('@/views/ping_an/division_management/division_management_sub/index.vue'),
  1010. meta: {
  1011. requireAuth: true,
  1012. },
  1013. },
  1014. ]
  1015. },
  1016. {
  1017. path: '/spot_execution_management',
  1018. name: 'spot_execution_management',
  1019. component: Main,
  1020. meta: {
  1021. requireAuth: true,
  1022. },
  1023. redirect: { name: 'spot_execution_management_all' },
  1024. children: [
  1025. {
  1026. path: '/spot_execution_management/spot_execution_management_all',
  1027. name: 'spot_execution_management_all',
  1028. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_all/index.vue'),
  1029. meta: {
  1030. requireAuth: true,
  1031. },
  1032. },
  1033. {
  1034. path: '/spot_execution_management/spot_execution_management_pending',
  1035. name: 'spot_execution_management_pending',
  1036. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_pending/index.vue'),
  1037. meta: {
  1038. requireAuth: true,
  1039. },
  1040. },
  1041. {
  1042. path: '/spot_execution_management/spot_execution_management_today',
  1043. name: 'spot_execution_management_today',
  1044. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_today/index.vue'),
  1045. meta: {
  1046. requireAuth: true,
  1047. },
  1048. },
  1049. ]
  1050. },
  1051. {
  1052. path: '/transaction_main_body',
  1053. name: 'transaction_main_body',
  1054. component: Main,
  1055. meta: {
  1056. requireAuth: true,
  1057. },
  1058. redirect: { name: 'transaction_main_body_normal' },
  1059. children: [
  1060. {
  1061. path: '/transaction_main_body/transaction_main_body_normal',
  1062. name: 'transaction_main_body_normal',
  1063. component: () => import('@/views/ping_an/transaction_main_body/transaction_main_body_normal/index.vue'),
  1064. meta: {
  1065. requireAuth: true,
  1066. },
  1067. },
  1068. {
  1069. path: '/transaction_main_body/transaction_main_body_disabled',
  1070. name: 'transaction_main_body_disabled',
  1071. component: () => import('@/views/ping_an/transaction_main_body/transaction_main_body_disabled/index.vue'),
  1072. meta: {
  1073. requireAuth: true,
  1074. },
  1075. },
  1076. ]
  1077. },
  1078. {
  1079. path: '/futures_order_search',
  1080. name: 'futures_order_search',
  1081. component: Main,
  1082. meta: {
  1083. requireAuth: true,
  1084. },
  1085. redirect: { name: 'futures_order_search_tradepostion' },
  1086. children: [
  1087. {
  1088. path: '/futures_order_search/futures_order_search_tradepostion',
  1089. name: 'futures_order_search_tradepostion',
  1090. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_tradepostion/index.vue'),
  1091. meta: {
  1092. requireAuth: true,
  1093. },
  1094. },
  1095. {
  1096. path: '/futures_order_search/futures_order_search_orderdetail',
  1097. name: 'futures_order_search_orderdetail',
  1098. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_orderdetail/index.vue'),
  1099. meta: {
  1100. requireAuth: true,
  1101. },
  1102. },
  1103. {
  1104. path: '/futures_order_search/futures_order_search_tradedetail',
  1105. name: 'futures_order_search_tradedetail',
  1106. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_tradedetail/index.vue'),
  1107. meta: {
  1108. requireAuth: true,
  1109. },
  1110. },
  1111. {
  1112. path: '/futures_order_search/futures_order_search_outtradedetail',
  1113. name: 'futures_order_search_outtradedetail',
  1114. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_outtradedetail/index.vue'),
  1115. meta: {
  1116. requireAuth: true,
  1117. },
  1118. },
  1119. ]
  1120. },
  1121. {
  1122. path: '/provisional_pricing_info_sub',
  1123. name: 'provisional_pricing_info_sub',
  1124. component: Main,
  1125. meta: {
  1126. requireAuth: true,
  1127. },
  1128. redirect: { name: 'provisional_pricing_info' },
  1129. children: [
  1130. {
  1131. path: '/provisional_pricing_info_sub/provisional_pricing_info',
  1132. name: 'provisional_pricing_info',
  1133. component: () => import('@/views/ping_an/provisional_pricing_info_sub/provisional_pricing_info/index.vue'),
  1134. meta: {
  1135. requireAuth: true,
  1136. },
  1137. },
  1138. ]
  1139. },
  1140. {
  1141. path: '/query_of_opponent_details',
  1142. name: 'query_of_opponent_details',
  1143. component: Main,
  1144. meta: {
  1145. requireAuth: true,
  1146. },
  1147. redirect: { name: 'query_of_opponent_details_pricing' },
  1148. children: [
  1149. {
  1150. path: '/query_of_opponent_details/query_of_opponent_details_pricing',
  1151. name: 'query_of_opponent_details_pricing',
  1152. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_pricing/index.vue'),
  1153. meta: {
  1154. requireAuth: true,
  1155. },
  1156. },
  1157. {
  1158. path: '/query_of_opponent_details/query_of_opponent_details_inout',
  1159. name: 'query_of_opponent_details_inout',
  1160. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_inout/index.vue'),
  1161. meta: {
  1162. requireAuth: true,
  1163. },
  1164. },
  1165. {
  1166. path: '/query_of_opponent_details/query_of_opponent_details_futurestrading',
  1167. name: 'query_of_opponent_details_futurestrading',
  1168. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_futurestrading/index.vue'),
  1169. meta: {
  1170. requireAuth: true,
  1171. },
  1172. },
  1173. ]
  1174. },
  1175. {
  1176. path: '/platinum_salesman_performance_report',
  1177. name: 'platinum_salesman_performance_report',
  1178. component: Main,
  1179. meta: {
  1180. requireAuth: true,
  1181. },
  1182. redirect: { name: 'platinum_salesman_performance_report_tab' },
  1183. children: [
  1184. {
  1185. path: '/platinum_salesman_performance_report/platinum_salesman_performance_report_tab',
  1186. name: 'platinum_salesman_performance_report_tab',
  1187. component: () => import('@/views/report/platinum_salesman_performance_report/platinum_salesman_performance_report_tab/index.vue'),
  1188. meta: {
  1189. requireAuth: true,
  1190. },
  1191. },
  1192. ]
  1193. },
  1194. {
  1195. path: '/platinum_customer_service_report',
  1196. name: 'platinum_customer_service_report',
  1197. component: Main,
  1198. meta: {
  1199. requireAuth: true,
  1200. },
  1201. redirect: { name: 'platinum_customer_service_report_reach_rate_report_tab' },
  1202. children: [
  1203. {
  1204. path: '/platinum_customer_service_report/platinum_customer_service_report_reach_rate_report_tab',
  1205. name: 'platinum_customer_service_report_reach_rate_report_tab',
  1206. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_reach_rate_report_tab/index.vue'),
  1207. meta: {
  1208. requireAuth: true,
  1209. },
  1210. },
  1211. {
  1212. path: '/platinum_customer_service_report/platinum_customer_service_report_team_annualized_performance_ranking_report_tab',
  1213. name: 'platinum_customer_service_report_team_annualized_performance_ranking_report_tab',
  1214. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_team_annualized_performance_ranking_report_tab/index.vue'),
  1215. meta: {
  1216. requireAuth: true,
  1217. },
  1218. },
  1219. {
  1220. path: '/platinum_customer_service_report/platinum_customer_service_report_personal_annualized_performance_ranking_report_tab',
  1221. name: 'platinum_customer_service_report_personal_annualized_performance_ranking_report_tab',
  1222. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_personal_annualized_performance_ranking_report_tab/index.vue'),
  1223. meta: {
  1224. requireAuth: true,
  1225. },
  1226. },
  1227. {
  1228. path: '/platinum_customer_service_report/platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab',
  1229. name: 'platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab',
  1230. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab/index.vue'),
  1231. meta: {
  1232. requireAuth: true,
  1233. },
  1234. },
  1235. ]
  1236. },
  1237. {
  1238. path: '/platinum_asset_management_sale_report',
  1239. name: 'platinum_asset_management_sale_report',
  1240. component: Main,
  1241. meta: {
  1242. requireAuth: true,
  1243. },
  1244. redirect: { name: 'platinum_asset_management_sale_report_company_day_tab' },
  1245. children: [
  1246. {
  1247. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_day_tab',
  1248. name: 'platinum_asset_management_sale_report_company_day_tab',
  1249. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_day_tab/index.vue'),
  1250. meta: {
  1251. requireAuth: true,
  1252. },
  1253. },
  1254. {
  1255. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_week_tab',
  1256. name: 'platinum_asset_management_sale_report_company_week_tab',
  1257. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_week_tab/index.vue'),
  1258. meta: {
  1259. requireAuth: true,
  1260. },
  1261. },
  1262. {
  1263. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_month_tab',
  1264. name: 'platinum_asset_management_sale_report_company_month_tab',
  1265. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_month_tab/index.vue'),
  1266. meta: {
  1267. requireAuth: true,
  1268. },
  1269. },
  1270. {
  1271. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_week_tab',
  1272. name: 'platinum_precious_metal_sales_report_departmental_week_tab',
  1273. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_week_tab/index.vue'),
  1274. meta: {
  1275. requireAuth: true,
  1276. },
  1277. },
  1278. {
  1279. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_month_tab',
  1280. name: 'platinum_precious_metal_sales_report_departmental_month_tab',
  1281. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_month_tab/index.vue'),
  1282. meta: {
  1283. requireAuth: true,
  1284. },
  1285. },
  1286. {
  1287. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_product_month_tab',
  1288. name: 'platinum_precious_metal_sales_report_product_month_tab',
  1289. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_product_month_tab/index.vue'),
  1290. meta: {
  1291. requireAuth: true,
  1292. },
  1293. },
  1294. ]
  1295. },
  1296. {
  1297. path: '/platinum_precious_metal_sales_report',
  1298. name: 'platinum_precious_metal_sales_report',
  1299. component: Main,
  1300. meta: {
  1301. requireAuth: true,
  1302. },
  1303. redirect: { name: 'platinum_precious_metal_sales_report_company_tab' },
  1304. children: [
  1305. {
  1306. path: '/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_company_tab',
  1307. name: 'platinum_precious_metal_sales_report_company_tab',
  1308. component: () => import('@/views/report/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_company_tab/index.vue'),
  1309. meta: {
  1310. requireAuth: true,
  1311. },
  1312. },
  1313. {
  1314. path: '/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_departmental_tab',
  1315. name: 'platinum_precious_metal_sales_report_departmental_tab',
  1316. component: () => import('@/views/report/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_departmental_tab/index.vue'),
  1317. meta: {
  1318. requireAuth: true,
  1319. },
  1320. },
  1321. ]
  1322. },
  1323. {
  1324. path: '/platinum_financial_payment',
  1325. name: 'platinum_financial_payment',
  1326. component: Main,
  1327. meta: {
  1328. requireAuth: true,
  1329. },
  1330. redirect: { name: 'platinum_financial_payment_waiting_payment_tab' },
  1331. children: [
  1332. {
  1333. path: '/platinum_financial_payment/platinum_financial_payment_waiting_payment_tab',
  1334. name: 'platinum_financial_payment_waiting_payment_tab',
  1335. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_waiting_payment_tab/index.vue'),
  1336. meta: {
  1337. requireAuth: true,
  1338. },
  1339. },
  1340. {
  1341. path: '/platinum_financial_payment/platinum_financial_payment_in_waiting_payment_tab',
  1342. name: 'platinum_financial_payment_in_waiting_payment_tab',
  1343. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_in_waiting_payment_tab/index.vue'),
  1344. meta: {
  1345. requireAuth: true,
  1346. },
  1347. },
  1348. {
  1349. path: '/platinum_financial_payment/platinum_financial_payment_waiting_payment_cash_tab',
  1350. name: 'platinum_financial_payment_waiting_payment_cash_tab',
  1351. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_waiting_payment_cash_tab/index.vue'),
  1352. meta: {
  1353. requireAuth: true,
  1354. },
  1355. },
  1356. {
  1357. path: '/platinum_financial_payment/platinum_financial_payment_payment_tab',
  1358. name: 'platinum_financial_payment_payment_tab',
  1359. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_payment_tab/index.vue'),
  1360. meta: {
  1361. requireAuth: true,
  1362. },
  1363. },
  1364. {
  1365. path: '/platinum_financial_payment/platinum_financial_payment_all_tab',
  1366. name: 'platinum_financial_payment_all_tab',
  1367. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_all_tab/index.vue'),
  1368. meta: {
  1369. requireAuth: true,
  1370. },
  1371. },
  1372. ]
  1373. },
  1374. {
  1375. path: '/platinum_precious_metal_signing',
  1376. name: 'platinum_precious_metal_signing',
  1377. component: Main,
  1378. meta: {
  1379. requireAuth: true,
  1380. },
  1381. redirect: { name: 'platinum_precious_metal_signing_unsubmitted' },
  1382. children: [
  1383. {
  1384. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_unsubmitted',
  1385. name: 'platinum_precious_metal_signing_unsubmitted',
  1386. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_unsubmitted/index.vue'),
  1387. meta: {
  1388. requireAuth: true,
  1389. },
  1390. },
  1391. {
  1392. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_pending_review',
  1393. name: 'platinum_precious_metal_signing_pending_review',
  1394. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_pending_review/index.vue'),
  1395. meta: {
  1396. requireAuth: true,
  1397. },
  1398. },
  1399. {
  1400. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_repurchase_pending_review',
  1401. name: 'platinum_precious_metal_signing_repurchase_pending_review',
  1402. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_repurchase_pending_review/index.vue'),
  1403. meta: {
  1404. requireAuth: true,
  1405. },
  1406. },
  1407. {
  1408. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_normal',
  1409. name: 'platinum_precious_metal_signing_normal',
  1410. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_normal/index.vue'),
  1411. meta: {
  1412. requireAuth: true,
  1413. },
  1414. },
  1415. {
  1416. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_success',
  1417. name: 'platinum_precious_metal_signing_success',
  1418. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_success/index.vue'),
  1419. meta: {
  1420. requireAuth: true,
  1421. },
  1422. },
  1423. {
  1424. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_refunded',
  1425. name: 'platinum_precious_metal_signing_refunded',
  1426. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_refunded/index.vue'),
  1427. meta: {
  1428. requireAuth: true,
  1429. },
  1430. },
  1431. {
  1432. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_all',
  1433. name: 'platinum_precious_metal_signing_all',
  1434. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_all/index.vue'),
  1435. meta: {
  1436. requireAuth: true,
  1437. },
  1438. },
  1439. ]
  1440. },
  1441. {
  1442. path: '/platinum_asset_management_signing',
  1443. name: 'platinum_asset_management_signing',
  1444. component: Main,
  1445. meta: {
  1446. requireAuth: true,
  1447. },
  1448. redirect: { name: 'platinum_asset_management_signing_unsubmitted' },
  1449. children: [
  1450. {
  1451. path: '/platinum_asset_management_signing/platinum_asset_management_signing_unsubmitted',
  1452. name: 'platinum_asset_management_signing_unsubmitted',
  1453. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_unsubmitted/index.vue'),
  1454. meta: {
  1455. requireAuth: true,
  1456. },
  1457. },
  1458. {
  1459. path: '/platinum_asset_management_signing/platinum_asset_management_signing_pending_review',
  1460. name: 'platinum_asset_management_signing_pending_review',
  1461. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_pending_review/index.vue'),
  1462. meta: {
  1463. requireAuth: true,
  1464. },
  1465. },
  1466. {
  1467. path: '/platinum_asset_management_signing/platinum_asset_management_signing_finish',
  1468. name: 'platinum_asset_management_signing_finish',
  1469. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_finish/index.vue'),
  1470. meta: {
  1471. requireAuth: true,
  1472. },
  1473. },
  1474. {
  1475. path: '/platinum_asset_management_signing/platinum_asset_management_signing_normal',
  1476. name: 'platinum_asset_management_signing_normal',
  1477. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_normal/index.vue'),
  1478. meta: {
  1479. requireAuth: true,
  1480. },
  1481. },
  1482. ]
  1483. },
  1484. {
  1485. path: '/platinum_broker_management',
  1486. name: 'platinum_broker_management',
  1487. component: Main,
  1488. meta: {
  1489. requireAuth: true,
  1490. },
  1491. redirect: { name: 'platinum_broker_management_normal_tab' },
  1492. children: [
  1493. {
  1494. path: '/platinum_broker_management/platinum_broker_management_normal_tab',
  1495. name: 'platinum_broker_management_normal_tab',
  1496. component: () => import('@/views/platinum/platinum_broker_management/normal/index.vue'),
  1497. meta: {
  1498. requireAuth: true,
  1499. },
  1500. },
  1501. {
  1502. path: '/platinum_broker_management/platinum_broker_management_waiting_tab',
  1503. name: 'platinum_broker_management_waiting_tab',
  1504. component: () => import('@/views/platinum/platinum_broker_management/waiting/index.vue'),
  1505. meta: {
  1506. requireAuth: true,
  1507. },
  1508. },
  1509. {
  1510. path: '/platinum_broker_management/platinum_broker_management_refuse_tab',
  1511. name: 'platinum_broker_management_refuse_tab',
  1512. component: () => import('@/views/platinum/platinum_broker_management/refuse/index.vue'),
  1513. meta: {
  1514. requireAuth: true,
  1515. },
  1516. },
  1517. ]
  1518. },
  1519. {
  1520. path: '/spot_trade',
  1521. name: EnumRouterName.spot_trade,
  1522. component: Main,
  1523. meta: {
  1524. requireAuth: true,
  1525. },
  1526. redirect: { name: EnumRouterName.warehouse_receipt_trade, },
  1527. children: [
  1528. {
  1529. path: '/spot_trade/warehouse_receipt_trade',
  1530. name: EnumRouterName.warehouse_receipt_trade,
  1531. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/index.vue'),
  1532. meta: {
  1533. requireAuth: true,
  1534. },
  1535. children: [
  1536. {
  1537. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price',
  1538. name: EnumRouterName.warehouse_receipt_trade_floating_price,
  1539. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price/index.vue'),
  1540. meta: {
  1541. requireAuth: true,
  1542. },
  1543. },
  1544. {
  1545. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price',
  1546. name: EnumRouterName.warehouse_receipt_trade_price,
  1547. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price/index.vue'),
  1548. meta: {
  1549. requireAuth: true,
  1550. },
  1551. },
  1552. {
  1553. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs',
  1554. name: 'warehouse_receipt_trade_blocs',
  1555. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs/index.vue'),
  1556. meta: {
  1557. requireAuth: true,
  1558. },
  1559. },
  1560. ]
  1561. },
  1562. {
  1563. path: '/spot_trade/warehouse_pre_sale',
  1564. name: EnumRouterName.warehouse_pre_sale,
  1565. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/index.vue'),
  1566. meta: {
  1567. requireAuth: true,
  1568. },
  1569. children: [
  1570. {
  1571. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_floating_price',
  1572. name: EnumRouterName.warehouse_pre_sale_floating_price,
  1573. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_floating_price/index.vue'),
  1574. meta: {
  1575. requireAuth: true,
  1576. },
  1577. },
  1578. {
  1579. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_price',
  1580. name: EnumRouterName.warehouse_pre_sale_price,
  1581. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_price/index.vue'),
  1582. meta: {
  1583. requireAuth: true,
  1584. },
  1585. },
  1586. {
  1587. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs',
  1588. name: EnumRouterName.warehouse_pre_sale_blocs,
  1589. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs/index.vue'),
  1590. meta: {
  1591. requireAuth: true,
  1592. },
  1593. },
  1594. ]
  1595. },
  1596. {
  1597. path: '/spot_trade/spot_trade_order_transaction',
  1598. name: EnumRouterName.spot_trade_order_transaction,
  1599. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/index.vue'),
  1600. meta: {
  1601. requireAuth: true,
  1602. },
  1603. children: [
  1604. {
  1605. path: '/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference',
  1606. name: EnumRouterName.spot_trade_order_transaction_basis_difference,
  1607. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference/index.vue'),
  1608. meta: {
  1609. requireAuth: true,
  1610. },
  1611. },
  1612. {
  1613. path: '/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer',
  1614. name: EnumRouterName.spot_trade_order_transaction_listing_transfer,
  1615. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer/index.vue'),
  1616. meta: {
  1617. requireAuth: true,
  1618. },
  1619. },
  1620. ]
  1621. },
  1622. {
  1623. path: '/spot_trade/spot_trade_reference_market',
  1624. name: EnumRouterName.spot_trade_reference_market,
  1625. component: () => import('@/views/market/spot_trade/spot_trade_reference_market/index.vue'),
  1626. meta: {
  1627. requireAuth: true,
  1628. },
  1629. }
  1630. ]
  1631. },
  1632. {
  1633. path: '/search_document_records',
  1634. name: EnumRouterName.search_document_records,
  1635. component: Main,
  1636. meta: {
  1637. requireAuth: true,
  1638. },
  1639. // redirect: { name: EnumRouterName.search_document_records, },
  1640. children: [
  1641. {
  1642. path: '/search_document_records/search_commodity_contract',
  1643. name: EnumRouterName.search_commodity_contract,
  1644. component: () => import('@/views/search/search_document_records/search_commodity_contract/index.vue'),
  1645. meta: {
  1646. requireAuth: true,
  1647. },
  1648. children: [
  1649. {
  1650. path: '/search_document_records/search_commodity_contract/search_document_records_contract_summary',
  1651. name: EnumRouterName.search_document_records_contract_summary,
  1652. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_contract_summary/index.vue'),
  1653. meta: {
  1654. requireAuth: true,
  1655. },
  1656. },
  1657. {
  1658. path: '/search_document_records/search_commodity_contract/search_document_records_commission_record',
  1659. name: EnumRouterName.search_document_records_commission_record,
  1660. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_commission_record/index.vue'),
  1661. meta: {
  1662. requireAuth: true,
  1663. },
  1664. },
  1665. {
  1666. path: '/search_document_records/search_commodity_contract/search_document_records_delivery_record',
  1667. name: EnumRouterName.search_document_records_delivery_record,
  1668. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_delivery_record/index.vue'),
  1669. meta: {
  1670. requireAuth: true,
  1671. },
  1672. },
  1673. {
  1674. path: '/search_document_records/search_document_records/search_document_records_transaction_record',
  1675. name: EnumRouterName.search_document_records_transaction_record,
  1676. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_transaction_record/index.vue'),
  1677. meta: {
  1678. requireAuth: true,
  1679. },
  1680. },
  1681. ]
  1682. },
  1683. {
  1684. path: '/search_document_records/search_pre_sale_warehouse_receipt',
  1685. name: EnumRouterName.search_pre_sale_warehouse_receipt,
  1686. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/index.vue'),
  1687. meta: {
  1688. requireAuth: true,
  1689. },
  1690. children: [
  1691. {
  1692. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_commission_record',
  1693. name: EnumRouterName.search_pre_sale_warehouse_receipt_commission_record,
  1694. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_commission_record/index.vue'),
  1695. meta: {
  1696. requireAuth: true,
  1697. },
  1698. },
  1699. {
  1700. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_order_summary',
  1701. name: EnumRouterName.search_pre_sale_warehouse_receipt_order_summary,
  1702. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_order_summary/index.vue'),
  1703. meta: {
  1704. requireAuth: true,
  1705. },
  1706. },
  1707. {
  1708. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_protocol_specified_record',
  1709. name: EnumRouterName.search_pre_sale_warehouse_receipt_protocol_specified_record,
  1710. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_protocol_specified_record/index.vue'),
  1711. meta: {
  1712. requireAuth: true,
  1713. },
  1714. },
  1715. {
  1716. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_transaction_record',
  1717. name: EnumRouterName.search_pre_sale_warehouse_receipt_transaction_record,
  1718. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_transaction_record/index.vue'),
  1719. meta: {
  1720. requireAuth: true,
  1721. },
  1722. },
  1723. ]
  1724. },
  1725. {
  1726. path: '/search_document_records/search_spot_warrant',
  1727. name: EnumRouterName.search_spot_warrant,
  1728. component: () => import('@/views/search/search_document_records/search_spot_warrant/index.vue'),
  1729. meta: {
  1730. requireAuth: true,
  1731. },
  1732. children: [
  1733. {
  1734. path: '/search_document_records/search_spot_warrant/search_spot_warrant_transaction_record',
  1735. name: EnumRouterName.search_spot_warrant_transaction_record,
  1736. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_transaction_record/index.vue'),
  1737. meta: {
  1738. requireAuth: true,
  1739. },
  1740. },
  1741. {
  1742. path: '/search_document_records/search_spot_warrant/search_spot_warrant_protocol_specified_record',
  1743. name: EnumRouterName.search_spot_warrant_protocol_specified_record,
  1744. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_protocol_specified_record/index.vue'),
  1745. meta: {
  1746. requireAuth: true,
  1747. },
  1748. },
  1749. {
  1750. path: '/search_document_records/search_spot_warrant/search_spot_warrant_listing_record',
  1751. name: EnumRouterName.search_spot_warrant_listing_record,
  1752. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_listing_record/index.vue'),
  1753. meta: {
  1754. requireAuth: true,
  1755. },
  1756. },
  1757. {
  1758. path: '/search_document_records/search_spot_warrant/search_spot_warrant_warehouse_receipt_details',
  1759. name: EnumRouterName.search_spot_warrant_warehouse_receipt_details,
  1760. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_warehouse_receipt_details/index.vue'),
  1761. meta: {
  1762. requireAuth: true,
  1763. },
  1764. },
  1765. ]
  1766. },
  1767. ]
  1768. },
  1769. {
  1770. path: '/search_capital_flow',
  1771. name: EnumRouterName.search_capital_flow,
  1772. component: Main,
  1773. meta: {
  1774. requireAuth: true,
  1775. },
  1776. children: [
  1777. {
  1778. path: '/search_capital_flow/search_capital_flow_tab',
  1779. name: EnumRouterName.search_capital_flow_tab,
  1780. component: () => import('@/views/search/search_capital_flow/search_capital_flow_tab/index.vue'),
  1781. meta: {
  1782. requireAuth: true,
  1783. },
  1784. }
  1785. ]
  1786. },
  1787. {
  1788. path: '/search_financing_inquiry',
  1789. name: EnumRouterName.search_financing_inquiry,
  1790. component: Main,
  1791. meta: {
  1792. requireAuth: true,
  1793. },
  1794. children: [
  1795. {
  1796. path: '/search_financing_inquiry/search_financing_inquiry_apply_order',
  1797. name: EnumRouterName.search_financing_inquiry_apply_order,
  1798. component: () => import('@/views/search/search_financing_inquiry/search_financing_inquiry_apply_order/index.vue'),
  1799. meta: {
  1800. requireAuth: true,
  1801. },
  1802. },
  1803. {
  1804. path: '/search_financing_inquiry/search_financing_inquiry_contract',
  1805. name: EnumRouterName.search_financing_inquiry_contract,
  1806. component: () => import('@/views/search/search_financing_inquiry/search_financing_inquiry_contract/index.vue'),
  1807. meta: {
  1808. requireAuth: true,
  1809. },
  1810. }
  1811. ]
  1812. },
  1813. {
  1814. path: '/search_performance_query',
  1815. name: EnumRouterName.search_performance_query,
  1816. component: Main,
  1817. meta: {
  1818. requireAuth: true,
  1819. },
  1820. children: [
  1821. {
  1822. path: '/search_performance_query/search_performance_query_buy_performance',
  1823. name: EnumRouterName.search_performance_query_buy_performance,
  1824. component: () => import('@/views/search/search_performance_query/search_performance_query_buy_performance/index.vue'),
  1825. meta: {
  1826. requireAuth: true,
  1827. },
  1828. },
  1829. {
  1830. path: '/search_performance_query/search_performance_query_sell_performance',
  1831. name: EnumRouterName.search_performance_query_sell_performance,
  1832. component: () => import('@/views/search/search_performance_query/search_performance_query_sell_performance/index.vue'),
  1833. meta: {
  1834. requireAuth: true,
  1835. },
  1836. }
  1837. ]
  1838. },
  1839. {
  1840. path: '/search_pickup_query',
  1841. name: EnumRouterName.search_pickup_query,
  1842. component: Main,
  1843. meta: {
  1844. requireAuth: true,
  1845. },
  1846. children: [
  1847. {
  1848. path: '/search_pickup_query/search_pickup_query_tab',
  1849. name: EnumRouterName.search_pickup_query_tab,
  1850. component: () => import('@/views/search/search_pickup_query/search_pickup_query_tab/index.vue'),
  1851. meta: {
  1852. requireAuth: true,
  1853. },
  1854. }
  1855. ]
  1856. },
  1857. {
  1858. path: '/entry_of_spot_information',
  1859. name: EnumRouterName.entry_of_spot_information,
  1860. component: () => import('@/views/hedging/entry_of_spot_information/index.vue'),
  1861. meta: {
  1862. requireAuth: true,
  1863. },
  1864. },
  1865. {
  1866. path: '/spot_price_management',
  1867. name: EnumRouterName.spot_price_management,
  1868. component: Main,
  1869. meta: {
  1870. requireAuth: true,
  1871. },
  1872. children: [
  1873. {
  1874. path: '/spot_price_management/spot_price_management_disable',
  1875. name: EnumRouterName.spot_price_management_disable,
  1876. component: () => import('@/views/hedging/spot_price_management/spot_price_management_disable/index.vue'),
  1877. meta: {
  1878. requireAuth: true,
  1879. },
  1880. },
  1881. {
  1882. path: '/spot_price_management/spot_price_management_normal',
  1883. name: EnumRouterName.spot_price_management_normal,
  1884. component: () => import('@/views/hedging/spot_price_management/spot_price_management_normal/index.vue'),
  1885. meta: {
  1886. requireAuth: true,
  1887. },
  1888. },
  1889. ]
  1890. },
  1891. ],
  1892. },
  1893. {
  1894. path: '/test',
  1895. name: 'test',
  1896. component: () => import('@/views/test/index.vue'),
  1897. },
  1898. {
  1899. // VueRouter 匹配规则是从上往下 建议把*放最后
  1900. path: '/:pathMatch(.*)*',
  1901. name: '404',
  1902. component: () => import('@/views/error-page/404.vue'),
  1903. },
  1904. ];
  1905. const router = createRouter({
  1906. history: createWebHashHistory(),
  1907. routes,
  1908. });
  1909. // 路由拦截
  1910. router.beforeEach((to, from, next) => {
  1911. // 前往登录页时 直接走登出流程
  1912. if (to.fullPath === '/login') {
  1913. eventBus.$emit('logout');
  1914. next();
  1915. } else {
  1916. // 前往其他页 判断是否是登录状态
  1917. if (isLogin()) {
  1918. return next();
  1919. } else {
  1920. if (!getLoadIsComplete()) { // 没有加载对应的资料,表示第一次启动项目
  1921. console.log('to', to);
  1922. const { ACCOUNT, PASSWORD } = to.query
  1923. const name = to.name ? to.name : 'home'
  1924. if (ACCOUNT && PASSWORD) {
  1925. setLoadComplete(false)
  1926. globalDataRefresh().then(() => {
  1927. const { ACCOUNT, PASSWORD } = to.query
  1928. login(ACCOUNT as string, PASSWORD as string, [], true).then(res => {
  1929. setLoadComplete(true)
  1930. localStorageUtil.setItem('loginAccount', ACCOUNT); // 缓存登录账号
  1931. eventBus.$emit('loginSuccess', true);
  1932. next({ name })
  1933. }).catch(err => {
  1934. // 异常需要跳转到错误页面,让用户手动重试
  1935. console.log('err', err);
  1936. })
  1937. })
  1938. } else { // 跳转到登录页面
  1939. next()
  1940. }
  1941. } else { //
  1942. next()
  1943. }
  1944. }
  1945. }
  1946. });
  1947. export default router;