xto-fronted 0.4.67 → 0.4.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/{index-2RwL0s53.js → index-BvMcnGze.js} +1 -1
  2. package/dist/{index-B3_VQZ-d.js → index-D0JXJmlJ.js} +1 -1
  3. package/dist/{index-B1VS4tRU.js → index-DZEVfuKk.js} +1 -1
  4. package/dist/{index-B05xso4D.js → index-Df8leAO9.js} +1 -1
  5. package/dist/{index-C69vu_ot.js → index-XgM0GMu2.js} +961 -945
  6. package/dist/index.es.js +1 -1
  7. package/dist/index.umd.js +1 -1
  8. package/dist/style.css +1 -1
  9. package/package.json +1 -1
  10. package/src/components/Layout/Sidebar.vue +40 -1
  11. package/dist/assets/404-ByYjFnhI.js +0 -1
  12. package/dist/assets/404-sqW80Hc-.css +0 -1
  13. package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
  14. package/dist/assets/index-BBhC8PX4.js +0 -1
  15. package/dist/assets/index-BOEFG4lP.css +0 -1
  16. package/dist/assets/index-BRR97dc6.js +0 -1
  17. package/dist/assets/index-BihVoviB.js +0 -1
  18. package/dist/assets/index-BrvR0Fn_.css +0 -1
  19. package/dist/assets/index-C4ZCZoPp.js +0 -1
  20. package/dist/assets/index-CUh_s55Z.css +0 -1
  21. package/dist/assets/index-D0OnMilp.js +0 -1
  22. package/dist/assets/index-D9wlAuR_.js +0 -1
  23. package/dist/assets/index-DPkO-STg.js +0 -1
  24. package/dist/assets/index-DawJb02s.css +0 -1
  25. package/dist/assets/index-DiHSZ6SJ.js +0 -2
  26. package/dist/assets/index-GDP-IkXE.css +0 -1
  27. package/dist/assets/index-PfV8pzQz.css +0 -1
  28. package/dist/assets/index-Swfu6yvD.css +0 -1
  29. package/dist/assets/vendor-42ANG6Sg.js +0 -6
  30. package/dist/assets/vite-Dw-pgLOX.js +0 -1
  31. package/dist/assets/vue-vendor-Br-l7wbK.js +0 -29
  32. package/dist/assets/xto-base-C-IBqjVs.js +0 -1
  33. package/dist/assets/xto-base-C6eqMPdO.css +0 -1
  34. package/dist/assets/xto-business--V1F5Gwb.css +0 -1
  35. package/dist/assets/xto-core-DZK7Cyg0.js +0 -1
  36. package/dist/assets/xto-data-BFpiDgJi.js +0 -1
  37. package/dist/assets/xto-data-CnAQAQH2.css +0 -1
  38. package/dist/assets/xto-feedback-B2M02fn3.js +0 -1
  39. package/dist/assets/xto-feedback-ByaS-C7_.css +0 -1
  40. package/dist/assets/xto-form-CrsyAjyr.css +0 -1
  41. package/dist/assets/xto-form-NRjKKNcY.js +0 -1
  42. package/dist/assets/xto-layout-D1stVnJI.css +0 -1
  43. package/dist/assets/xto-navigation-BuRQVoD8.css +0 -1
  44. package/dist/assets/xto-navigation-qLRTxo68.js +0 -1
  45. package/dist/index-0h_oG71z.js +0 -345
  46. package/dist/index-1EEezXR3.js +0 -142
  47. package/dist/index-1EkaJDoD.js +0 -142
  48. package/dist/index-1VN-SSaj.js +0 -2873
  49. package/dist/index-23nX2t9j.js +0 -142
  50. package/dist/index-2tvOdd6w.js +0 -372
  51. package/dist/index-3zeoNaqT.js +0 -345
  52. package/dist/index-8oCLh51t.js +0 -475
  53. package/dist/index-AF5JN8Up.js +0 -142
  54. package/dist/index-B02xiP9g.js +0 -372
  55. package/dist/index-B3kL6i_g.js +0 -345
  56. package/dist/index-B4Wny0vt.js +0 -345
  57. package/dist/index-B5RdBQ-f.js +0 -475
  58. package/dist/index-B5rbuoWS.js +0 -2835
  59. package/dist/index-BAFpPlnI.js +0 -475
  60. package/dist/index-BAJakzRz.js +0 -142
  61. package/dist/index-BAOHlfVd.js +0 -142
  62. package/dist/index-BAzJWzWG.js +0 -2852
  63. package/dist/index-BEIxh_R3.js +0 -2982
  64. package/dist/index-BEWrRNps.js +0 -475
  65. package/dist/index-BFtKVmzo.js +0 -142
  66. package/dist/index-BHPrW1wN.js +0 -142
  67. package/dist/index-BHQIqN1E.js +0 -372
  68. package/dist/index-BHZ_y8lp.js +0 -2067
  69. package/dist/index-BHvnTk5Z.js +0 -475
  70. package/dist/index-BIf7CYCW.js +0 -475
  71. package/dist/index-BK1Y1z9_.js +0 -142
  72. package/dist/index-BK8qDl14.js +0 -372
  73. package/dist/index-BKnta6nv.js +0 -372
  74. package/dist/index-BLIem13z.js +0 -345
  75. package/dist/index-BNBv_FCu.js +0 -142
  76. package/dist/index-BNwtCm83.js +0 -345
  77. package/dist/index-BOEMA7WH.js +0 -345
  78. package/dist/index-BOwDukt-.js +0 -2346
  79. package/dist/index-BR9WVjrV.js +0 -2851
  80. package/dist/index-BRMkw154.js +0 -475
  81. package/dist/index-BRQBannD.js +0 -345
  82. package/dist/index-BShKtLTm.js +0 -475
  83. package/dist/index-BVpqTdd2.js +0 -3132
  84. package/dist/index-BWGQANAN.js +0 -2851
  85. package/dist/index-BZKw7U60.js +0 -475
  86. package/dist/index-BadGWG4q.js +0 -475
  87. package/dist/index-BbeWpCd3.js +0 -345
  88. package/dist/index-BeUYNx5P.js +0 -475
  89. package/dist/index-BgiGtxRr.js +0 -142
  90. package/dist/index-BhKJLk9M.js +0 -2824
  91. package/dist/index-BijsKQ3r.js +0 -475
  92. package/dist/index-BjEfspqP.js +0 -475
  93. package/dist/index-BjEnT8WQ.js +0 -372
  94. package/dist/index-BpOcz1m4.js +0 -142
  95. package/dist/index-BrRdLbLB.js +0 -142
  96. package/dist/index-BsHOXfCq.js +0 -372
  97. package/dist/index-Bt5ocakb.js +0 -475
  98. package/dist/index-BtE24Mt4.js +0 -142
  99. package/dist/index-BvcBQjw6.js +0 -2836
  100. package/dist/index-C0krZRWf.js +0 -2859
  101. package/dist/index-C1cKUqmA.js +0 -372
  102. package/dist/index-C3ANmIDM.js +0 -475
  103. package/dist/index-C5JrEkwD.js +0 -345
  104. package/dist/index-C5m4qNMQ.js +0 -2851
  105. package/dist/index-C6Um6eFy.js +0 -475
  106. package/dist/index-C75ePQYC.js +0 -372
  107. package/dist/index-C7wKLGhC.js +0 -142
  108. package/dist/index-C8DBDnxx.js +0 -2836
  109. package/dist/index-CAnqlIjX.js +0 -475
  110. package/dist/index-CB36fztK.js +0 -345
  111. package/dist/index-CBKo6Enz.js +0 -345
  112. package/dist/index-CBcuyFIa.js +0 -2326
  113. package/dist/index-CCxIu4ex.js +0 -372
  114. package/dist/index-CD1ZEMzL.js +0 -2836
  115. package/dist/index-CDx-6tvY.js +0 -345
  116. package/dist/index-CGrvOpdb.js +0 -372
  117. package/dist/index-CHJWNf3f.js +0 -475
  118. package/dist/index-CIb06BxE.js +0 -372
  119. package/dist/index-CLiJcB9v.js +0 -142
  120. package/dist/index-CNS6Ohfw.js +0 -2853
  121. package/dist/index-COkjB5Jm.js +0 -142
  122. package/dist/index-CS5h1O5W.js +0 -345
  123. package/dist/index-CT0deRSL.js +0 -372
  124. package/dist/index-CTQQBaf4.js +0 -345
  125. package/dist/index-CUAC0ZFB.js +0 -475
  126. package/dist/index-CVMV9Tfg.js +0 -142
  127. package/dist/index-CWOx59Vc.js +0 -142
  128. package/dist/index-CWdSR99B.js +0 -372
  129. package/dist/index-CWvOcS8Y.js +0 -345
  130. package/dist/index-C_8yJlf1.js +0 -475
  131. package/dist/index-C_MzXmh2.js +0 -2830
  132. package/dist/index-Cb7HXiBR.js +0 -372
  133. package/dist/index-CbA8oUvZ.js +0 -142
  134. package/dist/index-CbEIzXG9.js +0 -475
  135. package/dist/index-Cb_m0zz1.js +0 -475
  136. package/dist/index-Cc6HgGzc.js +0 -142
  137. package/dist/index-CcWdW9Mj.js +0 -372
  138. package/dist/index-CdAqkP8L.js +0 -345
  139. package/dist/index-CeVUHSt9.js +0 -2847
  140. package/dist/index-CejRpy0a.js +0 -475
  141. package/dist/index-Cg5wO_jJ.js +0 -372
  142. package/dist/index-CgZM1vHq.js +0 -372
  143. package/dist/index-CgofFg1D.js +0 -372
  144. package/dist/index-ChheXGDK.js +0 -372
  145. package/dist/index-ChuFHoI0.js +0 -372
  146. package/dist/index-CiOJZ6_b.js +0 -372
  147. package/dist/index-ClCWmz_7.js +0 -2844
  148. package/dist/index-CmajGrKA.js +0 -142
  149. package/dist/index-Cn_4o3fi.js +0 -345
  150. package/dist/index-CoJBI1vE.js +0 -345
  151. package/dist/index-CqLLaQ-P.js +0 -372
  152. package/dist/index-CsRhLwmR.js +0 -475
  153. package/dist/index-CttJvDTG.js +0 -475
  154. package/dist/index-Cu3m9UeX.js +0 -345
  155. package/dist/index-CyQbOMHa.js +0 -2859
  156. package/dist/index-D-NcbLKL.js +0 -345
  157. package/dist/index-D0gstkiI.js +0 -2836
  158. package/dist/index-D0krzDtx.js +0 -475
  159. package/dist/index-D1moFd4V.js +0 -372
  160. package/dist/index-D2Hs4bZj.js +0 -345
  161. package/dist/index-D4QhrTZs.js +0 -475
  162. package/dist/index-D6CC02F-.js +0 -372
  163. package/dist/index-D6s7Za5s.js +0 -142
  164. package/dist/index-D7i5bck2.js +0 -3132
  165. package/dist/index-D8YBeNfn.js +0 -345
  166. package/dist/index-D93bv6lU.js +0 -372
  167. package/dist/index-DAX_bFj5.js +0 -142
  168. package/dist/index-DBii9cjr.js +0 -475
  169. package/dist/index-DBzpSkNi.js +0 -345
  170. package/dist/index-DCuKNBck.js +0 -3153
  171. package/dist/index-DE3uKf0K.js +0 -142
  172. package/dist/index-DGAqp0QX.js +0 -372
  173. package/dist/index-DGh_w_v1.js +0 -475
  174. package/dist/index-DItKvJyI.js +0 -475
  175. package/dist/index-DKAyB0fv.js +0 -345
  176. package/dist/index-DKN4xsXi.js +0 -2851
  177. package/dist/index-DN_iIn8V.js +0 -345
  178. package/dist/index-DONIBpuJ.js +0 -345
  179. package/dist/index-DPDK8Ht4.js +0 -2851
  180. package/dist/index-DPr3ldST.js +0 -2354
  181. package/dist/index-DS1wfdxM.js +0 -142
  182. package/dist/index-DUW5cCh8.js +0 -372
  183. package/dist/index-DUv28uVd.js +0 -142
  184. package/dist/index-DVS-5SZn.js +0 -475
  185. package/dist/index-DWI51JAp.js +0 -372
  186. package/dist/index-DWVmEexu.js +0 -475
  187. package/dist/index-DXf9wUqQ.js +0 -142
  188. package/dist/index-DXmB-sjP.js +0 -345
  189. package/dist/index-DY_e_Dxv.js +0 -372
  190. package/dist/index-DZar-us7.js +0 -142
  191. package/dist/index-D_nwqVrw.js +0 -2847
  192. package/dist/index-DbEeir7h.js +0 -2834
  193. package/dist/index-Dbf5ypbh.js +0 -142
  194. package/dist/index-DcSK-2pt.js +0 -345
  195. package/dist/index-DclK-Mc7.js +0 -2864
  196. package/dist/index-DcnzaxVi.js +0 -142
  197. package/dist/index-Dd8PlF0M.js +0 -2857
  198. package/dist/index-DdkVT39s.js +0 -345
  199. package/dist/index-DeLbU1t-.js +0 -345
  200. package/dist/index-DfV_J8Te.js +0 -345
  201. package/dist/index-DgPnNd8U.js +0 -475
  202. package/dist/index-Dg_JLa7s.js +0 -345
  203. package/dist/index-Di2VPQjn.js +0 -345
  204. package/dist/index-DibHUbqc.js +0 -372
  205. package/dist/index-DjCVSrpw.js +0 -475
  206. package/dist/index-Djdb936p.js +0 -142
  207. package/dist/index-DmFL_GSt.js +0 -142
  208. package/dist/index-DmP4X2k0.js +0 -372
  209. package/dist/index-DmtmRd1r.js +0 -372
  210. package/dist/index-Dn8MA3kh.js +0 -475
  211. package/dist/index-Do7uXDSi.js +0 -2071
  212. package/dist/index-Dpv1M9Hu.js +0 -372
  213. package/dist/index-DqUuZC8f.js +0 -372
  214. package/dist/index-DtEXQIjn.js +0 -372
  215. package/dist/index-Dtw-qZ0V.js +0 -372
  216. package/dist/index-Dv3hIz8H.js +0 -345
  217. package/dist/index-Dv9jnaWp.js +0 -345
  218. package/dist/index-Dw8KZwGJ.js +0 -2354
  219. package/dist/index-DwJILh-Q.js +0 -3149
  220. package/dist/index-DwzGV3B9.js +0 -142
  221. package/dist/index-DyybaRkK.js +0 -345
  222. package/dist/index-DzerABZq.js +0 -372
  223. package/dist/index-F53NVkhc.js +0 -142
  224. package/dist/index-Fl0_k4XF.js +0 -475
  225. package/dist/index-HMYRCPrs.js +0 -2326
  226. package/dist/index-I49wpmT-.js +0 -372
  227. package/dist/index-IPv1O8Zq.js +0 -345
  228. package/dist/index-JLqnaery.js +0 -372
  229. package/dist/index-JRCQ1CYj.js +0 -142
  230. package/dist/index-L86-iO8O.js +0 -345
  231. package/dist/index-Q56EoFor.js +0 -142
  232. package/dist/index-QxKMr6p0.js +0 -2829
  233. package/dist/index-THRvW9Xm.js +0 -2856
  234. package/dist/index-WIUmTlfL.js +0 -345
  235. package/dist/index-WRrsK0pR.js +0 -475
  236. package/dist/index-Wq652QGf.js +0 -2836
  237. package/dist/index-YnSLCdjP.js +0 -475
  238. package/dist/index-Ynf0lvBE.js +0 -142
  239. package/dist/index-_OtTmb9i.js +0 -142
  240. package/dist/index-_oqoy_3D.js +0 -142
  241. package/dist/index-cl4Y-BWw.js +0 -475
  242. package/dist/index-d_eHJkDW.js +0 -475
  243. package/dist/index-dnmEyUWB.js +0 -372
  244. package/dist/index-dz6CwD6A.js +0 -142
  245. package/dist/index-g4rkaRry.js +0 -475
  246. package/dist/index-g9bRMdAX.js +0 -142
  247. package/dist/index-h4z4-a2p.js +0 -2852
  248. package/dist/index-h7BhcQYM.js +0 -475
  249. package/dist/index-hI3qofTF.js +0 -345
  250. package/dist/index-iyQQumAA.js +0 -372
  251. package/dist/index-js_OhKON.js +0 -345
  252. package/dist/index-kgb4MdHr.js +0 -475
  253. package/dist/index-logKl0VM.js +0 -3144
  254. package/dist/index-lrFMrOlR.js +0 -3132
  255. package/dist/index-mEHxtQWj.js +0 -372
  256. package/dist/index-mNm1BV3n.js +0 -2857
  257. package/dist/index-oOzAFXfr.js +0 -142
  258. package/dist/index-s3vGq0ro.js +0 -345
  259. package/dist/index-wt7AbUqc.js +0 -2342
  260. package/dist/index.html +0 -28
@@ -1,47 +1,47 @@
1
- import { ref as _, computed as b, watch as Xe, defineComponent as ae, resolveComponent as mt, openBlock as l, createBlock as A, unref as r, withCtx as E, createElementBlock as u, Fragment as F, renderList as j, createElementVNode as e, toDisplayString as C, createCommentVNode as U, normalizeClass as K, withDirectives as Oe, vShow as xt, createVNode as f, createTextVNode as ye, onMounted as He, onUnmounted as Ge, vModelText as Je, Transition as ke, withModifiers as Ve, normalizeStyle as Ee, reactive as Qe, withKeys as Ct } from "vue";
2
- import { defineStore as Fe } from "pinia";
3
- import { useRoute as we, useRouter as de, createRouter as Ze, createWebHistory as et } from "vue-router";
4
- import { SubMenu as pt, MenuItem as De, Menu as tt, Tabs as $t, TabPane as Lt } from "@xto/navigation";
5
- import { Icon as I, Button as Be } from "@xto/base";
6
- import { Drawer as st, Message as ne } from "@xto/feedback";
7
- import { Form as Mt, FormItem as Ne, Input as ct, Checkbox as It } from "@xto/form";
8
- import St from "axios";
9
- const Re = _(""), Pe = _(""), Ae = _("");
10
- function Et(t) {
11
- t.appId && (Re.value = t.appId), t.clientId && (Pe.value = t.clientId), t.apiBaseUrl && (Ae.value = t.apiBaseUrl);
1
+ import { ref as f, computed as b, watch as Ge, defineComponent as le, resolveComponent as pt, openBlock as l, createBlock as V, unref as r, withCtx as E, createElementBlock as u, Fragment as j, renderList as W, createElementVNode as e, toDisplayString as $, createCommentVNode as U, onMounted as Ve, normalizeClass as q, withDirectives as Fe, vShow as Ct, createVNode as y, createTextVNode as ye, onUnmounted as Je, vModelText as Qe, Transition as ke, withModifiers as Be, normalizeStyle as Ee, reactive as Ze, withKeys as $t } from "vue";
2
+ import { defineStore as Ke } from "pinia";
3
+ import { useRoute as we, useRouter as de, createRouter as et, createWebHistory as tt } from "vue-router";
4
+ import { SubMenu as ht, MenuItem as Re, Menu as st, Tabs as Lt, TabPane as Mt } from "@xto/navigation";
5
+ import { Icon as I, Button as je } from "@xto/base";
6
+ import { Drawer as ot, Message as ae } from "@xto/feedback";
7
+ import { Form as It, FormItem as Ne, Input as dt, Checkbox as St } from "@xto/form";
8
+ import Et from "axios";
9
+ const Pe = f(""), Ae = f(""), Oe = f("");
10
+ function Tt(t) {
11
+ t.appId && (Pe.value = t.appId), t.clientId && (Ae.value = t.clientId), t.apiBaseUrl && (Oe.value = t.apiBaseUrl);
12
12
  }
13
- function Ke() {
14
- if (Re.value)
15
- return Re.value;
13
+ function qe() {
14
+ if (Pe.value)
15
+ return Pe.value;
16
16
  try {
17
17
  return "";
18
18
  } catch {
19
19
  return "";
20
20
  }
21
21
  }
22
- function ht() {
23
- if (Pe.value)
24
- return Pe.value;
22
+ function vt() {
23
+ if (Ae.value)
24
+ return Ae.value;
25
25
  try {
26
26
  return "";
27
27
  } catch {
28
28
  return "";
29
29
  }
30
30
  }
31
- function Tt() {
32
- if (Ae.value)
33
- return Ae.value;
31
+ function Nt() {
32
+ if (Oe.value)
33
+ return Oe.value;
34
34
  try {
35
35
  return "";
36
36
  } catch {
37
37
  return "";
38
38
  }
39
39
  }
40
- const Na = {
41
- appId: Re,
42
- clientId: Pe,
43
- apiBaseUrl: Ae
44
- }, Ie = "xto_", vt = (t) => ({
40
+ const Ua = {
41
+ appId: Pe,
42
+ clientId: Ae,
43
+ apiBaseUrl: Oe
44
+ }, Ie = "xto_", _t = (t) => ({
45
45
  get(s) {
46
46
  const o = t.getItem(Ie + s);
47
47
  if (!o) return null;
@@ -67,53 +67,53 @@ const Na = {
67
67
  o.startsWith(Ie) && t.removeItem(o);
68
68
  });
69
69
  }
70
- }), Ue = vt(window.localStorage), ze = vt(window.sessionStorage), L = {
70
+ }), Ue = _t(window.localStorage), ze = _t(window.sessionStorage), C = {
71
71
  get: Ue.get,
72
72
  set: Ue.set,
73
73
  remove: Ue.remove,
74
74
  clear: Ue.clear
75
- }, Ua = {
75
+ }, za = {
76
76
  get: ze.get,
77
77
  set: ze.set,
78
78
  remove: ze.remove,
79
79
  clear: ze.clear
80
- }, me = Fe("app", () => {
81
- const t = _(L.get("appName") || "XTO App"), s = _(L.get("indexPath") || "/dashboard"), o = _(L.get("isDark") || !1), i = _(L.get("theme") || "light"), a = _(L.get("layout") || "sidebar"), m = _(L.get("isCollapsed") || !1), M = _(L.get("showTabs") ?? !0), d = _(L.get("showFooter") ?? !0), g = _(L.get("showBreadcrumb") ?? !0), p = _(L.get("primaryColor") || "#409eff"), v = _([]), y = _([]), $ = b(() => o.value ? "dark" : "light"), O = (T) => {
82
- t.value = T, L.set("appName", T);
83
- }, D = (T) => {
84
- s.value = T, L.set("indexPath", T);
85
- }, V = () => {
86
- o.value = !o.value, i.value = o.value ? "dark" : "light", z();
87
- }, N = (T) => {
88
- i.value = T, o.value = T === "dark", z();
89
- }, z = () => {
90
- const T = document.documentElement;
91
- o.value ? T.classList.add("dark") : T.classList.remove("dark"), L.set("isDark", o.value), L.set("theme", i.value);
92
- }, q = () => {
93
- m.value = !m.value, L.set("isCollapsed", m.value);
94
- }, W = (T) => {
95
- a.value = T, L.set("layout", T);
80
+ }, me = Ke("app", () => {
81
+ const t = f(C.get("appName") || "XTO App"), s = f(C.get("indexPath") || "/dashboard"), o = f(C.get("isDark") || !1), i = f(C.get("theme") || "light"), a = f(C.get("layout") || "sidebar"), m = f(C.get("isCollapsed") || !1), M = f(C.get("showTabs") ?? !0), d = f(C.get("showFooter") ?? !0), g = f(C.get("showBreadcrumb") ?? !0), p = f(C.get("primaryColor") || "#409eff"), _ = f([]), v = f([]), L = b(() => o.value ? "dark" : "light"), F = (T) => {
82
+ t.value = T, C.set("appName", T);
83
+ }, R = (T) => {
84
+ s.value = T, C.set("indexPath", T);
96
85
  }, B = () => {
97
- M.value = !M.value, L.set("showTabs", M.value);
98
- }, ee = () => {
99
- d.value = !d.value, L.set("showFooter", d.value);
100
- }, le = () => {
101
- g.value = !g.value, L.set("showBreadcrumb", g.value);
102
- }, P = (T) => {
103
- p.value = T, document.documentElement.style.setProperty("--color-primary", T), L.set("primaryColor", T);
104
- }, H = (T) => {
105
- v.value.includes(T) || v.value.push(T);
106
- }, te = (T) => {
107
- const G = v.value.indexOf(T);
108
- G > -1 && v.value.splice(G, 1);
109
- }, se = () => {
110
- v.value = [];
86
+ o.value = !o.value, i.value = o.value ? "dark" : "light", P();
87
+ }, z = (T) => {
88
+ i.value = T, o.value = T === "dark", P();
89
+ }, P = () => {
90
+ const T = document.documentElement;
91
+ o.value ? T.classList.add("dark") : T.classList.remove("dark"), C.set("isDark", o.value), C.set("theme", i.value);
92
+ }, Y = () => {
93
+ m.value = !m.value, C.set("isCollapsed", m.value);
94
+ }, D = (T) => {
95
+ a.value = T, C.set("layout", T);
96
+ }, N = () => {
97
+ M.value = !M.value, C.set("showTabs", M.value);
98
+ }, K = () => {
99
+ d.value = !d.value, C.set("showFooter", d.value);
100
+ }, te = () => {
101
+ g.value = !g.value, C.set("showBreadcrumb", g.value);
102
+ }, A = (T) => {
103
+ p.value = T, document.documentElement.style.setProperty("--color-primary", T), C.set("primaryColor", T);
104
+ }, G = (T) => {
105
+ _.value.includes(T) || _.value.push(T);
106
+ }, se = (T) => {
107
+ const J = _.value.indexOf(T);
108
+ J > -1 && _.value.splice(J, 1);
109
+ }, oe = () => {
110
+ _.value = [];
111
111
  }, ue = (T) => {
112
- y.value = T;
112
+ v.value = T;
113
113
  }, re = () => {
114
- z(), p.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", p.value);
114
+ P(), p.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", p.value);
115
115
  };
116
- return Xe(o, z), {
116
+ return Ge(o, P), {
117
117
  appName: t,
118
118
  indexPath: s,
119
119
  isDark: o,
@@ -124,26 +124,26 @@ const Na = {
124
124
  showFooter: d,
125
125
  showBreadcrumb: g,
126
126
  primaryColor: p,
127
- cachedViews: v,
128
- mixSubMenus: y,
129
- themeClass: $,
130
- setAppName: O,
131
- setIndexPath: D,
132
- toggleTheme: V,
133
- toggleCollapse: q,
134
- setTheme: N,
135
- setLayout: W,
136
- toggleTabs: B,
137
- toggleFooter: ee,
138
- toggleBreadcrumb: le,
139
- setPrimaryColor: P,
140
- addCachedView: H,
141
- removeCachedView: te,
142
- clearCachedViews: se,
127
+ cachedViews: _,
128
+ mixSubMenus: v,
129
+ themeClass: L,
130
+ setAppName: F,
131
+ setIndexPath: R,
132
+ toggleTheme: B,
133
+ toggleCollapse: Y,
134
+ setTheme: z,
135
+ setLayout: D,
136
+ toggleTabs: N,
137
+ toggleFooter: K,
138
+ toggleBreadcrumb: te,
139
+ setPrimaryColor: A,
140
+ addCachedView: G,
141
+ removeCachedView: se,
142
+ clearCachedViews: oe,
143
143
  setMixSubMenus: ue,
144
144
  initTheme: re
145
145
  };
146
- }), We = "menu_list", Nt = {
146
+ }), Xe = "menu_list", Ut = {
147
147
  menuCode: "home",
148
148
  menuName: "首页",
149
149
  menuUrl: "/dashboard",
@@ -151,40 +151,40 @@ const Na = {
151
151
  closable: !1,
152
152
  isDefault: !1,
153
153
  isOut: !1
154
- }, ve = Fe("menu", () => {
155
- const t = _(L.get(We) || []), s = b(() => t.value.length > 0);
154
+ }, ve = Ke("menu", () => {
155
+ const t = f(C.get(Xe) || []), s = b(() => t.value.length > 0);
156
156
  return {
157
157
  menuList: t,
158
158
  hasMenu: s,
159
159
  setMenuList: (a) => {
160
- t.value = [Nt, ...a], L.set(We, t.value);
160
+ t.value = [Ut, ...a], C.set(Xe, t.value);
161
161
  },
162
162
  clearMenu: () => {
163
- t.value = [], L.remove(We);
163
+ t.value = [], C.remove(Xe);
164
164
  }
165
165
  };
166
- }), je = "/vite.svg", Ye = "user_info", Q = Fe("user", () => {
167
- const t = _(L.get(Ye)), s = b(() => !!t.value), o = b(() => {
168
- var y;
169
- return ((y = t.value) == null ? void 0 : y.userId) || "";
166
+ }), We = "/vite.svg", He = "user_info", Z = Ke("user", () => {
167
+ const t = f(C.get(He)), s = b(() => !!t.value), o = b(() => {
168
+ var v;
169
+ return ((v = t.value) == null ? void 0 : v.userId) || "";
170
170
  }), i = b(() => {
171
- var y;
172
- return ((y = t.value) == null ? void 0 : y.userName) || "";
171
+ var v;
172
+ return ((v = t.value) == null ? void 0 : v.userName) || "";
173
173
  }), a = b(() => {
174
- var y;
175
- return ((y = t.value) == null ? void 0 : y.departmentName) || "";
174
+ var v;
175
+ return ((v = t.value) == null ? void 0 : v.departmentName) || "";
176
176
  }), m = b(() => {
177
- var y;
178
- return ((y = t.value) == null ? void 0 : y.email) || "";
177
+ var v;
178
+ return ((v = t.value) == null ? void 0 : v.email) || "";
179
179
  }), M = b(() => {
180
- var y;
181
- return ((y = t.value) == null ? void 0 : y.mobilePhone) || "";
180
+ var v;
181
+ return ((v = t.value) == null ? void 0 : v.mobilePhone) || "";
182
182
  }), d = b(() => {
183
- var y;
184
- return ((y = t.value) == null ? void 0 : y.positionName) || "";
183
+ var v;
184
+ return ((v = t.value) == null ? void 0 : v.positionName) || "";
185
185
  }), g = b(() => {
186
- var y;
187
- return ((y = t.value) == null ? void 0 : y.avatar) || "";
186
+ var v;
187
+ return ((v = t.value) == null ? void 0 : v.avatar) || "";
188
188
  });
189
189
  return {
190
190
  userInfo: t,
@@ -196,34 +196,34 @@ const Na = {
196
196
  mobilePhone: M,
197
197
  positionName: d,
198
198
  avatar: g,
199
- setUserInfo: (y) => {
200
- t.value = y, L.set(Ye, y);
199
+ setUserInfo: (v) => {
200
+ t.value = v, C.set(He, v);
201
201
  },
202
202
  clearUserInfo: () => {
203
- t.value = null, L.remove(Ye);
203
+ t.value = null, C.remove(He);
204
204
  }
205
205
  };
206
- }), ot = "token", nt = "token_type", at = "refresh_token", lt = "expires_time", rt = "refresh_time", it = "code", qe = () => L.get(ot), Ut = (t) => {
207
- L.set(ot, t);
208
- }, zt = () => L.get(nt), Dt = (t) => {
209
- L.set(nt, t);
210
- }, za = () => L.get(at), Rt = (t) => {
211
- L.set(at, t);
212
- }, Pt = () => L.get(lt), At = (t) => {
213
- L.set(lt, t);
214
- }, Da = () => L.get(rt), Ot = (t) => {
215
- L.set(rt, t);
216
- }, Ra = () => L.get(it), Vt = (t) => {
217
- L.set(it, t);
218
- }, _t = (t) => {
219
- Ut(t.access_token), Dt(t.token_type || "Bearer"), Rt(t.refresh_token), At(t.expires_time), Ot(t.refresh_time), t.code && Vt(t.code);
206
+ }), nt = "token", at = "token_type", lt = "refresh_token", rt = "expires_time", it = "refresh_time", ut = "code", Ye = () => C.get(nt), zt = (t) => {
207
+ C.set(nt, t);
208
+ }, Dt = () => C.get(at), Rt = (t) => {
209
+ C.set(at, t);
210
+ }, Da = () => C.get(lt), Pt = (t) => {
211
+ C.set(lt, t);
212
+ }, At = () => C.get(rt), Ot = (t) => {
213
+ C.set(rt, t);
214
+ }, Ra = () => C.get(it), Vt = (t) => {
215
+ C.set(it, t);
216
+ }, Pa = () => C.get(ut), Ft = (t) => {
217
+ C.set(ut, t);
218
+ }, ft = (t) => {
219
+ zt(t.access_token), Rt(t.token_type || "Bearer"), Pt(t.refresh_token), Ot(t.expires_time), Vt(t.refresh_time), t.code && Ft(t.code);
220
220
  }, Se = () => {
221
- L.remove(ot), L.remove(nt), L.remove(at), L.remove(lt), L.remove(rt), L.remove(it);
222
- }, Ft = () => {
223
- const t = Pt();
221
+ C.remove(nt), C.remove(at), C.remove(lt), C.remove(rt), C.remove(it), C.remove(ut);
222
+ }, Bt = () => {
223
+ const t = At();
224
224
  return t ? Date.now() > t : !0;
225
- }, ft = () => !!qe() && !Ft(), Te = Fe("auth", () => {
226
- const t = _(qe()), s = b(() => ft()), o = _(""), i = _(""), a = _(""), m = _("/login");
225
+ }, gt = () => !!Ye() && !Bt(), Te = Ke("auth", () => {
226
+ const t = f(Ye()), s = b(() => gt()), o = f(""), i = f(""), a = f(""), m = f("/login");
227
227
  return {
228
228
  token: t,
229
229
  isLoggedIn: s,
@@ -231,35 +231,35 @@ const Na = {
231
231
  appId: i,
232
232
  clientId: a,
233
233
  loginPath: m,
234
- login: ($) => {
235
- t.value = $.access_token, _t($);
234
+ login: (L) => {
235
+ t.value = L.access_token, ft(L);
236
236
  },
237
237
  logout: () => {
238
238
  t.value = null, Se();
239
239
  },
240
- setBaseUrl: ($) => {
241
- o.value = $;
240
+ setBaseUrl: (L) => {
241
+ o.value = L;
242
242
  },
243
- setAppId: ($) => {
244
- i.value = $;
243
+ setAppId: (L) => {
244
+ i.value = L;
245
245
  },
246
- setClientId: ($) => {
247
- a.value = $;
246
+ setClientId: (L) => {
247
+ a.value = L;
248
248
  },
249
- setLoginPath: ($) => {
250
- m.value = $;
249
+ setLoginPath: (L) => {
250
+ m.value = L;
251
251
  }
252
252
  };
253
- }), Bt = { class: "menu-item__content" }, Kt = { class: "menu-item__icon" }, jt = {
253
+ }), Kt = { class: "menu-item__content" }, jt = { class: "menu-item__icon" }, qt = {
254
254
  key: 1,
255
255
  class: "menu-item__char"
256
- }, qt = { class: "menu-item__text" }, Wt = { class: "menu-item__content" }, Yt = {
256
+ }, Wt = { class: "menu-item__text" }, Yt = { class: "menu-item__content" }, Xt = {
257
257
  key: 0,
258
258
  class: "menu-item__icon"
259
- }, Xt = {
259
+ }, Ht = {
260
260
  key: 1,
261
261
  class: "menu-item__char"
262
- }, Ht = { class: "menu-item__text" }, Gt = /* @__PURE__ */ ae({
262
+ }, Gt = { class: "menu-item__text" }, Jt = /* @__PURE__ */ le({
263
263
  __name: "SidebarMenuItem",
264
264
  props: {
265
265
  menu: {}
@@ -406,62 +406,62 @@ const Na = {
406
406
  }[d] || d;
407
407
  }, a = (d) => d ? d.charAt(0) : "", m = (d) => o.has(d), M = b(() => s.menu.children && s.menu.children.length > 0);
408
408
  return (d, g) => {
409
- const p = mt("SidebarMenuItem", !0);
410
- return M.value ? (l(), A(r(pt), {
409
+ const p = pt("SidebarMenuItem", !0);
410
+ return M.value ? (l(), V(r(ht), {
411
411
  key: 0,
412
412
  index: t.menu.menuUrl
413
413
  }, {
414
414
  title: E(() => [
415
- e("span", Bt, [
416
- e("span", Kt, [
417
- m(i(t.menu.icon)) ? (l(), A(r(I), {
415
+ e("span", Kt, [
416
+ e("span", jt, [
417
+ m(i(t.menu.icon)) ? (l(), V(r(I), {
418
418
  key: 0,
419
419
  name: i(t.menu.icon),
420
420
  size: 16
421
- }, null, 8, ["name"])) : (l(), u("span", jt, C(a(t.menu.menuName)), 1))
421
+ }, null, 8, ["name"])) : (l(), u("span", qt, $(a(t.menu.menuName)), 1))
422
422
  ]),
423
- e("span", qt, C(t.menu.menuName), 1)
423
+ e("span", Wt, $(t.menu.menuName), 1)
424
424
  ])
425
425
  ]),
426
426
  default: E(() => [
427
- (l(!0), u(F, null, j(t.menu.children, (v) => (l(), A(p, {
428
- key: v.menuUrl,
429
- menu: v
427
+ (l(!0), u(j, null, W(t.menu.children, (_) => (l(), V(p, {
428
+ key: _.menuUrl,
429
+ menu: _
430
430
  }, null, 8, ["menu"]))), 128))
431
431
  ]),
432
432
  _: 1
433
- }, 8, ["index"])) : (l(), A(r(De), {
433
+ }, 8, ["index"])) : (l(), V(r(Re), {
434
434
  key: 1,
435
435
  index: t.menu.menuUrl
436
436
  }, {
437
437
  default: E(() => [
438
- e("span", Wt, [
439
- t.menu.menuName !== "首页" ? (l(), u("span", Yt, [
440
- m(i(t.menu.icon)) ? (l(), A(r(I), {
438
+ e("span", Yt, [
439
+ t.menu.menuName !== "首页" ? (l(), u("span", Xt, [
440
+ m(i(t.menu.icon)) ? (l(), V(r(I), {
441
441
  key: 0,
442
442
  name: i(t.menu.icon),
443
443
  size: 16
444
- }, null, 8, ["name"])) : (l(), u("span", Xt, C(a(t.menu.menuName)), 1))
444
+ }, null, 8, ["name"])) : (l(), u("span", Ht, $(a(t.menu.menuName)), 1))
445
445
  ])) : U("", !0),
446
- e("span", Ht, C(t.menu.menuName), 1)
446
+ e("span", Gt, $(t.menu.menuName), 1)
447
447
  ])
448
448
  ]),
449
449
  _: 1
450
450
  }, 8, ["index"]));
451
451
  };
452
452
  }
453
- }), Z = (t, s) => {
453
+ }), ee = (t, s) => {
454
454
  const o = t.__vccOpts || t;
455
455
  for (const [i, a] of s)
456
456
  o[i] = a;
457
457
  return o;
458
- }, Jt = /* @__PURE__ */ Z(Gt, [["__scopeId", "data-v-d160ae6a"]]), Qt = {
458
+ }, Qt = /* @__PURE__ */ ee(Jt, [["__scopeId", "data-v-d160ae6a"]]), Zt = {
459
459
  key: 0,
460
460
  class: "sidebar__logo"
461
- }, Zt = {
461
+ }, es = {
462
462
  key: 1,
463
463
  class: "sidebar__user"
464
- }, es = { class: "sidebar__user-info" }, ts = { class: "sidebar__user-name" }, ss = { class: "sidebar__user-role" }, os = /* @__PURE__ */ ae({
464
+ }, ts = { class: "sidebar__user-info" }, ss = { class: "sidebar__user-name" }, os = { class: "sidebar__user-role" }, De = "sidebar_opened_menus", ns = /* @__PURE__ */ le({
465
465
  __name: "Sidebar",
466
466
  props: {
467
467
  menuList: { default: () => [] },
@@ -469,54 +469,70 @@ const Na = {
469
469
  showUser: { type: Boolean, default: !0 }
470
470
  },
471
471
  setup(t) {
472
- const s = t, o = we(), i = de(), a = ve(), m = Q(), M = Te(), d = me(), g = b(() => s.menuList.length > 0 ? s.menuList : a.menuList), p = b(() => d.isCollapsed), v = b(() => o.path), y = b(() => d.isDark ? "#1d1e1f" : "#fff"), $ = b(() => d.isDark ? "#cfd3dc" : "#303133"), O = b(() => "#409eff"), D = (N) => {
473
- N && N !== o.path && i.push(N);
474
- }, V = () => {
472
+ const s = t, o = we(), i = de(), a = ve(), m = Z(), M = Te(), d = me(), g = b(() => s.menuList.length > 0 ? s.menuList : a.menuList), p = b(() => d.isCollapsed), _ = b(() => o.path), v = f(C.get(De) || []), L = (D) => {
473
+ v.value.includes(D) || (v.value.push(D), C.set(De, v.value));
474
+ }, F = (D) => {
475
+ const N = v.value.indexOf(D);
476
+ N > -1 && (v.value.splice(N, 1), C.set(De, v.value));
477
+ };
478
+ Ve(() => {
479
+ var N;
480
+ const D = o.path;
481
+ for (const K of g.value)
482
+ (N = K.children) != null && N.length && K.children.some((A) => D.startsWith(A.menuUrl)) && !v.value.includes(K.menuUrl) && v.value.push(K.menuUrl);
483
+ C.set(De, v.value);
484
+ });
485
+ const R = b(() => d.isDark ? "#1d1e1f" : "#fff"), B = b(() => d.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = (D) => {
486
+ D && D !== o.path && i.push(D);
487
+ }, Y = () => {
475
488
  M.logout(), m.clearUserInfo(), a.clearMenu(), i.push("/login");
476
489
  };
477
- return (N, z) => (l(), u("div", {
478
- class: K(["sidebar", { "sidebar--collapsed": p.value }])
490
+ return (D, N) => (l(), u("div", {
491
+ class: q(["sidebar", { "sidebar--collapsed": p.value }])
479
492
  }, [
480
- s.showLogo ? (l(), u("div", Qt, [
481
- z[0] || (z[0] = e("img", {
482
- src: je,
493
+ s.showLogo ? (l(), u("div", Zt, [
494
+ N[0] || (N[0] = e("img", {
495
+ src: We,
483
496
  alt: "Logo",
484
497
  class: "sidebar__logo-img"
485
498
  }, null, -1)),
486
- Oe(e("span", { class: "sidebar__logo-text" }, C(r(d).appName), 513), [
487
- [xt, !p.value]
499
+ Fe(e("span", { class: "sidebar__logo-text" }, $(r(d).appName), 513), [
500
+ [Ct, !p.value]
488
501
  ])
489
502
  ])) : U("", !0),
490
- f(r(tt), {
491
- "model-value": v.value,
503
+ y(r(st), {
504
+ "model-value": _.value,
492
505
  mode: "vertical",
493
506
  collapse: p.value,
494
507
  "collapse-transition": !1,
495
- "background-color": y.value,
496
- "text-color": $.value,
497
- "active-text-color": O.value,
508
+ "background-color": R.value,
509
+ "text-color": B.value,
510
+ "active-text-color": z.value,
511
+ "default-openeds": v.value,
498
512
  class: "sidebar__menu",
499
- onSelect: D
513
+ onSelect: P,
514
+ onOpen: L,
515
+ onClose: F
500
516
  }, {
501
517
  default: E(() => [
502
- (l(!0), u(F, null, j(g.value, (q) => (l(), A(Jt, {
503
- key: q.menuUrl,
504
- menu: q
518
+ (l(!0), u(j, null, W(g.value, (K) => (l(), V(Qt, {
519
+ key: K.menuUrl,
520
+ menu: K
505
521
  }, null, 8, ["menu"]))), 128))
506
522
  ]),
507
523
  _: 1
508
- }, 8, ["model-value", "collapse", "background-color", "text-color", "active-text-color"]),
509
- s.showUser && !p.value ? (l(), u("div", Zt, [
510
- e("div", es, [
511
- e("span", ts, C(r(m).userName), 1),
512
- e("span", ss, C(r(m).departmentName), 1)
524
+ }, 8, ["model-value", "collapse", "background-color", "text-color", "active-text-color", "default-openeds"]),
525
+ s.showUser && !p.value ? (l(), u("div", es, [
526
+ e("div", ts, [
527
+ e("span", ss, $(r(m).userName), 1),
528
+ e("span", os, $(r(m).departmentName), 1)
513
529
  ]),
514
- f(r(Be), {
530
+ y(r(je), {
515
531
  type: "text",
516
532
  size: "small",
517
- onClick: V
533
+ onClick: Y
518
534
  }, {
519
- default: E(() => [...z[1] || (z[1] = [
535
+ default: E(() => [...N[1] || (N[1] = [
520
536
  ye("退出", -1)
521
537
  ])]),
522
538
  _: 1
@@ -524,65 +540,65 @@ const Na = {
524
540
  ])) : U("", !0)
525
541
  ], 2));
526
542
  }
527
- }), dt = /* @__PURE__ */ Z(os, [["__scopeId", "data-v-9d00a6d4"]]), ns = { class: "header" }, as = { class: "header__left" }, ls = {
543
+ }), mt = /* @__PURE__ */ ee(ns, [["__scopeId", "data-v-bc9f0622"]]), as = { class: "header" }, ls = { class: "header__left" }, rs = {
528
544
  key: 0,
529
545
  class: "header__breadcrumb"
530
- }, rs = {
546
+ }, is = {
531
547
  key: 0,
532
548
  class: "breadcrumb-separator"
533
- }, is = { class: "header__right" }, us = {
549
+ }, us = { class: "header__right" }, cs = {
534
550
  key: 0,
535
551
  class: "header__search-dropdown"
536
- }, cs = {
552
+ }, ds = {
537
553
  key: 0,
538
554
  class: "header__search-results"
539
- }, ds = ["onClick"], ms = {
555
+ }, ms = ["onClick"], ps = {
540
556
  key: 0,
541
557
  class: "header__search-icon"
542
- }, ps = {
558
+ }, hs = {
543
559
  key: 1,
544
560
  class: "header__search-char"
545
- }, hs = { class: "header__search-item-title" }, vs = {
561
+ }, vs = { class: "header__search-item-title" }, _s = {
546
562
  key: 1,
547
563
  class: "header__search-item-parent"
548
- }, _s = {
564
+ }, fs = {
549
565
  key: 1,
550
566
  class: "header__search-empty"
551
- }, fs = ["title"], gs = { class: "header__avatar" }, ys = { class: "header__user-name" }, ks = {
567
+ }, gs = ["title"], ys = { class: "header__avatar" }, ks = { class: "header__user-name" }, ws = {
552
568
  key: 0,
553
569
  class: "header__dropdown"
554
- }, ws = { class: "header__dropdown-header" }, bs = { class: "header__dropdown-avatar" }, xs = { class: "header__dropdown-info" }, Cs = { class: "header__dropdown-name" }, $s = { class: "header__dropdown-role" }, Ls = { class: "header__dropdown-menu" }, Ms = { class: "settings-drawer" }, Is = { class: "settings-section" }, Ss = { class: "settings-layout-options" }, Es = ["onClick"], Ts = { class: "layout-option__preview" }, Ns = {
570
+ }, bs = { class: "header__dropdown-header" }, xs = { class: "header__dropdown-avatar" }, Cs = { class: "header__dropdown-info" }, $s = { class: "header__dropdown-name" }, Ls = { class: "header__dropdown-role" }, Ms = { class: "header__dropdown-menu" }, Is = { class: "settings-drawer" }, Ss = { class: "settings-section" }, Es = { class: "settings-layout-options" }, Ts = ["onClick"], Ns = { class: "layout-option__preview" }, Us = {
555
571
  key: 0,
556
572
  class: "layout-preview-sidebar"
557
- }, Us = {
573
+ }, zs = {
558
574
  key: 1,
559
575
  class: "layout-preview-top"
560
- }, zs = {
576
+ }, Ds = {
561
577
  key: 2,
562
578
  class: "layout-preview-mix"
563
- }, Ds = { class: "layout-option__label" }, Rs = { class: "settings-section" }, Ps = { class: "settings-color-options" }, As = ["title", "onClick"], Os = { class: "settings-section" }, Vs = { class: "settings-switch-list" }, Fs = { class: "settings-switch-item" }, Bs = { class: "settings-switch-item" }, Ks = /* @__PURE__ */ ae({
579
+ }, Rs = { class: "layout-option__label" }, Ps = { class: "settings-section" }, As = { class: "settings-color-options" }, Os = ["title", "onClick"], Vs = { class: "settings-section" }, Fs = { class: "settings-switch-list" }, Bs = { class: "settings-switch-item" }, Ks = { class: "settings-switch-item" }, js = /* @__PURE__ */ le({
564
580
  __name: "Header",
565
581
  setup(t) {
566
- const s = we(), o = de(), i = me(), a = Q(), m = Te(), M = ve(), d = _(!1), g = _(!1), p = _(null), v = _(!1), y = _(!1), $ = _(""), O = _(null), D = _(!1), V = [
582
+ const s = we(), o = de(), i = me(), a = Z(), m = Te(), M = ve(), d = f(!1), g = f(!1), p = f(null), _ = f(!1), v = f(!1), L = f(""), F = f(null), R = f(!1), B = [
567
583
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
568
584
  { value: "top", label: "顶部菜单", icon: "menu" },
569
585
  { value: "mix", label: "混合菜单", icon: "grid" }
570
- ], N = [
586
+ ], z = [
571
587
  { value: "#409eff", label: "默认蓝" },
572
588
  { value: "#1890ff", label: "科技蓝" },
573
589
  { value: "#52c41a", label: "极光绿" },
574
590
  { value: "#faad14", label: "日落橙" },
575
591
  { value: "#f5222d", label: "薄暮红" },
576
592
  { value: "#722ed1", label: "酱紫" }
577
- ], z = b(() => s.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
593
+ ], P = b(() => s.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
578
594
  title: k.meta.title,
579
595
  path: k.path
580
- }))), q = (S, k = "") => {
581
- const Y = [];
596
+ }))), Y = (S, k = "") => {
597
+ const X = [];
582
598
  return S.forEach((c) => {
583
- c.children && c.children.length > 0 ? Y.push(...q(c.children, c.menuName)) : Y.push({ ...c, parentTitle: k, title: c.menuName, path: c.menuUrl });
584
- }), Y;
585
- }, W = /* @__PURE__ */ new Set([
599
+ c.children && c.children.length > 0 ? X.push(...Y(c.children, c.menuName)) : X.push({ ...c, parentTitle: k, title: c.menuName, path: c.menuUrl });
600
+ }), X;
601
+ }, D = /* @__PURE__ */ new Set([
586
602
  "arrow-up",
587
603
  "arrow-down",
588
604
  "arrow-left",
@@ -684,10 +700,10 @@ const Na = {
684
700
  "sun",
685
701
  "theme",
686
702
  "skin"
687
- ]), B = (S) => {
703
+ ]), N = (S) => {
688
704
  if (!S || S === "") return "";
689
705
  if (S.startsWith("tineco-icon-")) {
690
- const Y = S.replace("tineco-icon-", "");
706
+ const X = S.replace("tineco-icon-", "");
691
707
  return {
692
708
  home: "home",
693
709
  dashboard: "dashboard",
@@ -701,7 +717,7 @@ const Na = {
701
717
  chart: "chart",
702
718
  report: "report",
703
719
  analytics: "analytics"
704
- }[Y] || Y;
720
+ }[X] || X;
705
721
  }
706
722
  return {
707
723
  dashboard: "dashboard",
@@ -721,34 +737,34 @@ const Na = {
721
737
  list: "list",
722
738
  grid: "grid"
723
739
  }[S] || S;
724
- }, ee = (S) => S ? S.charAt(0) : "", le = (S) => W.has(S), P = b(() => $.value.trim() ? q(M.menuList).filter(
725
- (k) => k.title.toLowerCase().includes($.value.toLowerCase())
726
- ) : []), H = b(() => i.layout), te = () => {
740
+ }, K = (S) => S ? S.charAt(0) : "", te = (S) => D.has(S), A = b(() => L.value.trim() ? Y(M.menuList).filter(
741
+ (k) => k.title.toLowerCase().includes(L.value.toLowerCase())
742
+ ) : []), G = b(() => i.layout), se = () => {
727
743
  i.toggleCollapse();
728
- }, se = () => {
744
+ }, oe = () => {
729
745
  i.toggleTheme();
730
746
  }, ue = () => {
731
747
  g.value = !0;
732
748
  }, re = (S) => {
733
749
  i.setLayout(S), g.value = !1;
734
750
  }, T = (S) => {
735
- D.value = S;
751
+ R.value = S;
736
752
  const k = document.documentElement;
737
753
  S ? k.classList.add("grey-mode") : k.classList.remove("grey-mode");
738
- }, G = () => {
739
- T(!D.value), g.value = !1;
754
+ }, J = () => {
755
+ T(!R.value), g.value = !1;
740
756
  }, ce = () => {
741
757
  i.toggleTheme(), g.value = !1;
742
758
  }, be = () => {
743
759
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
744
- }, oe = () => {
745
- v.value = !!document.fullscreenElement;
760
+ }, ne = () => {
761
+ _.value = !!document.fullscreenElement;
746
762
  }, pe = () => {
747
763
  d.value = !d.value;
748
764
  }, ie = () => {
749
765
  d.value = !1;
750
766
  }, he = () => {
751
- y.value = !1, $.value = "";
767
+ v.value = !1, L.value = "";
752
768
  }, xe = (S) => {
753
769
  o.push(S), he();
754
770
  }, Ce = (S) => {
@@ -760,78 +776,78 @@ const Na = {
760
776
  }, Me = () => {
761
777
  ie(), m.logout(), a.clearUserInfo(), M.clearMenu(), o.push("/login");
762
778
  }, _e = (S) => {
763
- p.value && !p.value.contains(S.target) && ie(), O.value && !O.value.contains(S.target) && he();
779
+ p.value && !p.value.contains(S.target) && ie(), F.value && !F.value.contains(S.target) && he();
764
780
  }, fe = (S) => {
765
781
  S.key === "Escape" && (he(), ie());
766
782
  };
767
- return He(() => {
768
- document.addEventListener("click", _e), document.addEventListener("fullscreenchange", oe), document.addEventListener("keydown", fe), i.initTheme(), D.value = document.documentElement.classList.contains("grey-mode");
769
- }), Ge(() => {
770
- document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange", oe), document.removeEventListener("keydown", fe);
783
+ return Ve(() => {
784
+ document.addEventListener("click", _e), document.addEventListener("fullscreenchange", ne), document.addEventListener("keydown", fe), i.initTheme(), R.value = document.documentElement.classList.contains("grey-mode");
785
+ }), Je(() => {
786
+ document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange", ne), document.removeEventListener("keydown", fe);
771
787
  }), (S, k) => {
772
- var Y;
773
- return l(), u("div", ns, [
774
- e("div", as, [
788
+ var X;
789
+ return l(), u("div", as, [
790
+ e("div", ls, [
775
791
  e("div", {
776
792
  class: "header__collapse",
777
- onClick: te
793
+ onClick: se
778
794
  }, [
779
- f(r(I), {
795
+ y(r(I), {
780
796
  name: r(i).isCollapsed ? "menu-unfold" : "menu-fold",
781
797
  size: 18
782
798
  }, null, 8, ["name"])
783
799
  ]),
784
- r(i).showBreadcrumb ? (l(), u("div", ls, [
785
- (l(!0), u(F, null, j(z.value, (c, w) => (l(), u("span", {
800
+ r(i).showBreadcrumb ? (l(), u("div", rs, [
801
+ (l(!0), u(j, null, W(P.value, (c, w) => (l(), u("span", {
786
802
  key: c.path
787
803
  }, [
788
- w > 0 ? (l(), u("span", rs, "/")) : U("", !0),
804
+ w > 0 ? (l(), u("span", is, "/")) : U("", !0),
789
805
  e("span", {
790
- class: K({ "is-current": w === z.value.length - 1 })
791
- }, C(c.title), 3)
806
+ class: q({ "is-current": w === P.value.length - 1 })
807
+ }, $(c.title), 3)
792
808
  ]))), 128))
793
809
  ])) : U("", !0)
794
810
  ]),
795
- e("div", is, [
811
+ e("div", us, [
796
812
  e("div", {
797
813
  class: "header__search",
798
814
  ref_key: "searchRef",
799
- ref: O
815
+ ref: F
800
816
  }, [
801
- f(r(I), {
817
+ y(r(I), {
802
818
  name: "search",
803
819
  size: 14,
804
820
  class: "header__search-icon"
805
821
  }),
806
- Oe(e("input", {
807
- "onUpdate:modelValue": k[0] || (k[0] = (c) => $.value = c),
822
+ Fe(e("input", {
823
+ "onUpdate:modelValue": k[0] || (k[0] = (c) => L.value = c),
808
824
  type: "text",
809
825
  class: "header__search-input",
810
826
  placeholder: "搜索菜单...",
811
- onFocus: k[1] || (k[1] = (c) => y.value = !0)
827
+ onFocus: k[1] || (k[1] = (c) => v.value = !0)
812
828
  }, null, 544), [
813
- [Je, $.value]
829
+ [Qe, L.value]
814
830
  ]),
815
- f(ke, { name: "search-dropdown" }, {
831
+ y(ke, { name: "search-dropdown" }, {
816
832
  default: E(() => [
817
- y.value && (P.value.length > 0 || $.value) ? (l(), u("div", us, [
818
- P.value.length > 0 ? (l(), u("div", cs, [
819
- (l(!0), u(F, null, j(P.value, (c) => (l(), u("div", {
833
+ v.value && (A.value.length > 0 || L.value) ? (l(), u("div", cs, [
834
+ A.value.length > 0 ? (l(), u("div", ds, [
835
+ (l(!0), u(j, null, W(A.value, (c) => (l(), u("div", {
820
836
  key: c.path,
821
837
  class: "header__search-item",
822
838
  onClick: (w) => xe(c.path)
823
839
  }, [
824
- c.title !== "首页" ? (l(), u("span", ms, [
825
- le(B(c.icon)) ? (l(), A(r(I), {
840
+ c.title !== "首页" ? (l(), u("span", ps, [
841
+ te(N(c.icon)) ? (l(), V(r(I), {
826
842
  key: 0,
827
- name: B(c.icon),
843
+ name: N(c.icon),
828
844
  size: 16
829
- }, null, 8, ["name"])) : (l(), u("span", ps, C(ee(c.title)), 1))
845
+ }, null, 8, ["name"])) : (l(), u("span", hs, $(K(c.title)), 1))
830
846
  ])) : U("", !0),
831
- e("span", hs, C(c.title), 1),
832
- c.parentTitle ? (l(), u("span", vs, C(c.parentTitle), 1)) : U("", !0)
833
- ], 8, ds))), 128))
834
- ])) : (l(), u("div", _s, " 未找到匹配的菜单 "))
847
+ e("span", vs, $(c.title), 1),
848
+ c.parentTitle ? (l(), u("span", _s, $(c.parentTitle), 1)) : U("", !0)
849
+ ], 8, ms))), 128))
850
+ ])) : (l(), u("div", fs, " 未找到匹配的菜单 "))
835
851
  ])) : U("", !0)
836
852
  ]),
837
853
  _: 1
@@ -840,29 +856,29 @@ const Na = {
840
856
  e("div", {
841
857
  class: "header__action",
842
858
  onClick: be,
843
- title: v.value ? "退出全屏" : "全屏"
859
+ title: _.value ? "退出全屏" : "全屏"
844
860
  }, [
845
- f(r(I), {
846
- name: v.value ? "fullscreen-exit" : "fullscreen",
861
+ y(r(I), {
862
+ name: _.value ? "fullscreen-exit" : "fullscreen",
847
863
  size: 16
848
864
  }, null, 8, ["name"])
849
- ], 8, fs),
865
+ ], 8, gs),
850
866
  e("div", {
851
867
  class: "header__action",
852
868
  onClick: ue,
853
869
  title: "换肤设置"
854
870
  }, [
855
- f(r(I), {
871
+ y(r(I), {
856
872
  name: "skin",
857
873
  size: 16
858
874
  })
859
875
  ]),
860
876
  e("div", {
861
877
  class: "header__action",
862
- onClick: se,
878
+ onClick: oe,
863
879
  title: "切换主题"
864
880
  }, [
865
- f(r(I), {
881
+ y(r(I), {
866
882
  name: r(i).isDark ? "sun" : "moon",
867
883
  size: 16
868
884
  }, null, 8, ["name"])
@@ -874,37 +890,37 @@ const Na = {
874
890
  }, [
875
891
  e("div", {
876
892
  class: "header__user-trigger",
877
- onClick: Ve(pe, ["stop"])
893
+ onClick: Be(pe, ["stop"])
878
894
  }, [
879
- e("div", gs, [
880
- e("span", null, C(((Y = r(a).userName) == null ? void 0 : Y.charAt(0)) || "U"), 1)
895
+ e("div", ys, [
896
+ e("span", null, $(((X = r(a).userName) == null ? void 0 : X.charAt(0)) || "U"), 1)
881
897
  ]),
882
- e("span", ys, C(r(a).userName), 1),
898
+ e("span", ks, $(r(a).userName), 1),
883
899
  e("span", {
884
- class: K(["header__user-arrow", { "is-active": d.value }])
900
+ class: q(["header__user-arrow", { "is-active": d.value }])
885
901
  }, "▼", 2)
886
902
  ]),
887
- f(ke, { name: "dropdown" }, {
903
+ y(ke, { name: "dropdown" }, {
888
904
  default: E(() => {
889
905
  var c;
890
906
  return [
891
- d.value ? (l(), u("div", ks, [
892
- e("div", ws, [
893
- e("div", bs, [
894
- e("span", null, C(((c = r(a).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
895
- ]),
907
+ d.value ? (l(), u("div", ws, [
908
+ e("div", bs, [
896
909
  e("div", xs, [
897
- e("div", Cs, C(r(a).userName), 1),
898
- e("div", $s, C(r(a).departmentName), 1)
910
+ e("span", null, $(((c = r(a).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
911
+ ]),
912
+ e("div", Cs, [
913
+ e("div", $s, $(r(a).userName), 1),
914
+ e("div", Ls, $(r(a).departmentName), 1)
899
915
  ])
900
916
  ]),
901
917
  k[7] || (k[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
902
- e("div", Ls, [
918
+ e("div", Ms, [
903
919
  e("div", {
904
920
  class: "header__dropdown-item",
905
921
  onClick: $e
906
922
  }, [
907
- f(r(I), {
923
+ y(r(I), {
908
924
  name: "user",
909
925
  size: 16
910
926
  }),
@@ -914,7 +930,7 @@ const Na = {
914
930
  class: "header__dropdown-item",
915
931
  onClick: Le
916
932
  }, [
917
- f(r(I), {
933
+ y(r(I), {
918
934
  name: "lock",
919
935
  size: 16
920
936
  }),
@@ -925,7 +941,7 @@ const Na = {
925
941
  class: "header__dropdown-item header__dropdown-item--danger",
926
942
  onClick: Me
927
943
  }, [
928
- f(r(I), {
944
+ y(r(I), {
929
945
  name: "logout",
930
946
  size: 16
931
947
  }),
@@ -939,7 +955,7 @@ const Na = {
939
955
  })
940
956
  ], 512)
941
957
  ]),
942
- f(r(st), {
958
+ y(r(ot), {
943
959
  modelValue: g.value,
944
960
  "onUpdate:modelValue": k[2] || (k[2] = (c) => g.value = c),
945
961
  title: "换肤设置",
@@ -947,26 +963,26 @@ const Na = {
947
963
  size: "320px"
948
964
  }, {
949
965
  default: E(() => [
950
- e("div", Ms, [
951
- e("div", Is, [
966
+ e("div", Is, [
967
+ e("div", Ss, [
952
968
  k[11] || (k[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
953
- e("div", Ss, [
954
- (l(), u(F, null, j(V, (c) => e("div", {
969
+ e("div", Es, [
970
+ (l(), u(j, null, W(B, (c) => e("div", {
955
971
  key: c.value,
956
- class: K(["layout-option", { "is-active": H.value === c.value }]),
972
+ class: q(["layout-option", { "is-active": G.value === c.value }]),
957
973
  onClick: (w) => re(c.value)
958
974
  }, [
959
- e("div", Ts, [
960
- c.value === "sidebar" ? (l(), u("div", Ns, [...k[8] || (k[8] = [
975
+ e("div", Ns, [
976
+ c.value === "sidebar" ? (l(), u("div", Us, [...k[8] || (k[8] = [
961
977
  e("div", { class: "preview-aside" }, null, -1),
962
978
  e("div", { class: "preview-main" }, [
963
979
  e("div", { class: "preview-header" }),
964
980
  e("div", { class: "preview-content" })
965
981
  ], -1)
966
- ])])) : c.value === "top" ? (l(), u("div", Us, [...k[9] || (k[9] = [
982
+ ])])) : c.value === "top" ? (l(), u("div", zs, [...k[9] || (k[9] = [
967
983
  e("div", { class: "preview-header-full" }, null, -1),
968
984
  e("div", { class: "preview-content-full" }, null, -1)
969
- ])])) : (l(), u("div", zs, [...k[10] || (k[10] = [
985
+ ])])) : (l(), u("div", Ds, [...k[10] || (k[10] = [
970
986
  e("div", { class: "preview-header-mix" }, [
971
987
  e("div", { class: "preview-mix-left" })
972
988
  ], -1),
@@ -976,45 +992,45 @@ const Na = {
976
992
  ], -1)
977
993
  ])]))
978
994
  ]),
979
- e("span", Ds, C(c.label), 1)
980
- ], 10, Es)), 64))
995
+ e("span", Rs, $(c.label), 1)
996
+ ], 10, Ts)), 64))
981
997
  ])
982
998
  ]),
983
- e("div", Rs, [
999
+ e("div", Ps, [
984
1000
  k[12] || (k[12] = e("div", { class: "settings-title" }, "主题色", -1)),
985
- e("div", Ps, [
986
- (l(), u(F, null, j(N, (c) => e("div", {
1001
+ e("div", As, [
1002
+ (l(), u(j, null, W(z, (c) => e("div", {
987
1003
  key: c.value,
988
- class: K(["color-option", { "is-active": r(i).primaryColor === c.value }]),
1004
+ class: q(["color-option", { "is-active": r(i).primaryColor === c.value }]),
989
1005
  style: Ee({ backgroundColor: c.value }),
990
1006
  title: c.label,
991
1007
  onClick: (w) => Ce(c.value)
992
1008
  }, [
993
- r(i).primaryColor === c.value ? (l(), A(r(I), {
1009
+ r(i).primaryColor === c.value ? (l(), V(r(I), {
994
1010
  key: 0,
995
1011
  name: "check",
996
1012
  size: 12,
997
1013
  color: "#fff"
998
1014
  })) : U("", !0)
999
- ], 14, As)), 64))
1015
+ ], 14, Os)), 64))
1000
1016
  ])
1001
1017
  ]),
1002
- e("div", Os, [
1018
+ e("div", Vs, [
1003
1019
  k[17] || (k[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
1004
- e("div", Vs, [
1005
- e("div", Fs, [
1020
+ e("div", Fs, [
1021
+ e("div", Bs, [
1006
1022
  k[14] || (k[14] = e("span", null, "灰色模式", -1)),
1007
1023
  e("div", {
1008
- class: K(["switch-wrapper", { "is-checked": D.value }]),
1009
- onClick: G
1024
+ class: q(["switch-wrapper", { "is-checked": R.value }]),
1025
+ onClick: J
1010
1026
  }, [...k[13] || (k[13] = [
1011
1027
  e("span", { class: "switch-core" }, null, -1)
1012
1028
  ])], 2)
1013
1029
  ]),
1014
- e("div", Bs, [
1030
+ e("div", Ks, [
1015
1031
  k[16] || (k[16] = e("span", null, "暗黑模式", -1)),
1016
1032
  e("div", {
1017
- class: K(["switch-wrapper", { "is-checked": r(i).isDark }]),
1033
+ class: q(["switch-wrapper", { "is-checked": r(i).isDark }]),
1018
1034
  onClick: ce
1019
1035
  }, [...k[15] || (k[15] = [
1020
1036
  e("span", { class: "switch-core" }, null, -1)
@@ -1029,64 +1045,64 @@ const Na = {
1029
1045
  ]);
1030
1046
  };
1031
1047
  }
1032
- }), js = /* @__PURE__ */ Z(Ks, [["__scopeId", "data-v-89179947"]]), qs = { class: "top-menu" }, Ws = { class: "top-menu__logo" }, Ys = { class: "top-menu__logo-text" }, Xs = { class: "top-menu__menu-content" }, Hs = {
1048
+ }), qs = /* @__PURE__ */ ee(js, [["__scopeId", "data-v-89179947"]]), Ws = { class: "top-menu" }, Ys = { class: "top-menu__logo" }, Xs = { class: "top-menu__logo-text" }, Hs = { class: "top-menu__menu-content" }, Gs = {
1033
1049
  key: 0,
1034
1050
  class: "top-menu__menu-icon"
1035
- }, Gs = {
1051
+ }, Js = {
1036
1052
  key: 1,
1037
1053
  class: "top-menu__menu-char"
1038
- }, Js = { class: "top-menu__menu-text" }, Qs = { class: "top-menu__menu-content" }, Zs = { class: "top-menu__menu-icon" }, eo = {
1054
+ }, Qs = { class: "top-menu__menu-text" }, Zs = { class: "top-menu__menu-content" }, eo = { class: "top-menu__menu-icon" }, to = {
1039
1055
  key: 1,
1040
1056
  class: "top-menu__menu-char"
1041
- }, to = { class: "top-menu__menu-text" }, so = { class: "top-menu__menu-content" }, oo = {
1057
+ }, so = { class: "top-menu__menu-text" }, oo = { class: "top-menu__menu-content" }, no = {
1042
1058
  key: 0,
1043
1059
  class: "top-menu__menu-icon"
1044
- }, no = {
1060
+ }, ao = {
1045
1061
  key: 1,
1046
1062
  class: "top-menu__menu-char"
1047
- }, ao = { class: "top-menu__menu-text" }, lo = { class: "top-menu__actions" }, ro = {
1063
+ }, lo = { class: "top-menu__menu-text" }, ro = { class: "top-menu__actions" }, io = {
1048
1064
  key: 0,
1049
1065
  class: "top-menu__search-dropdown"
1050
- }, io = {
1066
+ }, uo = {
1051
1067
  key: 0,
1052
1068
  class: "top-menu__search-results"
1053
- }, uo = ["onClick"], co = {
1069
+ }, co = ["onClick"], mo = {
1054
1070
  key: 0,
1055
1071
  class: "top-menu__search-icon-item"
1056
- }, mo = {
1072
+ }, po = {
1057
1073
  key: 1,
1058
1074
  class: "top-menu__search-char"
1059
- }, po = { class: "top-menu__search-item-title" }, ho = {
1075
+ }, ho = { class: "top-menu__search-item-title" }, vo = {
1060
1076
  key: 1,
1061
1077
  class: "top-menu__search-item-parent"
1062
- }, vo = {
1078
+ }, _o = {
1063
1079
  key: 1,
1064
1080
  class: "top-menu__search-empty"
1065
- }, _o = ["title"], fo = { class: "top-menu__avatar" }, go = { class: "top-menu__user-name" }, yo = {
1081
+ }, fo = ["title"], go = { class: "top-menu__avatar" }, yo = { class: "top-menu__user-name" }, ko = {
1066
1082
  key: 0,
1067
1083
  class: "top-menu__dropdown"
1068
- }, ko = { class: "top-menu__dropdown-header" }, wo = { class: "top-menu__dropdown-avatar" }, bo = { class: "top-menu__dropdown-info" }, xo = { class: "top-menu__dropdown-name" }, Co = { class: "top-menu__dropdown-role" }, $o = { class: "top-menu__dropdown-menu" }, Lo = { class: "settings-drawer" }, Mo = { class: "settings-section" }, Io = { class: "settings-layout-options" }, So = ["onClick"], Eo = { class: "layout-option__preview" }, To = {
1084
+ }, wo = { class: "top-menu__dropdown-header" }, bo = { class: "top-menu__dropdown-avatar" }, xo = { class: "top-menu__dropdown-info" }, Co = { class: "top-menu__dropdown-name" }, $o = { class: "top-menu__dropdown-role" }, Lo = { class: "top-menu__dropdown-menu" }, Mo = { class: "settings-drawer" }, Io = { class: "settings-section" }, So = { class: "settings-layout-options" }, Eo = ["onClick"], To = { class: "layout-option__preview" }, No = {
1069
1085
  key: 0,
1070
1086
  class: "layout-preview-sidebar"
1071
- }, No = {
1087
+ }, Uo = {
1072
1088
  key: 1,
1073
1089
  class: "layout-preview-top"
1074
- }, Uo = {
1090
+ }, zo = {
1075
1091
  key: 2,
1076
1092
  class: "layout-preview-mix"
1077
- }, zo = { class: "layout-option__label" }, Do = { class: "settings-section" }, Ro = { class: "settings-color-options" }, Po = ["title", "onClick"], Ao = { class: "settings-section" }, Oo = { class: "settings-switch-list" }, Vo = { class: "settings-switch-item" }, Fo = { class: "settings-switch-item" }, Bo = /* @__PURE__ */ ae({
1093
+ }, Do = { class: "layout-option__label" }, Ro = { class: "settings-section" }, Po = { class: "settings-color-options" }, Ao = ["title", "onClick"], Oo = { class: "settings-section" }, Vo = { class: "settings-switch-list" }, Fo = { class: "settings-switch-item" }, Bo = { class: "settings-switch-item" }, Ko = /* @__PURE__ */ le({
1078
1094
  __name: "TopMenu",
1079
1095
  setup(t) {
1080
- const s = we(), o = de(), i = ve(), a = me(), m = Q(), M = Te(), d = b(() => s.path), g = (c, w = "") => {
1081
- const J = [];
1096
+ const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = b(() => s.path), g = (c, w = "") => {
1097
+ const Q = [];
1082
1098
  return c.forEach((n) => {
1083
- n.children && n.children.length > 0 ? J.push(...g(n.children, n.menuName)) : J.push({ ...n, parentTitle: w, title: n.menuName, path: n.menuUrl });
1084
- }), J;
1085
- }, p = b(() => W.value.trim() ? g(i.menuList).filter(
1086
- (w) => w.title.toLowerCase().includes(W.value.toLowerCase())
1087
- ) : []), v = b(() => a.isDark ? "#1d1e1f" : "#fff"), y = b(() => a.isDark ? "#cfd3dc" : "#303133"), $ = b(() => "#409eff"), O = _(!1), D = _(null), V = _(!1), N = _(!1), z = _(!1), q = _(!1), W = _(""), B = _(null), ee = (c) => {
1099
+ n.children && n.children.length > 0 ? Q.push(...g(n.children, n.menuName)) : Q.push({ ...n, parentTitle: w, title: n.menuName, path: n.menuUrl });
1100
+ }), Q;
1101
+ }, p = b(() => D.value.trim() ? g(i.menuList).filter(
1102
+ (w) => w.title.toLowerCase().includes(D.value.toLowerCase())
1103
+ ) : []), _ = b(() => a.isDark ? "#1d1e1f" : "#fff"), v = b(() => a.isDark ? "#cfd3dc" : "#303133"), L = b(() => "#409eff"), F = f(!1), R = f(null), B = f(!1), z = f(!1), P = f(!1), Y = f(!1), D = f(""), N = f(null), K = (c) => {
1088
1104
  c && c !== s.path && o.push(c);
1089
- }, le = /* @__PURE__ */ new Set([
1105
+ }, te = /* @__PURE__ */ new Set([
1090
1106
  "arrow-up",
1091
1107
  "arrow-down",
1092
1108
  "arrow-left",
@@ -1188,10 +1204,10 @@ const Na = {
1188
1204
  "sun",
1189
1205
  "theme",
1190
1206
  "skin"
1191
- ]), P = (c) => {
1207
+ ]), A = (c) => {
1192
1208
  if (!c || c === "") return "";
1193
1209
  if (c.startsWith("tineco-icon-")) {
1194
- const J = c.replace("tineco-icon-", "");
1210
+ const Q = c.replace("tineco-icon-", "");
1195
1211
  return {
1196
1212
  home: "home",
1197
1213
  dashboard: "dashboard",
@@ -1205,7 +1221,7 @@ const Na = {
1205
1221
  chart: "chart",
1206
1222
  report: "report",
1207
1223
  analytics: "analytics"
1208
- }[J] || J;
1224
+ }[Q] || Q;
1209
1225
  }
1210
1226
  return {
1211
1227
  dashboard: "dashboard",
@@ -1225,36 +1241,36 @@ const Na = {
1225
1241
  list: "list",
1226
1242
  grid: "grid"
1227
1243
  }[c] || c;
1228
- }, H = (c) => c ? c.charAt(0) : "", te = (c) => le.has(c), se = () => {
1229
- a.toggleTheme(), N.value = !1;
1244
+ }, G = (c) => c ? c.charAt(0) : "", se = (c) => te.has(c), oe = () => {
1245
+ a.toggleTheme(), z.value = !1;
1230
1246
  }, ue = () => {
1231
1247
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1232
1248
  }, re = () => {
1233
- V.value = !!document.fullscreenElement;
1249
+ B.value = !!document.fullscreenElement;
1234
1250
  }, T = () => {
1235
- O.value = !O.value;
1236
- }, G = () => {
1237
- O.value = !1;
1251
+ F.value = !F.value;
1252
+ }, J = () => {
1253
+ F.value = !1;
1238
1254
  }, ce = () => {
1239
- q.value = !1, W.value = "";
1255
+ Y.value = !1, D.value = "";
1240
1256
  }, be = (c) => {
1241
1257
  o.push(c), ce();
1242
- }, oe = () => {
1243
- N.value = !0;
1258
+ }, ne = () => {
1259
+ z.value = !0;
1244
1260
  }, pe = (c) => {
1245
- z.value = c;
1261
+ P.value = c;
1246
1262
  const w = document.documentElement;
1247
1263
  c ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
1248
1264
  }, ie = () => {
1249
- pe(!z.value), N.value = !1;
1265
+ pe(!P.value), z.value = !1;
1250
1266
  }, he = () => {
1251
- a.toggleTheme(), N.value = !1;
1267
+ a.toggleTheme(), z.value = !1;
1252
1268
  }, xe = [
1253
1269
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1254
1270
  { value: "top", label: "顶部菜单", icon: "menu" },
1255
1271
  { value: "mix", label: "混合菜单", icon: "grid" }
1256
1272
  ], Ce = b(() => a.layout), $e = (c) => {
1257
- a.setLayout(c), N.value = !1;
1273
+ a.setLayout(c), z.value = !1;
1258
1274
  }, Le = [
1259
1275
  { value: "#409eff", label: "默认蓝" },
1260
1276
  { value: "#1890ff", label: "科技蓝" },
@@ -1263,97 +1279,97 @@ const Na = {
1263
1279
  { value: "#f5222d", label: "薄暮红" },
1264
1280
  { value: "#722ed1", label: "酱紫" }
1265
1281
  ], Me = (c) => {
1266
- a.setPrimaryColor(c), N.value = !1;
1282
+ a.setPrimaryColor(c), z.value = !1;
1267
1283
  }, _e = () => {
1268
- G(), o.push("/profile");
1284
+ J(), o.push("/profile");
1269
1285
  }, fe = () => {
1270
- G(), o.push("/change-password");
1286
+ J(), o.push("/change-password");
1271
1287
  }, S = () => {
1272
- G(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1288
+ J(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1273
1289
  }, k = (c) => {
1274
- D.value && !D.value.contains(c.target) && G(), B.value && !B.value.contains(c.target) && ce();
1275
- }, Y = (c) => {
1276
- c.key === "Escape" && (ce(), G());
1290
+ R.value && !R.value.contains(c.target) && J(), N.value && !N.value.contains(c.target) && ce();
1291
+ }, X = (c) => {
1292
+ c.key === "Escape" && (ce(), J());
1277
1293
  };
1278
- return He(() => {
1279
- document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown", Y), z.value = document.documentElement.classList.contains("grey-mode");
1280
- }), Ge(() => {
1281
- document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown", Y);
1294
+ return Ve(() => {
1295
+ document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown", X), P.value = document.documentElement.classList.contains("grey-mode");
1296
+ }), Je(() => {
1297
+ document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown", X);
1282
1298
  }), (c, w) => {
1283
- var J;
1284
- return l(), u("div", qs, [
1285
- e("div", Ws, [
1299
+ var Q;
1300
+ return l(), u("div", Ws, [
1301
+ e("div", Ys, [
1286
1302
  w[3] || (w[3] = e("img", {
1287
- src: je,
1303
+ src: We,
1288
1304
  alt: "Logo",
1289
1305
  class: "top-menu__logo-img"
1290
1306
  }, null, -1)),
1291
- e("span", Ys, C(r(a).appName), 1)
1307
+ e("span", Xs, $(r(a).appName), 1)
1292
1308
  ]),
1293
- f(r(tt), {
1309
+ y(r(st), {
1294
1310
  "model-value": d.value,
1295
1311
  mode: "horizontal",
1296
- "background-color": v.value,
1297
- "text-color": y.value,
1298
- "active-text-color": $.value,
1312
+ "background-color": _.value,
1313
+ "text-color": v.value,
1314
+ "active-text-color": L.value,
1299
1315
  class: "top-menu__menu",
1300
- onSelect: ee
1316
+ onSelect: K
1301
1317
  }, {
1302
1318
  default: E(() => [
1303
- (l(!0), u(F, null, j(r(i).menuList, (n) => (l(), u(F, {
1319
+ (l(!0), u(j, null, W(r(i).menuList, (n) => (l(), u(j, {
1304
1320
  key: n.menuUrl
1305
1321
  }, [
1306
- n.children && n.children.length > 0 ? (l(), A(r(pt), {
1322
+ n.children && n.children.length > 0 ? (l(), V(r(ht), {
1307
1323
  key: 0,
1308
1324
  index: n.menuUrl
1309
1325
  }, {
1310
1326
  title: E(() => [
1311
- e("span", Xs, [
1312
- n.menuName !== "首页" ? (l(), u("span", Hs, [
1313
- te(P(n.icon)) ? (l(), A(r(I), {
1327
+ e("span", Hs, [
1328
+ n.menuName !== "首页" ? (l(), u("span", Gs, [
1329
+ se(A(n.icon)) ? (l(), V(r(I), {
1314
1330
  key: 0,
1315
- name: P(n.icon),
1331
+ name: A(n.icon),
1316
1332
  size: 16
1317
- }, null, 8, ["name"])) : (l(), u("span", Gs, C(H(n.menuName)), 1))
1333
+ }, null, 8, ["name"])) : (l(), u("span", Js, $(G(n.menuName)), 1))
1318
1334
  ])) : U("", !0),
1319
- e("span", Js, C(n.menuName), 1)
1335
+ e("span", Qs, $(n.menuName), 1)
1320
1336
  ])
1321
1337
  ]),
1322
1338
  default: E(() => [
1323
- (l(!0), u(F, null, j(n.children, (h) => (l(), A(r(De), {
1339
+ (l(!0), u(j, null, W(n.children, (h) => (l(), V(r(Re), {
1324
1340
  key: h.menuUrl,
1325
1341
  index: h.menuUrl
1326
1342
  }, {
1327
1343
  default: E(() => [
1328
- e("span", Qs, [
1329
- e("span", Zs, [
1330
- te(P(h.icon)) ? (l(), A(r(I), {
1344
+ e("span", Zs, [
1345
+ e("span", eo, [
1346
+ se(A(h.icon)) ? (l(), V(r(I), {
1331
1347
  key: 0,
1332
- name: P(h.icon),
1348
+ name: A(h.icon),
1333
1349
  size: 16
1334
- }, null, 8, ["name"])) : (l(), u("span", eo, C(H(h.menuName)), 1))
1350
+ }, null, 8, ["name"])) : (l(), u("span", to, $(G(h.menuName)), 1))
1335
1351
  ]),
1336
- e("span", to, C(h.menuName), 1)
1352
+ e("span", so, $(h.menuName), 1)
1337
1353
  ])
1338
1354
  ]),
1339
1355
  _: 2
1340
1356
  }, 1032, ["index"]))), 128))
1341
1357
  ]),
1342
1358
  _: 2
1343
- }, 1032, ["index"])) : (l(), A(r(De), {
1359
+ }, 1032, ["index"])) : (l(), V(r(Re), {
1344
1360
  key: 1,
1345
1361
  index: n.menuUrl
1346
1362
  }, {
1347
1363
  default: E(() => [
1348
- e("span", so, [
1349
- n.menuName !== "首页" ? (l(), u("span", oo, [
1350
- te(P(n.icon)) ? (l(), A(r(I), {
1364
+ e("span", oo, [
1365
+ n.menuName !== "首页" ? (l(), u("span", no, [
1366
+ se(A(n.icon)) ? (l(), V(r(I), {
1351
1367
  key: 0,
1352
- name: P(n.icon),
1368
+ name: A(n.icon),
1353
1369
  size: 16
1354
- }, null, 8, ["name"])) : (l(), u("span", no, C(H(n.menuName)), 1))
1370
+ }, null, 8, ["name"])) : (l(), u("span", ao, $(G(n.menuName)), 1))
1355
1371
  ])) : U("", !0),
1356
- e("span", ao, C(n.menuName), 1)
1372
+ e("span", lo, $(n.menuName), 1)
1357
1373
  ])
1358
1374
  ]),
1359
1375
  _: 2
@@ -1362,46 +1378,46 @@ const Na = {
1362
1378
  ]),
1363
1379
  _: 1
1364
1380
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1365
- e("div", lo, [
1381
+ e("div", ro, [
1366
1382
  e("div", {
1367
1383
  class: "top-menu__search",
1368
1384
  ref_key: "searchRef",
1369
- ref: B
1385
+ ref: N
1370
1386
  }, [
1371
- f(r(I), {
1387
+ y(r(I), {
1372
1388
  name: "search",
1373
1389
  size: 14,
1374
1390
  class: "top-menu__search-icon"
1375
1391
  }),
1376
- Oe(e("input", {
1377
- "onUpdate:modelValue": w[0] || (w[0] = (n) => W.value = n),
1392
+ Fe(e("input", {
1393
+ "onUpdate:modelValue": w[0] || (w[0] = (n) => D.value = n),
1378
1394
  type: "text",
1379
1395
  class: "top-menu__search-input",
1380
1396
  placeholder: "搜索菜单...",
1381
- onFocus: w[1] || (w[1] = (n) => q.value = !0)
1397
+ onFocus: w[1] || (w[1] = (n) => Y.value = !0)
1382
1398
  }, null, 544), [
1383
- [Je, W.value]
1399
+ [Qe, D.value]
1384
1400
  ]),
1385
- f(ke, { name: "search-dropdown" }, {
1401
+ y(ke, { name: "search-dropdown" }, {
1386
1402
  default: E(() => [
1387
- q.value && (p.value.length > 0 || W.value) ? (l(), u("div", ro, [
1388
- p.value.length > 0 ? (l(), u("div", io, [
1389
- (l(!0), u(F, null, j(p.value, (n) => (l(), u("div", {
1403
+ Y.value && (p.value.length > 0 || D.value) ? (l(), u("div", io, [
1404
+ p.value.length > 0 ? (l(), u("div", uo, [
1405
+ (l(!0), u(j, null, W(p.value, (n) => (l(), u("div", {
1390
1406
  key: n.path,
1391
1407
  class: "top-menu__search-item",
1392
1408
  onClick: (h) => be(n.path)
1393
1409
  }, [
1394
- n.title !== "首页" ? (l(), u("span", co, [
1395
- te(P(n.icon)) ? (l(), A(r(I), {
1410
+ n.title !== "首页" ? (l(), u("span", mo, [
1411
+ se(A(n.icon)) ? (l(), V(r(I), {
1396
1412
  key: 0,
1397
- name: P(n.icon),
1413
+ name: A(n.icon),
1398
1414
  size: 16
1399
- }, null, 8, ["name"])) : (l(), u("span", mo, C(H(n.title)), 1))
1415
+ }, null, 8, ["name"])) : (l(), u("span", po, $(G(n.title)), 1))
1400
1416
  ])) : U("", !0),
1401
- e("span", po, C(n.title), 1),
1402
- n.parentTitle ? (l(), u("span", ho, C(n.parentTitle), 1)) : U("", !0)
1403
- ], 8, uo))), 128))
1404
- ])) : (l(), u("div", vo, " 未找到匹配的菜单 "))
1417
+ e("span", ho, $(n.title), 1),
1418
+ n.parentTitle ? (l(), u("span", vo, $(n.parentTitle), 1)) : U("", !0)
1419
+ ], 8, co))), 128))
1420
+ ])) : (l(), u("div", _o, " 未找到匹配的菜单 "))
1405
1421
  ])) : U("", !0)
1406
1422
  ]),
1407
1423
  _: 1
@@ -1410,29 +1426,29 @@ const Na = {
1410
1426
  e("div", {
1411
1427
  class: "top-menu__action",
1412
1428
  onClick: ue,
1413
- title: V.value ? "退出全屏" : "全屏"
1429
+ title: B.value ? "退出全屏" : "全屏"
1414
1430
  }, [
1415
- f(r(I), {
1416
- name: V.value ? "fullscreen-exit" : "fullscreen",
1431
+ y(r(I), {
1432
+ name: B.value ? "fullscreen-exit" : "fullscreen",
1417
1433
  size: 16
1418
1434
  }, null, 8, ["name"])
1419
- ], 8, _o),
1435
+ ], 8, fo),
1420
1436
  e("div", {
1421
1437
  class: "top-menu__action",
1422
- onClick: oe,
1438
+ onClick: ne,
1423
1439
  title: "换肤设置"
1424
1440
  }, [
1425
- f(r(I), {
1441
+ y(r(I), {
1426
1442
  name: "skin",
1427
1443
  size: 16
1428
1444
  })
1429
1445
  ]),
1430
1446
  e("div", {
1431
1447
  class: "top-menu__action",
1432
- onClick: se,
1448
+ onClick: oe,
1433
1449
  title: "切换主题"
1434
1450
  }, [
1435
- f(r(I), {
1451
+ y(r(I), {
1436
1452
  name: r(a).isDark ? "sun" : "moon",
1437
1453
  size: 16
1438
1454
  }, null, 8, ["name"])
@@ -1440,41 +1456,41 @@ const Na = {
1440
1456
  e("div", {
1441
1457
  class: "top-menu__user",
1442
1458
  ref_key: "dropdownRef",
1443
- ref: D
1459
+ ref: R
1444
1460
  }, [
1445
1461
  e("div", {
1446
1462
  class: "top-menu__user-trigger",
1447
- onClick: Ve(T, ["stop"])
1463
+ onClick: Be(T, ["stop"])
1448
1464
  }, [
1449
- e("div", fo, [
1450
- e("span", null, C(((J = r(m).userName) == null ? void 0 : J.charAt(0)) || "U"), 1)
1465
+ e("div", go, [
1466
+ e("span", null, $(((Q = r(m).userName) == null ? void 0 : Q.charAt(0)) || "U"), 1)
1451
1467
  ]),
1452
- e("span", go, C(r(m).userName), 1),
1468
+ e("span", yo, $(r(m).userName), 1),
1453
1469
  e("span", {
1454
- class: K(["top-menu__user-arrow", { "is-active": O.value }])
1470
+ class: q(["top-menu__user-arrow", { "is-active": F.value }])
1455
1471
  }, "▼", 2)
1456
1472
  ]),
1457
- f(ke, { name: "dropdown" }, {
1473
+ y(ke, { name: "dropdown" }, {
1458
1474
  default: E(() => {
1459
1475
  var n;
1460
1476
  return [
1461
- O.value ? (l(), u("div", yo, [
1462
- e("div", ko, [
1463
- e("div", wo, [
1464
- e("span", null, C(((n = r(m).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
1465
- ]),
1477
+ F.value ? (l(), u("div", ko, [
1478
+ e("div", wo, [
1466
1479
  e("div", bo, [
1467
- e("div", xo, C(r(m).userName), 1),
1468
- e("div", Co, C(r(m).departmentName), 1)
1480
+ e("span", null, $(((n = r(m).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
1481
+ ]),
1482
+ e("div", xo, [
1483
+ e("div", Co, $(r(m).userName), 1),
1484
+ e("div", $o, $(r(m).departmentName), 1)
1469
1485
  ])
1470
1486
  ]),
1471
1487
  w[8] || (w[8] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1472
- e("div", $o, [
1488
+ e("div", Lo, [
1473
1489
  e("div", {
1474
1490
  class: "top-menu__dropdown-item",
1475
1491
  onClick: _e
1476
1492
  }, [
1477
- f(r(I), {
1493
+ y(r(I), {
1478
1494
  name: "user",
1479
1495
  size: 16
1480
1496
  }),
@@ -1484,7 +1500,7 @@ const Na = {
1484
1500
  class: "top-menu__dropdown-item",
1485
1501
  onClick: fe
1486
1502
  }, [
1487
- f(r(I), {
1503
+ y(r(I), {
1488
1504
  name: "lock",
1489
1505
  size: 16
1490
1506
  }),
@@ -1495,7 +1511,7 @@ const Na = {
1495
1511
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1496
1512
  onClick: S
1497
1513
  }, [
1498
- f(r(I), {
1514
+ y(r(I), {
1499
1515
  name: "logout",
1500
1516
  size: 16
1501
1517
  }),
@@ -1509,34 +1525,34 @@ const Na = {
1509
1525
  })
1510
1526
  ], 512)
1511
1527
  ]),
1512
- f(r(st), {
1513
- modelValue: N.value,
1514
- "onUpdate:modelValue": w[2] || (w[2] = (n) => N.value = n),
1528
+ y(r(ot), {
1529
+ modelValue: z.value,
1530
+ "onUpdate:modelValue": w[2] || (w[2] = (n) => z.value = n),
1515
1531
  title: "换肤设置",
1516
1532
  direction: "rtl",
1517
1533
  size: "320px"
1518
1534
  }, {
1519
1535
  default: E(() => [
1520
- e("div", Lo, [
1521
- e("div", Mo, [
1536
+ e("div", Mo, [
1537
+ e("div", Io, [
1522
1538
  w[12] || (w[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
1523
- e("div", Io, [
1524
- (l(), u(F, null, j(xe, (n) => e("div", {
1539
+ e("div", So, [
1540
+ (l(), u(j, null, W(xe, (n) => e("div", {
1525
1541
  key: n.value,
1526
- class: K(["layout-option", { "is-active": Ce.value === n.value }]),
1542
+ class: q(["layout-option", { "is-active": Ce.value === n.value }]),
1527
1543
  onClick: (h) => $e(n.value)
1528
1544
  }, [
1529
- e("div", Eo, [
1530
- n.value === "sidebar" ? (l(), u("div", To, [...w[9] || (w[9] = [
1545
+ e("div", To, [
1546
+ n.value === "sidebar" ? (l(), u("div", No, [...w[9] || (w[9] = [
1531
1547
  e("div", { class: "preview-aside" }, null, -1),
1532
1548
  e("div", { class: "preview-main" }, [
1533
1549
  e("div", { class: "preview-header" }),
1534
1550
  e("div", { class: "preview-content" })
1535
1551
  ], -1)
1536
- ])])) : n.value === "top" ? (l(), u("div", No, [...w[10] || (w[10] = [
1552
+ ])])) : n.value === "top" ? (l(), u("div", Uo, [...w[10] || (w[10] = [
1537
1553
  e("div", { class: "preview-header-full" }, null, -1),
1538
1554
  e("div", { class: "preview-content-full" }, null, -1)
1539
- ])])) : (l(), u("div", Uo, [...w[11] || (w[11] = [
1555
+ ])])) : (l(), u("div", zo, [...w[11] || (w[11] = [
1540
1556
  e("div", { class: "preview-header-mix" }, [
1541
1557
  e("div", { class: "preview-mix-left" })
1542
1558
  ], -1),
@@ -1546,45 +1562,45 @@ const Na = {
1546
1562
  ], -1)
1547
1563
  ])]))
1548
1564
  ]),
1549
- e("span", zo, C(n.label), 1)
1550
- ], 10, So)), 64))
1565
+ e("span", Do, $(n.label), 1)
1566
+ ], 10, Eo)), 64))
1551
1567
  ])
1552
1568
  ]),
1553
- e("div", Do, [
1569
+ e("div", Ro, [
1554
1570
  w[13] || (w[13] = e("div", { class: "settings-title" }, "主题色", -1)),
1555
- e("div", Ro, [
1556
- (l(), u(F, null, j(Le, (n) => e("div", {
1571
+ e("div", Po, [
1572
+ (l(), u(j, null, W(Le, (n) => e("div", {
1557
1573
  key: n.value,
1558
- class: K(["color-option", { "is-active": r(a).primaryColor === n.value }]),
1574
+ class: q(["color-option", { "is-active": r(a).primaryColor === n.value }]),
1559
1575
  style: Ee({ backgroundColor: n.value }),
1560
1576
  title: n.label,
1561
1577
  onClick: (h) => Me(n.value)
1562
1578
  }, [
1563
- r(a).primaryColor === n.value ? (l(), A(r(I), {
1579
+ r(a).primaryColor === n.value ? (l(), V(r(I), {
1564
1580
  key: 0,
1565
1581
  name: "check",
1566
1582
  size: 12,
1567
1583
  color: "#fff"
1568
1584
  })) : U("", !0)
1569
- ], 14, Po)), 64))
1585
+ ], 14, Ao)), 64))
1570
1586
  ])
1571
1587
  ]),
1572
- e("div", Ao, [
1588
+ e("div", Oo, [
1573
1589
  w[18] || (w[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
1574
- e("div", Oo, [
1575
- e("div", Vo, [
1590
+ e("div", Vo, [
1591
+ e("div", Fo, [
1576
1592
  w[15] || (w[15] = e("span", null, "灰色模式", -1)),
1577
1593
  e("div", {
1578
- class: K(["switch-wrapper", { "is-checked": z.value }]),
1594
+ class: q(["switch-wrapper", { "is-checked": P.value }]),
1579
1595
  onClick: ie
1580
1596
  }, [...w[14] || (w[14] = [
1581
1597
  e("span", { class: "switch-core" }, null, -1)
1582
1598
  ])], 2)
1583
1599
  ]),
1584
- e("div", Fo, [
1600
+ e("div", Bo, [
1585
1601
  w[17] || (w[17] = e("span", null, "暗黑模式", -1)),
1586
1602
  e("div", {
1587
- class: K(["switch-wrapper", { "is-checked": r(a).isDark }]),
1603
+ class: q(["switch-wrapper", { "is-checked": r(a).isDark }]),
1588
1604
  onClick: he
1589
1605
  }, [...w[16] || (w[16] = [
1590
1606
  e("span", { class: "switch-core" }, null, -1)
@@ -1599,73 +1615,73 @@ const Na = {
1599
1615
  ]);
1600
1616
  };
1601
1617
  }
1602
- }), Ko = /* @__PURE__ */ Z(Bo, [["__scopeId", "data-v-ff5f8764"]]), jo = { class: "mix-top-menu" }, qo = { class: "mix-top-menu__logo" }, Wo = { class: "mix-top-menu__logo-text" }, Yo = { class: "mix-top-menu__menu-content" }, Xo = {
1618
+ }), jo = /* @__PURE__ */ ee(Ko, [["__scopeId", "data-v-ff5f8764"]]), qo = { class: "mix-top-menu" }, Wo = { class: "mix-top-menu__logo" }, Yo = { class: "mix-top-menu__logo-text" }, Xo = { class: "mix-top-menu__menu-content" }, Ho = {
1603
1619
  key: 0,
1604
1620
  class: "mix-top-menu__menu-icon"
1605
- }, Ho = {
1621
+ }, Go = {
1606
1622
  key: 1,
1607
1623
  class: "mix-top-menu__menu-char"
1608
- }, Go = { class: "mix-top-menu__menu-text" }, Jo = { class: "mix-top-menu__actions" }, Qo = {
1624
+ }, Jo = { class: "mix-top-menu__menu-text" }, Qo = { class: "mix-top-menu__actions" }, Zo = {
1609
1625
  key: 0,
1610
1626
  class: "mix-top-menu__search-dropdown"
1611
- }, Zo = {
1627
+ }, en = {
1612
1628
  key: 0,
1613
1629
  class: "mix-top-menu__search-results"
1614
- }, en = ["onClick"], tn = {
1630
+ }, tn = ["onClick"], sn = {
1615
1631
  key: 0,
1616
1632
  class: "mix-top-menu__search-icon-item"
1617
- }, sn = {
1633
+ }, on = {
1618
1634
  key: 1,
1619
1635
  class: "mix-top-menu__search-char"
1620
- }, on = { class: "mix-top-menu__search-item-title" }, nn = {
1636
+ }, nn = { class: "mix-top-menu__search-item-title" }, an = {
1621
1637
  key: 1,
1622
1638
  class: "mix-top-menu__search-item-parent"
1623
- }, an = {
1639
+ }, ln = {
1624
1640
  key: 1,
1625
1641
  class: "mix-top-menu__search-empty"
1626
- }, ln = ["title"], rn = { class: "mix-top-menu__avatar" }, un = { class: "mix-top-menu__user-name" }, cn = {
1642
+ }, rn = ["title"], un = { class: "mix-top-menu__avatar" }, cn = { class: "mix-top-menu__user-name" }, dn = {
1627
1643
  key: 0,
1628
1644
  class: "mix-top-menu__dropdown"
1629
- }, dn = { class: "mix-top-menu__dropdown-header" }, mn = { class: "mix-top-menu__dropdown-avatar" }, pn = { class: "mix-top-menu__dropdown-info" }, hn = { class: "mix-top-menu__dropdown-name" }, vn = { class: "mix-top-menu__dropdown-role" }, _n = { class: "mix-top-menu__dropdown-menu" }, fn = { class: "settings-drawer" }, gn = { class: "settings-section" }, yn = { class: "settings-layout-options" }, kn = ["onClick"], wn = { class: "layout-option__preview" }, bn = {
1645
+ }, mn = { class: "mix-top-menu__dropdown-header" }, pn = { class: "mix-top-menu__dropdown-avatar" }, hn = { class: "mix-top-menu__dropdown-info" }, vn = { class: "mix-top-menu__dropdown-name" }, _n = { class: "mix-top-menu__dropdown-role" }, fn = { class: "mix-top-menu__dropdown-menu" }, gn = { class: "settings-drawer" }, yn = { class: "settings-section" }, kn = { class: "settings-layout-options" }, wn = ["onClick"], bn = { class: "layout-option__preview" }, xn = {
1630
1646
  key: 0,
1631
1647
  class: "layout-preview-sidebar"
1632
- }, xn = {
1648
+ }, Cn = {
1633
1649
  key: 1,
1634
1650
  class: "layout-preview-top"
1635
- }, Cn = {
1651
+ }, $n = {
1636
1652
  key: 2,
1637
1653
  class: "layout-preview-mix"
1638
- }, $n = { class: "layout-option__label" }, Ln = { class: "settings-section" }, Mn = { class: "settings-color-options" }, In = ["title", "onClick"], Sn = { class: "settings-section" }, En = { class: "settings-switch-list" }, Tn = { class: "settings-switch-item" }, Nn = { class: "settings-switch-item" }, Un = /* @__PURE__ */ ae({
1654
+ }, Ln = { class: "layout-option__label" }, Mn = { class: "settings-section" }, In = { class: "settings-color-options" }, Sn = ["title", "onClick"], En = { class: "settings-section" }, Tn = { class: "settings-switch-list" }, Nn = { class: "settings-switch-item" }, Un = { class: "settings-switch-item" }, zn = /* @__PURE__ */ le({
1639
1655
  __name: "MixTopMenu",
1640
1656
  setup(t) {
1641
- const s = we(), o = de(), i = ve(), a = me(), m = Q(), M = Te(), d = _(""), g = (n, h = "") => {
1642
- const X = [];
1657
+ const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = f(""), g = (n, h = "") => {
1658
+ const H = [];
1643
1659
  return n.forEach((x) => {
1644
- x.children && x.children.length > 0 ? X.push(...g(x.children, x.menuName)) : X.push({ ...x, parentTitle: h, title: x.menuName, path: x.menuUrl });
1645
- }), X;
1646
- }, p = b(() => P.value.trim() ? g(i.menuList).filter(
1647
- (h) => h.title.toLowerCase().includes(P.value.toLowerCase())
1648
- ) : []), v = b(() => {
1660
+ x.children && x.children.length > 0 ? H.push(...g(x.children, x.menuName)) : H.push({ ...x, parentTitle: h, title: x.menuName, path: x.menuUrl });
1661
+ }), H;
1662
+ }, p = b(() => A.value.trim() ? g(i.menuList).filter(
1663
+ (h) => h.title.toLowerCase().includes(A.value.toLowerCase())
1664
+ ) : []), _ = b(() => {
1649
1665
  const n = i.menuList.find((h) => h.menuUrl === d.value);
1650
1666
  return (n == null ? void 0 : n.children) || [];
1651
- }), y = b(() => i.menuList.find((n) => !!(s.path === n.menuUrl || n.children && n.children.some((h) => s.path.startsWith(h.menuUrl) || s.path === h.menuUrl)))), $ = () => {
1652
- y.value ? d.value = y.value.menuUrl : i.menuList.length > 0 && (d.value = i.menuList[0].menuUrl);
1653
- }, O = (n) => {
1667
+ }), v = b(() => i.menuList.find((n) => !!(s.path === n.menuUrl || n.children && n.children.some((h) => s.path.startsWith(h.menuUrl) || s.path === h.menuUrl)))), L = () => {
1668
+ v.value ? d.value = v.value.menuUrl : i.menuList.length > 0 && (d.value = i.menuList[0].menuUrl);
1669
+ }, F = (n) => {
1654
1670
  d.value = n;
1655
- const h = i.menuList.find((X) => X.menuUrl === n);
1671
+ const h = i.menuList.find((H) => H.menuUrl === n);
1656
1672
  if (h)
1657
1673
  if (h.children && h.children.length > 0) {
1658
- const X = h.children[0].menuUrl;
1659
- s.path !== X && o.push(X);
1674
+ const H = h.children[0].menuUrl;
1675
+ s.path !== H && o.push(H);
1660
1676
  } else
1661
1677
  s.path !== n && o.push(n);
1662
- }, D = b(() => a.isDark ? "#1d1e1f" : "#fff"), V = b(() => a.isDark ? "#cfd3dc" : "#303133"), N = b(() => "#409eff"), z = _(!1), q = _(null), W = _(!1), B = _(!1), ee = _(!1), le = _(!1), P = _(""), H = _(null);
1663
- Xe(() => s.path, () => {
1664
- $(), a.setMixSubMenus(v.value);
1665
- }), Xe(() => i.menuList, (n) => {
1666
- n && n.length > 0 && ($(), a.setMixSubMenus(v.value));
1678
+ }, R = b(() => a.isDark ? "#1d1e1f" : "#fff"), B = b(() => a.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = f(!1), Y = f(null), D = f(!1), N = f(!1), K = f(!1), te = f(!1), A = f(""), G = f(null);
1679
+ Ge(() => s.path, () => {
1680
+ L(), a.setMixSubMenus(_.value);
1681
+ }), Ge(() => i.menuList, (n) => {
1682
+ n && n.length > 0 && (L(), a.setMixSubMenus(_.value));
1667
1683
  }, { immediate: !0 });
1668
- const te = /* @__PURE__ */ new Set([
1684
+ const se = /* @__PURE__ */ new Set([
1669
1685
  "arrow-up",
1670
1686
  "arrow-down",
1671
1687
  "arrow-left",
@@ -1767,10 +1783,10 @@ const Na = {
1767
1783
  "sun",
1768
1784
  "theme",
1769
1785
  "skin"
1770
- ]), se = (n) => {
1786
+ ]), oe = (n) => {
1771
1787
  if (!n || n === "") return "";
1772
1788
  if (n.startsWith("tineco-icon-")) {
1773
- const X = n.replace("tineco-icon-", "");
1789
+ const H = n.replace("tineco-icon-", "");
1774
1790
  return {
1775
1791
  home: "home",
1776
1792
  dashboard: "dashboard",
@@ -1784,7 +1800,7 @@ const Na = {
1784
1800
  chart: "chart",
1785
1801
  report: "report",
1786
1802
  analytics: "analytics"
1787
- }[X] || X;
1803
+ }[H] || H;
1788
1804
  }
1789
1805
  return {
1790
1806
  dashboard: "dashboard",
@@ -1804,36 +1820,36 @@ const Na = {
1804
1820
  list: "list",
1805
1821
  grid: "grid"
1806
1822
  }[n] || n;
1807
- }, ue = (n) => n ? n.charAt(0) : "", re = (n) => te.has(n), T = () => {
1808
- a.toggleTheme(), B.value = !1;
1809
- }, G = () => {
1823
+ }, ue = (n) => n ? n.charAt(0) : "", re = (n) => se.has(n), T = () => {
1824
+ a.toggleTheme(), N.value = !1;
1825
+ }, J = () => {
1810
1826
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1811
1827
  }, ce = () => {
1812
- W.value = !!document.fullscreenElement;
1828
+ D.value = !!document.fullscreenElement;
1813
1829
  }, be = () => {
1814
- z.value = !z.value;
1815
- }, oe = () => {
1816
- z.value = !1;
1830
+ P.value = !P.value;
1831
+ }, ne = () => {
1832
+ P.value = !1;
1817
1833
  }, pe = () => {
1818
- le.value = !1, P.value = "";
1834
+ te.value = !1, A.value = "";
1819
1835
  }, ie = (n) => {
1820
1836
  o.push(n), pe();
1821
1837
  }, he = () => {
1822
- B.value = !0;
1838
+ N.value = !0;
1823
1839
  }, xe = (n) => {
1824
- ee.value = n;
1840
+ K.value = n;
1825
1841
  const h = document.documentElement;
1826
1842
  n ? h.classList.add("grey-mode") : h.classList.remove("grey-mode");
1827
1843
  }, Ce = () => {
1828
- xe(!ee.value), B.value = !1;
1844
+ xe(!K.value), N.value = !1;
1829
1845
  }, $e = () => {
1830
- a.toggleTheme(), B.value = !1;
1846
+ a.toggleTheme(), N.value = !1;
1831
1847
  }, Le = [
1832
1848
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1833
1849
  { value: "top", label: "顶部菜单", icon: "menu" },
1834
1850
  { value: "mix", label: "混合菜单", icon: "grid" }
1835
1851
  ], Me = b(() => a.layout), _e = (n) => {
1836
- a.setLayout(n), B.value = !1;
1852
+ a.setLayout(n), N.value = !1;
1837
1853
  }, fe = [
1838
1854
  { value: "#409eff", label: "默认蓝" },
1839
1855
  { value: "#1890ff", label: "科技蓝" },
@@ -1842,57 +1858,57 @@ const Na = {
1842
1858
  { value: "#f5222d", label: "薄暮红" },
1843
1859
  { value: "#722ed1", label: "酱紫" }
1844
1860
  ], S = (n) => {
1845
- a.setPrimaryColor(n), B.value = !1;
1861
+ a.setPrimaryColor(n), N.value = !1;
1846
1862
  }, k = () => {
1847
- oe(), o.push("/profile");
1848
- }, Y = () => {
1849
- oe(), o.push("/change-password");
1863
+ ne(), o.push("/profile");
1864
+ }, X = () => {
1865
+ ne(), o.push("/change-password");
1850
1866
  }, c = () => {
1851
- oe(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1867
+ ne(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1852
1868
  }, w = (n) => {
1853
- q.value && !q.value.contains(n.target) && oe(), H.value && !H.value.contains(n.target) && pe();
1854
- }, J = (n) => {
1855
- n.key === "Escape" && (pe(), oe());
1869
+ Y.value && !Y.value.contains(n.target) && ne(), G.value && !G.value.contains(n.target) && pe();
1870
+ }, Q = (n) => {
1871
+ n.key === "Escape" && (pe(), ne());
1856
1872
  };
1857
- return He(() => {
1858
- document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown", J), ee.value = document.documentElement.classList.contains("grey-mode"), $();
1859
- }), Ge(() => {
1860
- document.removeEventListener("click", w), document.removeEventListener("fullscreenchange", ce), document.removeEventListener("keydown", J);
1873
+ return Ve(() => {
1874
+ document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown", Q), K.value = document.documentElement.classList.contains("grey-mode"), L();
1875
+ }), Je(() => {
1876
+ document.removeEventListener("click", w), document.removeEventListener("fullscreenchange", ce), document.removeEventListener("keydown", Q);
1861
1877
  }), (n, h) => {
1862
- var X;
1863
- return l(), u("div", jo, [
1864
- e("div", qo, [
1878
+ var H;
1879
+ return l(), u("div", qo, [
1880
+ e("div", Wo, [
1865
1881
  h[3] || (h[3] = e("img", {
1866
- src: je,
1882
+ src: We,
1867
1883
  alt: "Logo",
1868
1884
  class: "mix-top-menu__logo-img"
1869
1885
  }, null, -1)),
1870
- e("span", Wo, C(r(a).appName), 1)
1886
+ e("span", Yo, $(r(a).appName), 1)
1871
1887
  ]),
1872
- f(r(tt), {
1888
+ y(r(st), {
1873
1889
  "model-value": d.value,
1874
1890
  mode: "horizontal",
1875
- "background-color": D.value,
1876
- "text-color": V.value,
1877
- "active-text-color": N.value,
1891
+ "background-color": R.value,
1892
+ "text-color": B.value,
1893
+ "active-text-color": z.value,
1878
1894
  class: "mix-top-menu__menu",
1879
- onSelect: O
1895
+ onSelect: F
1880
1896
  }, {
1881
1897
  default: E(() => [
1882
- (l(!0), u(F, null, j(r(i).menuList, (x) => (l(), A(r(De), {
1898
+ (l(!0), u(j, null, W(r(i).menuList, (x) => (l(), V(r(Re), {
1883
1899
  key: x.menuUrl,
1884
1900
  index: x.menuUrl
1885
1901
  }, {
1886
1902
  default: E(() => [
1887
- e("span", Yo, [
1888
- x.menuName !== "首页" ? (l(), u("span", Xo, [
1889
- re(se(x.icon)) ? (l(), A(r(I), {
1903
+ e("span", Xo, [
1904
+ x.menuName !== "首页" ? (l(), u("span", Ho, [
1905
+ re(oe(x.icon)) ? (l(), V(r(I), {
1890
1906
  key: 0,
1891
- name: se(x.icon),
1907
+ name: oe(x.icon),
1892
1908
  size: 16
1893
- }, null, 8, ["name"])) : (l(), u("span", Ho, C(ue(x.menuName)), 1))
1909
+ }, null, 8, ["name"])) : (l(), u("span", Go, $(ue(x.menuName)), 1))
1894
1910
  ])) : U("", !0),
1895
- e("span", Go, C(x.menuName), 1)
1911
+ e("span", Jo, $(x.menuName), 1)
1896
1912
  ])
1897
1913
  ]),
1898
1914
  _: 2
@@ -1900,46 +1916,46 @@ const Na = {
1900
1916
  ]),
1901
1917
  _: 1
1902
1918
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1903
- e("div", Jo, [
1919
+ e("div", Qo, [
1904
1920
  e("div", {
1905
1921
  class: "mix-top-menu__search",
1906
1922
  ref_key: "searchRef",
1907
- ref: H
1923
+ ref: G
1908
1924
  }, [
1909
- f(r(I), {
1925
+ y(r(I), {
1910
1926
  name: "search",
1911
1927
  size: 14,
1912
1928
  class: "mix-top-menu__search-icon"
1913
1929
  }),
1914
- Oe(e("input", {
1915
- "onUpdate:modelValue": h[0] || (h[0] = (x) => P.value = x),
1930
+ Fe(e("input", {
1931
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => A.value = x),
1916
1932
  type: "text",
1917
1933
  class: "mix-top-menu__search-input",
1918
1934
  placeholder: "搜索菜单...",
1919
- onFocus: h[1] || (h[1] = (x) => le.value = !0)
1935
+ onFocus: h[1] || (h[1] = (x) => te.value = !0)
1920
1936
  }, null, 544), [
1921
- [Je, P.value]
1937
+ [Qe, A.value]
1922
1938
  ]),
1923
- f(ke, { name: "search-dropdown" }, {
1939
+ y(ke, { name: "search-dropdown" }, {
1924
1940
  default: E(() => [
1925
- le.value && (p.value.length > 0 || P.value) ? (l(), u("div", Qo, [
1926
- p.value.length > 0 ? (l(), u("div", Zo, [
1927
- (l(!0), u(F, null, j(p.value, (x) => (l(), u("div", {
1941
+ te.value && (p.value.length > 0 || A.value) ? (l(), u("div", Zo, [
1942
+ p.value.length > 0 ? (l(), u("div", en, [
1943
+ (l(!0), u(j, null, W(p.value, (x) => (l(), u("div", {
1928
1944
  key: x.path,
1929
1945
  class: "mix-top-menu__search-item",
1930
- onClick: (ut) => ie(x.path)
1946
+ onClick: (ct) => ie(x.path)
1931
1947
  }, [
1932
- x.title !== "首页" ? (l(), u("span", tn, [
1933
- re(se(x.icon)) ? (l(), A(r(I), {
1948
+ x.title !== "首页" ? (l(), u("span", sn, [
1949
+ re(oe(x.icon)) ? (l(), V(r(I), {
1934
1950
  key: 0,
1935
- name: se(x.icon),
1951
+ name: oe(x.icon),
1936
1952
  size: 16
1937
- }, null, 8, ["name"])) : (l(), u("span", sn, C(ue(x.title)), 1))
1953
+ }, null, 8, ["name"])) : (l(), u("span", on, $(ue(x.title)), 1))
1938
1954
  ])) : U("", !0),
1939
- e("span", on, C(x.title), 1),
1940
- x.parentTitle ? (l(), u("span", nn, C(x.parentTitle), 1)) : U("", !0)
1941
- ], 8, en))), 128))
1942
- ])) : (l(), u("div", an, " 未找到匹配的菜单 "))
1955
+ e("span", nn, $(x.title), 1),
1956
+ x.parentTitle ? (l(), u("span", an, $(x.parentTitle), 1)) : U("", !0)
1957
+ ], 8, tn))), 128))
1958
+ ])) : (l(), u("div", ln, " 未找到匹配的菜单 "))
1943
1959
  ])) : U("", !0)
1944
1960
  ]),
1945
1961
  _: 1
@@ -1947,20 +1963,20 @@ const Na = {
1947
1963
  ], 512),
1948
1964
  e("div", {
1949
1965
  class: "mix-top-menu__action",
1950
- onClick: G,
1951
- title: W.value ? "退出全屏" : "全屏"
1966
+ onClick: J,
1967
+ title: D.value ? "退出全屏" : "全屏"
1952
1968
  }, [
1953
- f(r(I), {
1954
- name: W.value ? "fullscreen-exit" : "fullscreen",
1969
+ y(r(I), {
1970
+ name: D.value ? "fullscreen-exit" : "fullscreen",
1955
1971
  size: 16
1956
1972
  }, null, 8, ["name"])
1957
- ], 8, ln),
1973
+ ], 8, rn),
1958
1974
  e("div", {
1959
1975
  class: "mix-top-menu__action",
1960
1976
  onClick: he,
1961
1977
  title: "换肤设置"
1962
1978
  }, [
1963
- f(r(I), {
1979
+ y(r(I), {
1964
1980
  name: "skin",
1965
1981
  size: 16
1966
1982
  })
@@ -1970,7 +1986,7 @@ const Na = {
1970
1986
  onClick: T,
1971
1987
  title: "切换主题"
1972
1988
  }, [
1973
- f(r(I), {
1989
+ y(r(I), {
1974
1990
  name: r(a).isDark ? "sun" : "moon",
1975
1991
  size: 16
1976
1992
  }, null, 8, ["name"])
@@ -1978,41 +1994,41 @@ const Na = {
1978
1994
  e("div", {
1979
1995
  class: "mix-top-menu__user",
1980
1996
  ref_key: "dropdownRef",
1981
- ref: q
1997
+ ref: Y
1982
1998
  }, [
1983
1999
  e("div", {
1984
2000
  class: "mix-top-menu__user-trigger",
1985
- onClick: Ve(be, ["stop"])
2001
+ onClick: Be(be, ["stop"])
1986
2002
  }, [
1987
- e("div", rn, [
1988
- e("span", null, C(((X = r(m).userName) == null ? void 0 : X.charAt(0)) || "U"), 1)
2003
+ e("div", un, [
2004
+ e("span", null, $(((H = r(m).userName) == null ? void 0 : H.charAt(0)) || "U"), 1)
1989
2005
  ]),
1990
- e("span", un, C(r(m).userName), 1),
2006
+ e("span", cn, $(r(m).userName), 1),
1991
2007
  e("span", {
1992
- class: K(["mix-top-menu__user-arrow", { "is-active": z.value }])
2008
+ class: q(["mix-top-menu__user-arrow", { "is-active": P.value }])
1993
2009
  }, "▼", 2)
1994
2010
  ]),
1995
- f(ke, { name: "dropdown" }, {
2011
+ y(ke, { name: "dropdown" }, {
1996
2012
  default: E(() => {
1997
2013
  var x;
1998
2014
  return [
1999
- z.value ? (l(), u("div", cn, [
2000
- e("div", dn, [
2001
- e("div", mn, [
2002
- e("span", null, C(((x = r(m).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
2003
- ]),
2015
+ P.value ? (l(), u("div", dn, [
2016
+ e("div", mn, [
2004
2017
  e("div", pn, [
2005
- e("div", hn, C(r(m).userName), 1),
2006
- e("div", vn, C(r(m).departmentName), 1)
2018
+ e("span", null, $(((x = r(m).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
2019
+ ]),
2020
+ e("div", hn, [
2021
+ e("div", vn, $(r(m).userName), 1),
2022
+ e("div", _n, $(r(m).departmentName), 1)
2007
2023
  ])
2008
2024
  ]),
2009
2025
  h[8] || (h[8] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2010
- e("div", _n, [
2026
+ e("div", fn, [
2011
2027
  e("div", {
2012
2028
  class: "mix-top-menu__dropdown-item",
2013
2029
  onClick: k
2014
2030
  }, [
2015
- f(r(I), {
2031
+ y(r(I), {
2016
2032
  name: "user",
2017
2033
  size: 16
2018
2034
  }),
@@ -2020,9 +2036,9 @@ const Na = {
2020
2036
  ]),
2021
2037
  e("div", {
2022
2038
  class: "mix-top-menu__dropdown-item",
2023
- onClick: Y
2039
+ onClick: X
2024
2040
  }, [
2025
- f(r(I), {
2041
+ y(r(I), {
2026
2042
  name: "lock",
2027
2043
  size: 16
2028
2044
  }),
@@ -2033,7 +2049,7 @@ const Na = {
2033
2049
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2034
2050
  onClick: c
2035
2051
  }, [
2036
- f(r(I), {
2052
+ y(r(I), {
2037
2053
  name: "logout",
2038
2054
  size: 16
2039
2055
  }),
@@ -2047,34 +2063,34 @@ const Na = {
2047
2063
  })
2048
2064
  ], 512)
2049
2065
  ]),
2050
- f(r(st), {
2051
- modelValue: B.value,
2052
- "onUpdate:modelValue": h[2] || (h[2] = (x) => B.value = x),
2066
+ y(r(ot), {
2067
+ modelValue: N.value,
2068
+ "onUpdate:modelValue": h[2] || (h[2] = (x) => N.value = x),
2053
2069
  title: "换肤设置",
2054
2070
  direction: "rtl",
2055
2071
  size: "320px"
2056
2072
  }, {
2057
2073
  default: E(() => [
2058
- e("div", fn, [
2059
- e("div", gn, [
2074
+ e("div", gn, [
2075
+ e("div", yn, [
2060
2076
  h[12] || (h[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
2061
- e("div", yn, [
2062
- (l(), u(F, null, j(Le, (x) => e("div", {
2077
+ e("div", kn, [
2078
+ (l(), u(j, null, W(Le, (x) => e("div", {
2063
2079
  key: x.value,
2064
- class: K(["layout-option", { "is-active": Me.value === x.value }]),
2065
- onClick: (ut) => _e(x.value)
2080
+ class: q(["layout-option", { "is-active": Me.value === x.value }]),
2081
+ onClick: (ct) => _e(x.value)
2066
2082
  }, [
2067
- e("div", wn, [
2068
- x.value === "sidebar" ? (l(), u("div", bn, [...h[9] || (h[9] = [
2083
+ e("div", bn, [
2084
+ x.value === "sidebar" ? (l(), u("div", xn, [...h[9] || (h[9] = [
2069
2085
  e("div", { class: "preview-aside" }, null, -1),
2070
2086
  e("div", { class: "preview-main" }, [
2071
2087
  e("div", { class: "preview-header" }),
2072
2088
  e("div", { class: "preview-content" })
2073
2089
  ], -1)
2074
- ])])) : x.value === "top" ? (l(), u("div", xn, [...h[10] || (h[10] = [
2090
+ ])])) : x.value === "top" ? (l(), u("div", Cn, [...h[10] || (h[10] = [
2075
2091
  e("div", { class: "preview-header-full" }, null, -1),
2076
2092
  e("div", { class: "preview-content-full" }, null, -1)
2077
- ])])) : (l(), u("div", Cn, [...h[11] || (h[11] = [
2093
+ ])])) : (l(), u("div", $n, [...h[11] || (h[11] = [
2078
2094
  e("div", { class: "preview-header-mix" }, [
2079
2095
  e("div", { class: "preview-mix-left" })
2080
2096
  ], -1),
@@ -2084,45 +2100,45 @@ const Na = {
2084
2100
  ], -1)
2085
2101
  ])]))
2086
2102
  ]),
2087
- e("span", $n, C(x.label), 1)
2088
- ], 10, kn)), 64))
2103
+ e("span", Ln, $(x.label), 1)
2104
+ ], 10, wn)), 64))
2089
2105
  ])
2090
2106
  ]),
2091
- e("div", Ln, [
2107
+ e("div", Mn, [
2092
2108
  h[13] || (h[13] = e("div", { class: "settings-title" }, "主题色", -1)),
2093
- e("div", Mn, [
2094
- (l(), u(F, null, j(fe, (x) => e("div", {
2109
+ e("div", In, [
2110
+ (l(), u(j, null, W(fe, (x) => e("div", {
2095
2111
  key: x.value,
2096
- class: K(["color-option", { "is-active": r(a).primaryColor === x.value }]),
2112
+ class: q(["color-option", { "is-active": r(a).primaryColor === x.value }]),
2097
2113
  style: Ee({ backgroundColor: x.value }),
2098
2114
  title: x.label,
2099
- onClick: (ut) => S(x.value)
2115
+ onClick: (ct) => S(x.value)
2100
2116
  }, [
2101
- r(a).primaryColor === x.value ? (l(), A(r(I), {
2117
+ r(a).primaryColor === x.value ? (l(), V(r(I), {
2102
2118
  key: 0,
2103
2119
  name: "check",
2104
2120
  size: 12,
2105
2121
  color: "#fff"
2106
2122
  })) : U("", !0)
2107
- ], 14, In)), 64))
2123
+ ], 14, Sn)), 64))
2108
2124
  ])
2109
2125
  ]),
2110
- e("div", Sn, [
2126
+ e("div", En, [
2111
2127
  h[18] || (h[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
2112
- e("div", En, [
2113
- e("div", Tn, [
2128
+ e("div", Tn, [
2129
+ e("div", Nn, [
2114
2130
  h[15] || (h[15] = e("span", null, "灰色模式", -1)),
2115
2131
  e("div", {
2116
- class: K(["switch-wrapper", { "is-checked": ee.value }]),
2132
+ class: q(["switch-wrapper", { "is-checked": K.value }]),
2117
2133
  onClick: Ce
2118
2134
  }, [...h[14] || (h[14] = [
2119
2135
  e("span", { class: "switch-core" }, null, -1)
2120
2136
  ])], 2)
2121
2137
  ]),
2122
- e("div", Nn, [
2138
+ e("div", Un, [
2123
2139
  h[17] || (h[17] = e("span", null, "暗黑模式", -1)),
2124
2140
  e("div", {
2125
- class: K(["switch-wrapper", { "is-checked": r(a).isDark }]),
2141
+ class: q(["switch-wrapper", { "is-checked": r(a).isDark }]),
2126
2142
  onClick: $e
2127
2143
  }, [...h[16] || (h[16] = [
2128
2144
  e("span", { class: "switch-core" }, null, -1)
@@ -2137,82 +2153,82 @@ const Na = {
2137
2153
  ]);
2138
2154
  };
2139
2155
  }
2140
- }), zn = /* @__PURE__ */ Z(Un, [["__scopeId", "data-v-25806305"]]), Dn = {
2156
+ }), Dn = /* @__PURE__ */ ee(zn, [["__scopeId", "data-v-25806305"]]), Rn = {
2141
2157
  key: 0,
2142
2158
  class: "layout layout--sidebar"
2143
- }, Rn = { class: "layout__main" }, Pn = { class: "layout__header" }, An = { class: "layout__content" }, On = {
2159
+ }, Pn = { class: "layout__main" }, An = { class: "layout__header" }, On = { class: "layout__content" }, Vn = {
2144
2160
  key: 1,
2145
2161
  class: "layout layout--top"
2146
- }, Vn = { class: "layout__top-menu" }, Fn = { class: "layout__main" }, Bn = { class: "layout__content" }, Kn = {
2162
+ }, Fn = { class: "layout__top-menu" }, Bn = { class: "layout__main" }, Kn = { class: "layout__content" }, jn = {
2147
2163
  key: 2,
2148
2164
  class: "layout layout--mix"
2149
- }, jn = { class: "layout__mix-top-menu" }, qn = { class: "layout__mix-body" }, Wn = { class: "layout__content" }, Yn = /* @__PURE__ */ ae({
2165
+ }, qn = { class: "layout__mix-top-menu" }, Wn = { class: "layout__mix-body" }, Yn = { class: "layout__content" }, Xn = /* @__PURE__ */ le({
2150
2166
  __name: "index",
2151
2167
  setup(t) {
2152
2168
  const s = me(), o = ve(), i = b(
2153
2169
  () => s.isCollapsed ? "64px" : "210px"
2154
2170
  ), a = b(() => s.layout), m = b(() => a.value === "mix"), M = b(() => a.value === "sidebar" ? o.menuList : a.value === "mix" ? s.mixSubMenus : []), d = b(() => m.value ? M.value.length > 0 : !1);
2155
2171
  return (g, p) => {
2156
- const v = mt("router-view");
2157
- return l(), u(F, null, [
2158
- a.value === "sidebar" ? (l(), u("div", Dn, [
2172
+ const _ = pt("router-view");
2173
+ return l(), u(j, null, [
2174
+ a.value === "sidebar" ? (l(), u("div", Rn, [
2159
2175
  e("aside", {
2160
2176
  class: "layout__aside",
2161
2177
  style: Ee({ width: i.value })
2162
2178
  }, [
2163
- f(dt, {
2179
+ y(mt, {
2164
2180
  "menu-list": M.value,
2165
2181
  "show-logo": !0,
2166
2182
  "show-user": !0
2167
2183
  }, null, 8, ["menu-list"])
2168
2184
  ], 4),
2169
- e("div", Rn, [
2170
- e("header", Pn, [
2171
- f(js)
2185
+ e("div", Pn, [
2186
+ e("header", An, [
2187
+ y(qs)
2172
2188
  ]),
2173
- e("main", An, [
2174
- f(v)
2189
+ e("main", On, [
2190
+ y(_)
2175
2191
  ])
2176
2192
  ])
2177
2193
  ])) : U("", !0),
2178
- a.value === "top" ? (l(), u("div", On, [
2179
- e("div", Vn, [
2180
- f(Ko)
2181
- ]),
2194
+ a.value === "top" ? (l(), u("div", Vn, [
2182
2195
  e("div", Fn, [
2183
- e("main", Bn, [
2184
- f(v)
2196
+ y(jo)
2197
+ ]),
2198
+ e("div", Bn, [
2199
+ e("main", Kn, [
2200
+ y(_)
2185
2201
  ])
2186
2202
  ])
2187
2203
  ])) : U("", !0),
2188
- a.value === "mix" ? (l(), u("div", Kn, [
2189
- e("div", jn, [
2190
- f(zn)
2191
- ]),
2204
+ a.value === "mix" ? (l(), u("div", jn, [
2192
2205
  e("div", qn, [
2206
+ y(Dn)
2207
+ ]),
2208
+ e("div", Wn, [
2193
2209
  d.value ? (l(), u("aside", {
2194
2210
  key: 0,
2195
2211
  class: "layout__aside",
2196
2212
  style: Ee({ width: i.value })
2197
2213
  }, [
2198
- f(dt, {
2214
+ y(mt, {
2199
2215
  "menu-list": M.value,
2200
2216
  "show-logo": !1,
2201
2217
  "show-user": !1
2202
2218
  }, null, 8, ["menu-list"])
2203
2219
  ], 4)) : U("", !0),
2204
- e("main", Wn, [
2205
- f(v)
2220
+ e("main", Yn, [
2221
+ y(_)
2206
2222
  ])
2207
2223
  ])
2208
2224
  ])) : U("", !0)
2209
2225
  ], 64);
2210
2226
  };
2211
2227
  }
2212
- }), gt = /* @__PURE__ */ Z(Yn, [["__scopeId", "data-v-70b115a5"]]), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2228
+ }), yt = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-70b115a5"]]), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2213
2229
  __proto__: null,
2214
- default: gt
2215
- }, Symbol.toStringTag, { value: "Module" })), Hn = { class: "tabs-wrapper" }, Gn = { class: "tab-label" }, Jn = ["onClick"], Qn = /* @__PURE__ */ ae({
2230
+ default: yt
2231
+ }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Qn = ["onClick"], Zn = /* @__PURE__ */ le({
2216
2232
  __name: "Tabs",
2217
2233
  setup(t) {
2218
2234
  const s = we(), o = de(), i = b(() => {
@@ -2231,32 +2247,32 @@ const Na = {
2231
2247
  }, M = (d) => {
2232
2248
  const g = i.value.find((p) => p.path === d);
2233
2249
  if (!(g != null && g.affix) && d === a.value) {
2234
- const p = i.value.findIndex((y) => y.path === d), v = i.value[p - 1] || i.value[p + 1];
2235
- v && o.push(v.path);
2250
+ const p = i.value.findIndex((v) => v.path === d), _ = i.value[p - 1] || i.value[p + 1];
2251
+ _ && o.push(_.path);
2236
2252
  }
2237
2253
  };
2238
- return (d, g) => (l(), u("div", Hn, [
2239
- f(r($t), {
2254
+ return (d, g) => (l(), u("div", Gn, [
2255
+ y(r(Lt), {
2240
2256
  modelValue: a.value,
2241
2257
  "onUpdate:modelValue": g[0] || (g[0] = (p) => a.value = p),
2242
2258
  type: "card",
2243
2259
  onTabClick: m
2244
2260
  }, {
2245
2261
  default: E(() => [
2246
- (l(!0), u(F, null, j(i.value, (p) => (l(), A(r(Lt), {
2262
+ (l(!0), u(j, null, W(i.value, (p) => (l(), V(r(Mt), {
2247
2263
  key: p.path,
2248
2264
  name: p.path,
2249
2265
  label: p.title,
2250
2266
  closable: !p.affix
2251
2267
  }, {
2252
2268
  label: E(() => [
2253
- e("span", Gn, [
2254
- ye(C(p.title) + " ", 1),
2269
+ e("span", Jn, [
2270
+ ye($(p.title) + " ", 1),
2255
2271
  p.affix ? U("", !0) : (l(), u("span", {
2256
2272
  key: 0,
2257
2273
  class: "tab-close",
2258
- onClick: Ve((v) => M(p.path), ["stop"])
2259
- }, " ✕ ", 8, Jn))
2274
+ onClick: Be((_) => M(p.path), ["stop"])
2275
+ }, " ✕ ", 8, Qn))
2260
2276
  ])
2261
2277
  ]),
2262
2278
  _: 2
@@ -2266,14 +2282,14 @@ const Na = {
2266
2282
  }, 8, ["modelValue"])
2267
2283
  ]));
2268
2284
  }
2269
- }), Pa = /* @__PURE__ */ Z(Qn, [["__scopeId", "data-v-9156d8cd"]]), Zn = {}, ea = { class: "footer" };
2270
- function ta(t, s) {
2271
- return l(), u("div", ea, [...s[0] || (s[0] = [
2285
+ }), Aa = /* @__PURE__ */ ee(Zn, [["__scopeId", "data-v-9156d8cd"]]), ea = {}, ta = { class: "footer" };
2286
+ function sa(t, s) {
2287
+ return l(), u("div", ta, [...s[0] || (s[0] = [
2272
2288
  e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2273
2289
  ])]);
2274
2290
  }
2275
- const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a"]]), sa = () => {
2276
- const t = St.create({
2291
+ const Oa = /* @__PURE__ */ ee(ea, [["render", sa], ["__scopeId", "data-v-4852826a"]]), oa = () => {
2292
+ const t = Et.create({
2277
2293
  baseURL: void 0,
2278
2294
  timeout: 3e4,
2279
2295
  headers: {
@@ -2282,14 +2298,14 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
2282
2298
  });
2283
2299
  return t.interceptors.request.use(
2284
2300
  (s) => {
2285
- const o = qe(), i = zt() || "Bearer";
2301
+ const o = Ye(), i = Dt() || "Bearer";
2286
2302
  return o && (s.headers.Authorization = `${i} ${o}`), s;
2287
2303
  },
2288
2304
  (s) => Promise.reject(s)
2289
2305
  ), t.interceptors.response.use(
2290
2306
  (s) => {
2291
2307
  const { data: o } = s;
2292
- return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(new Error(o.message || "EXPIRED OR INVALID TOKEN"))) : (ne.error(o.message || "请求失败"), Promise.reject(new Error(o.message || "请求失败")));
2308
+ return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(new Error(o.message || "EXPIRED OR INVALID TOKEN"))) : (ae.error(o.message || "请求失败"), Promise.reject(new Error(o.message || "请求失败")));
2293
2309
  },
2294
2310
  (s) => {
2295
2311
  var i;
@@ -2297,29 +2313,29 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
2297
2313
  if (o) {
2298
2314
  const { data: a } = o;
2299
2315
  if ((a == null ? void 0 : a.code) === 9121)
2300
- return ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(s);
2316
+ return ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(s);
2301
2317
  switch (o.status) {
2302
2318
  case 401:
2303
- ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login";
2319
+ ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login";
2304
2320
  break;
2305
2321
  case 403:
2306
- ne.error("没有权限访问");
2322
+ ae.error("没有权限访问");
2307
2323
  break;
2308
2324
  case 404:
2309
- ne.error("请求资源不存在");
2325
+ ae.error("请求资源不存在");
2310
2326
  break;
2311
2327
  case 500:
2312
- ne.error("服务器错误");
2328
+ ae.error("服务器错误");
2313
2329
  break;
2314
2330
  default:
2315
- ne.error(((i = o.data) == null ? void 0 : i.message) || "请求失败");
2331
+ ae.error(((i = o.data) == null ? void 0 : i.message) || "请求失败");
2316
2332
  }
2317
2333
  } else
2318
- ne.error("网络连接失败");
2334
+ ae.error("网络连接失败");
2319
2335
  return Promise.reject(s);
2320
2336
  }
2321
2337
  ), t;
2322
- }, ge = sa(), R = {
2338
+ }, ge = oa(), O = {
2323
2339
  get(t, s) {
2324
2340
  return ge.get(t, s);
2325
2341
  },
@@ -2340,22 +2356,22 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
2340
2356
  return ge.get(t, { ...s, responseType: "blob" });
2341
2357
  }
2342
2358
  };
2343
- function oa(t) {
2344
- return R.post("/user/v1.0/login/by-domain", t);
2359
+ function na(t) {
2360
+ return O.post("/user/v1.0/login/by-domain", t);
2345
2361
  }
2346
- function Oa() {
2347
- return R.put("/user/v1.0/user/logout");
2362
+ function Va() {
2363
+ return O.put("/user/v1.0/user/logout");
2348
2364
  }
2349
- function na() {
2350
- return R.get("/user/v1.0/user/get-me");
2365
+ function aa() {
2366
+ return O.get("/user/v1.0/user/get-me");
2351
2367
  }
2352
- function Va(t) {
2353
- return R.post("/user/v1.0/refresh", { refreshToken: t });
2368
+ function Fa(t) {
2369
+ return O.post("/user/v1.0/refresh", { refreshToken: t });
2354
2370
  }
2355
- const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PURE__ */ ae({
2371
+ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PURE__ */ le({
2356
2372
  __name: "index",
2357
2373
  setup(t) {
2358
- const s = de(), o = we(), i = _(!1), a = _(!1), m = Qe({
2374
+ const s = de(), o = we(), i = f(!1), a = f(!1), m = Ze({
2359
2375
  uid: "",
2360
2376
  password: ""
2361
2377
  }), M = {
@@ -2366,38 +2382,38 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2366
2382
  { required: !0, message: "请输入密码", trigger: "blur" },
2367
2383
  { min: 6, message: "密码长度至少6位", trigger: "blur" }
2368
2384
  ]
2369
- }, d = _(), g = async () => {
2385
+ }, d = f(), g = async () => {
2370
2386
  var p;
2371
2387
  try {
2372
2388
  await ((p = d.value) == null ? void 0 : p.validate()), i.value = !0;
2373
- const v = await oa({
2374
- appId: Ke(),
2375
- clientId: ht(),
2389
+ const _ = await na({
2390
+ appId: qe(),
2391
+ clientId: vt(),
2376
2392
  uid: m.uid,
2377
2393
  password: m.password,
2378
2394
  code: !0
2379
2395
  });
2380
- _t(v), ne.success("登录成功");
2381
- const y = o.query.redirect || "/";
2382
- s.push(y);
2383
- } catch (v) {
2384
- console.error("登录失败:", v);
2396
+ ft(_), ae.success("登录成功");
2397
+ const v = o.query.redirect || "/";
2398
+ s.push(v);
2399
+ } catch (_) {
2400
+ console.error("登录失败:", _);
2385
2401
  } finally {
2386
2402
  i.value = !1;
2387
2403
  }
2388
2404
  };
2389
- return (p, v) => (l(), u("div", aa, [
2390
- e("div", la, [
2391
- v[5] || (v[5] = e("div", { class: "login__header" }, [
2405
+ return (p, _) => (l(), u("div", la, [
2406
+ e("div", ra, [
2407
+ _[5] || (_[5] = e("div", { class: "login__header" }, [
2392
2408
  e("img", {
2393
- src: je,
2409
+ src: We,
2394
2410
  alt: "Logo",
2395
2411
  class: "login__logo"
2396
2412
  }),
2397
2413
  e("h1", { class: "login__title" }, "Xto Demo"),
2398
2414
  e("p", { class: "login__subtitle" }, "后台管理系统")
2399
2415
  ], -1)),
2400
- f(r(Mt), {
2416
+ y(r(It), {
2401
2417
  ref_key: "formRef",
2402
2418
  ref: d,
2403
2419
  model: m,
@@ -2406,16 +2422,16 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2406
2422
  "label-width": "0"
2407
2423
  }, {
2408
2424
  default: E(() => [
2409
- f(r(Ne), { prop: "uid" }, {
2425
+ y(r(Ne), { prop: "uid" }, {
2410
2426
  default: E(() => [
2411
- f(r(ct), {
2427
+ y(r(dt), {
2412
2428
  modelValue: m.uid,
2413
- "onUpdate:modelValue": v[0] || (v[0] = (y) => m.uid = y),
2429
+ "onUpdate:modelValue": _[0] || (_[0] = (v) => m.uid = v),
2414
2430
  placeholder: "用户名",
2415
2431
  size: "large"
2416
2432
  }, {
2417
2433
  prefix: E(() => [
2418
- f(r(I), {
2434
+ y(r(I), {
2419
2435
  name: "user",
2420
2436
  size: 18
2421
2437
  })
@@ -2425,19 +2441,19 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2425
2441
  ]),
2426
2442
  _: 1
2427
2443
  }),
2428
- f(r(Ne), { prop: "password" }, {
2444
+ y(r(Ne), { prop: "password" }, {
2429
2445
  default: E(() => [
2430
- f(r(ct), {
2446
+ y(r(dt), {
2431
2447
  modelValue: m.password,
2432
- "onUpdate:modelValue": v[1] || (v[1] = (y) => m.password = y),
2448
+ "onUpdate:modelValue": _[1] || (_[1] = (v) => m.password = v),
2433
2449
  type: "password",
2434
2450
  placeholder: "密码",
2435
2451
  size: "large",
2436
2452
  "show-password": "",
2437
- onKeyup: Ct(g, ["enter"])
2453
+ onKeyup: $t(g, ["enter"])
2438
2454
  }, {
2439
2455
  prefix: E(() => [
2440
- f(r(I), {
2456
+ y(r(I), {
2441
2457
  name: "lock",
2442
2458
  size: 18
2443
2459
  })
@@ -2447,13 +2463,13 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2447
2463
  ]),
2448
2464
  _: 1
2449
2465
  }),
2450
- f(r(Ne), null, {
2466
+ y(r(Ne), null, {
2451
2467
  default: E(() => [
2452
- f(r(It), {
2468
+ y(r(St), {
2453
2469
  modelValue: a.value,
2454
- "onUpdate:modelValue": v[2] || (v[2] = (y) => a.value = y)
2470
+ "onUpdate:modelValue": _[2] || (_[2] = (v) => a.value = v)
2455
2471
  }, {
2456
- default: E(() => [...v[3] || (v[3] = [
2472
+ default: E(() => [..._[3] || (_[3] = [
2457
2473
  ye("记住我", -1)
2458
2474
  ])]),
2459
2475
  _: 1
@@ -2461,16 +2477,16 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2461
2477
  ]),
2462
2478
  _: 1
2463
2479
  }),
2464
- f(r(Ne), null, {
2480
+ y(r(Ne), null, {
2465
2481
  default: E(() => [
2466
- f(r(Be), {
2482
+ y(r(je), {
2467
2483
  type: "primary",
2468
2484
  size: "large",
2469
2485
  loading: i.value,
2470
2486
  class: "login__submit",
2471
2487
  onClick: g
2472
2488
  }, {
2473
- default: E(() => [...v[4] || (v[4] = [
2489
+ default: E(() => [..._[4] || (_[4] = [
2474
2490
  ye(" 登录 ", -1)
2475
2491
  ])]),
2476
2492
  _: 1
@@ -2481,27 +2497,27 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2481
2497
  ]),
2482
2498
  _: 1
2483
2499
  }, 8, ["model"]),
2484
- v[6] || (v[6] = e("div", { class: "login__footer" }, [
2500
+ _[6] || (_[6] = e("div", { class: "login__footer" }, [
2485
2501
  e("p", null, "请输入您的用户名和密码")
2486
2502
  ], -1))
2487
2503
  ])
2488
2504
  ]));
2489
2505
  }
2490
- }), ia = /* @__PURE__ */ Z(ra, [["__scopeId", "data-v-f3e724b6"]]), ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2506
+ }), ua = /* @__PURE__ */ ee(ia, [["__scopeId", "data-v-f3e724b6"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2491
2507
  __proto__: null,
2492
- default: ia
2493
- }, Symbol.toStringTag, { value: "Module" })), ca = { class: "error-page" }, da = { class: "error-page__content" }, ma = /* @__PURE__ */ ae({
2508
+ default: ua
2509
+ }, Symbol.toStringTag, { value: "Module" })), da = { class: "error-page" }, ma = { class: "error-page__content" }, pa = /* @__PURE__ */ le({
2494
2510
  __name: "404",
2495
2511
  setup(t) {
2496
2512
  const s = de(), o = () => {
2497
2513
  s.push("/");
2498
2514
  };
2499
- return (i, a) => (l(), u("div", ca, [
2500
- e("div", da, [
2515
+ return (i, a) => (l(), u("div", da, [
2516
+ e("div", ma, [
2501
2517
  a[1] || (a[1] = e("div", { class: "error-page__code" }, "404", -1)),
2502
2518
  a[2] || (a[2] = e("div", { class: "error-page__title" }, "页面不存在", -1)),
2503
2519
  a[3] || (a[3] = e("div", { class: "error-page__desc" }, "抱歉,您访问的页面不存在或已被删除", -1)),
2504
- f(r(Be), {
2520
+ y(r(je), {
2505
2521
  type: "primary",
2506
2522
  onClick: o
2507
2523
  }, {
@@ -2513,21 +2529,21 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2513
2529
  ])
2514
2530
  ]));
2515
2531
  }
2516
- }), pa = /* @__PURE__ */ Z(ma, [["__scopeId", "data-v-3b47f5bc"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2532
+ }), ha = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-3b47f5bc"]]), kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2517
2533
  __proto__: null,
2518
- default: pa
2519
- }, Symbol.toStringTag, { value: "Module" })), ha = { class: "error-page" }, va = { class: "error-page__content" }, _a = /* @__PURE__ */ ae({
2534
+ default: ha
2535
+ }, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, _a = { class: "error-page__content" }, fa = /* @__PURE__ */ le({
2520
2536
  __name: "403",
2521
2537
  setup(t) {
2522
2538
  const s = de(), o = () => {
2523
2539
  s.push("/");
2524
2540
  };
2525
- return (i, a) => (l(), u("div", ha, [
2526
- e("div", va, [
2541
+ return (i, a) => (l(), u("div", va, [
2542
+ e("div", _a, [
2527
2543
  a[1] || (a[1] = e("div", { class: "error-page__code" }, "403", -1)),
2528
2544
  a[2] || (a[2] = e("div", { class: "error-page__title" }, "无访问权限", -1)),
2529
2545
  a[3] || (a[3] = e("div", { class: "error-page__desc" }, "抱歉,您没有权限访问此页面", -1)),
2530
- f(r(Be), {
2546
+ y(r(je), {
2531
2547
  type: "primary",
2532
2548
  onClick: o
2533
2549
  }, {
@@ -2539,9 +2555,9 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
2539
2555
  ])
2540
2556
  ]));
2541
2557
  }
2542
- }), Fa = /* @__PURE__ */ Z(_a, [["__scopeId", "data-v-3081df6c"]]);
2543
- function Ba() {
2544
- const t = me(), s = Q(), o = Te(), i = b(() => s.userName || ""), a = b(() => s.userInfo), m = b(() => t.appName), M = b(() => o.isLoggedIn), d = b(() => t.isDark), g = b(() => t.theme), p = b(() => t.isCollapsed), v = b(() => t.layout);
2558
+ }), Ba = /* @__PURE__ */ ee(fa, [["__scopeId", "data-v-3081df6c"]]);
2559
+ function Ka() {
2560
+ const t = me(), s = Z(), o = Te(), i = b(() => s.userName || ""), a = b(() => s.userInfo), m = b(() => t.appName), M = b(() => o.isLoggedIn), d = b(() => t.isDark), g = b(() => t.theme), p = b(() => t.isCollapsed), _ = b(() => t.layout);
2545
2561
  return {
2546
2562
  userName: i,
2547
2563
  userInfo: a,
@@ -2550,7 +2566,7 @@ function Ba() {
2550
2566
  isDark: d,
2551
2567
  theme: g,
2552
2568
  isCollapsed: p,
2553
- layout: v,
2569
+ layout: _,
2554
2570
  toggleTheme: () => {
2555
2571
  t.toggleTheme();
2556
2572
  },
@@ -2559,24 +2575,24 @@ function Ba() {
2559
2575
  }
2560
2576
  };
2561
2577
  }
2562
- function Ka() {
2563
- const t = Q();
2578
+ function ja() {
2579
+ const t = Z();
2564
2580
  return {
2565
2581
  isLoggedIn: b(() => t.isLoggedIn)
2566
2582
  };
2567
2583
  }
2568
- function ja(t, s = {}) {
2569
- const { rules: o, onSubmit: i } = s, a = _(), m = Qe({ ...t }), M = _(!1), d = _(!1), g = _(!1), p = () => {
2570
- $(), g.value = !1, d.value = !0;
2571
- }, v = (D) => {
2572
- Object.assign(m, D), g.value = !0, d.value = !0;
2573
- }, y = () => {
2574
- d.value = !1, $();
2575
- }, $ = () => {
2576
- var D;
2577
- Object.keys(t).forEach((V) => {
2578
- m[V] = t[V];
2579
- }), (D = a.value) == null || D.resetFields();
2584
+ function qa(t, s = {}) {
2585
+ const { rules: o, onSubmit: i } = s, a = f(), m = Ze({ ...t }), M = f(!1), d = f(!1), g = f(!1), p = () => {
2586
+ L(), g.value = !1, d.value = !0;
2587
+ }, _ = (R) => {
2588
+ Object.assign(m, R), g.value = !0, d.value = !0;
2589
+ }, v = () => {
2590
+ d.value = !1, L();
2591
+ }, L = () => {
2592
+ var R;
2593
+ Object.keys(t).forEach((B) => {
2594
+ m[B] = t[B];
2595
+ }), (R = a.value) == null || R.resetFields();
2580
2596
  };
2581
2597
  return {
2582
2598
  formRef: a,
@@ -2586,49 +2602,49 @@ function ja(t, s = {}) {
2586
2602
  visible: d,
2587
2603
  isEdit: g,
2588
2604
  openAdd: p,
2589
- openEdit: v,
2590
- close: y,
2591
- resetForm: $,
2605
+ openEdit: _,
2606
+ close: v,
2607
+ resetForm: L,
2592
2608
  handleSubmit: async () => {
2593
- var D;
2609
+ var R;
2594
2610
  try {
2595
- await ((D = a.value) == null ? void 0 : D.validate()), M.value = !0, await (i == null ? void 0 : i(m)), y();
2596
- } catch (V) {
2597
- console.error(V);
2611
+ await ((R = a.value) == null ? void 0 : R.validate()), M.value = !0, await (i == null ? void 0 : i(m)), v();
2612
+ } catch (B) {
2613
+ console.error(B);
2598
2614
  } finally {
2599
2615
  M.value = !1;
2600
2616
  }
2601
2617
  }
2602
2618
  };
2603
2619
  }
2604
- function qa(t) {
2605
- const { fetchData: s, defaultPageSize: o = 10 } = t, i = _(!1), a = _([]), m = _(0), M = _(1), d = _(o), g = Qe({}), p = async () => {
2620
+ function Wa(t) {
2621
+ const { fetchData: s, defaultPageSize: o = 10 } = t, i = f(!1), a = f([]), m = f(0), M = f(1), d = f(o), g = Ze({}), p = async () => {
2606
2622
  i.value = !0;
2607
2623
  try {
2608
- const N = {
2624
+ const z = {
2609
2625
  ...g,
2610
2626
  page: M.value,
2611
2627
  pageSize: d.value
2612
- }, z = await s(N);
2613
- a.value = z.list, m.value = z.total;
2614
- } catch (N) {
2615
- console.error(N);
2628
+ }, P = await s(z);
2629
+ a.value = P.list, m.value = P.total;
2630
+ } catch (z) {
2631
+ console.error(z);
2616
2632
  } finally {
2617
2633
  i.value = !1;
2618
2634
  }
2619
- }, v = () => {
2635
+ }, _ = () => {
2620
2636
  M.value = 1, p();
2621
- }, y = () => {
2622
- Object.keys(g).forEach((N) => {
2623
- g[N] = void 0;
2637
+ }, v = () => {
2638
+ Object.keys(g).forEach((z) => {
2639
+ g[z] = void 0;
2624
2640
  }), M.value = 1, p();
2625
- }, $ = (N) => {
2626
- M.value = N, p();
2627
- }, O = (N) => {
2628
- d.value = N, M.value = 1, p();
2629
- }, D = () => {
2641
+ }, L = (z) => {
2642
+ M.value = z, p();
2643
+ }, F = (z) => {
2644
+ d.value = z, M.value = 1, p();
2645
+ }, R = () => {
2630
2646
  p();
2631
- }, V = b(() => ({
2647
+ }, B = b(() => ({
2632
2648
  current: M.value,
2633
2649
  pageSize: d.value,
2634
2650
  total: m.value
@@ -2640,44 +2656,44 @@ function qa(t) {
2640
2656
  currentPage: M,
2641
2657
  pageSize: d,
2642
2658
  searchParams: g,
2643
- pagination: V,
2659
+ pagination: B,
2644
2660
  getData: p,
2645
- handleSearch: v,
2646
- handleReset: y,
2647
- handlePageChange: $,
2648
- handleSizeChange: O,
2649
- refresh: D
2661
+ handleSearch: _,
2662
+ handleReset: v,
2663
+ handlePageChange: L,
2664
+ handleSizeChange: F,
2665
+ refresh: R
2650
2666
  };
2651
2667
  }
2652
- function Wa(t) {
2653
- return Q().isLoggedIn;
2654
- }
2655
2668
  function Ya(t) {
2656
- return Q().isLoggedIn;
2669
+ return Z().isLoggedIn;
2670
+ }
2671
+ function Xa(t) {
2672
+ return Z().isLoggedIn;
2657
2673
  }
2658
- function Xa() {
2674
+ function Ha() {
2659
2675
  return !0;
2660
2676
  }
2661
- const kt = [
2677
+ const wt = [
2662
2678
  {
2663
2679
  path: "/login",
2664
2680
  name: "Login",
2665
- component: () => Promise.resolve().then(() => ua),
2681
+ component: () => Promise.resolve().then(() => ca),
2666
2682
  meta: {
2667
2683
  title: "登录",
2668
2684
  hidden: !0
2669
2685
  }
2670
2686
  }
2671
- ], wt = {
2687
+ ], bt = {
2672
2688
  path: "/",
2673
2689
  name: "Layout",
2674
- component: () => Promise.resolve().then(() => Xn),
2690
+ component: () => Promise.resolve().then(() => Hn),
2675
2691
  redirect: "/dashboard",
2676
2692
  children: [
2677
2693
  {
2678
2694
  path: "/dashboard",
2679
2695
  name: "Dashboard",
2680
- component: () => import("./index-_oqoy_3D.js"),
2696
+ component: () => import("./index-BvMcnGze.js"),
2681
2697
  meta: {
2682
2698
  title: "仪表盘",
2683
2699
  icon: "dashboard",
@@ -2688,7 +2704,7 @@ const kt = [
2688
2704
  {
2689
2705
  path: "/system/user",
2690
2706
  name: "SystemUser",
2691
- component: () => import("./index-DUW5cCh8.js"),
2707
+ component: () => import("./index-D0JXJmlJ.js"),
2692
2708
  meta: {
2693
2709
  title: "用户管理",
2694
2710
  icon: "user",
@@ -2698,7 +2714,7 @@ const kt = [
2698
2714
  {
2699
2715
  path: "/system/role",
2700
2716
  name: "SystemRole",
2701
- component: () => import("./index-DBzpSkNi.js"),
2717
+ component: () => import("./index-Df8leAO9.js"),
2702
2718
  meta: {
2703
2719
  title: "角色管理",
2704
2720
  icon: "role",
@@ -2708,7 +2724,7 @@ const kt = [
2708
2724
  {
2709
2725
  path: "/system/menu",
2710
2726
  name: "SystemMenu",
2711
- component: () => import("./index-DgPnNd8U.js"),
2727
+ component: () => import("./index-DZEVfuKk.js"),
2712
2728
  meta: {
2713
2729
  title: "菜单管理",
2714
2730
  icon: "menu",
@@ -2719,18 +2735,18 @@ const kt = [
2719
2735
  {
2720
2736
  path: "/:pathMatch(.*)*",
2721
2737
  name: "CatchAll",
2722
- component: () => Promise.resolve().then(() => yt),
2738
+ component: () => Promise.resolve().then(() => kt),
2723
2739
  meta: {
2724
2740
  title: "404",
2725
2741
  hidden: !0
2726
2742
  }
2727
2743
  }
2728
2744
  ]
2729
- }, Ha = [
2745
+ }, Ga = [
2730
2746
  {
2731
2747
  path: "/dashboard",
2732
2748
  name: "Dashboard",
2733
- component: () => import("./index-_oqoy_3D.js"),
2749
+ component: () => import("./index-BvMcnGze.js"),
2734
2750
  meta: {
2735
2751
  title: "仪表盘",
2736
2752
  icon: "dashboard",
@@ -2750,7 +2766,7 @@ const kt = [
2750
2766
  {
2751
2767
  path: "user",
2752
2768
  name: "SystemUser",
2753
- component: () => import("./index-DUW5cCh8.js"),
2769
+ component: () => import("./index-D0JXJmlJ.js"),
2754
2770
  meta: {
2755
2771
  title: "用户管理",
2756
2772
  icon: "user",
@@ -2760,7 +2776,7 @@ const kt = [
2760
2776
  {
2761
2777
  path: "role",
2762
2778
  name: "SystemRole",
2763
- component: () => import("./index-DBzpSkNi.js"),
2779
+ component: () => import("./index-Df8leAO9.js"),
2764
2780
  meta: {
2765
2781
  title: "角色管理",
2766
2782
  icon: "role",
@@ -2770,7 +2786,7 @@ const kt = [
2770
2786
  {
2771
2787
  path: "menu",
2772
2788
  name: "SystemMenu",
2773
- component: () => import("./index-DgPnNd8U.js"),
2789
+ component: () => import("./index-DZEVfuKk.js"),
2774
2790
  meta: {
2775
2791
  title: "菜单管理",
2776
2792
  icon: "menu",
@@ -2779,7 +2795,7 @@ const kt = [
2779
2795
  }
2780
2796
  ]
2781
2797
  }
2782
- ], fa = [
2798
+ ], ga = [
2783
2799
  {
2784
2800
  menuCode: "dashboard",
2785
2801
  menuName: "仪表盘",
@@ -2827,20 +2843,20 @@ const kt = [
2827
2843
  }
2828
2844
  ]
2829
2845
  }
2830
- ], bt = Ze({
2831
- history: et(),
2832
- routes: [...kt, wt],
2846
+ ], xt = et({
2847
+ history: tt(),
2848
+ routes: [...wt, bt],
2833
2849
  scrollBehavior: () => ({ left: 0, top: 0 })
2834
- }), ga = ["/login"];
2835
- bt.beforeEach(async (t, s, o) => {
2850
+ }), ya = ["/login"];
2851
+ xt.beforeEach(async (t, s, o) => {
2836
2852
  const i = me();
2837
- if (i.initTheme(), ft())
2853
+ if (i.initTheme(), gt())
2838
2854
  if (t.path === "/login")
2839
2855
  o({ path: "/" });
2840
2856
  else {
2841
- const a = Q();
2857
+ const a = Z();
2842
2858
  a.isLoggedIn || (a.setUserInfo({
2843
- appId: Ke(),
2859
+ appId: qe(),
2844
2860
  userId: "1",
2845
2861
  userName: "管理员",
2846
2862
  departmentName: "技术部",
@@ -2848,23 +2864,23 @@ bt.beforeEach(async (t, s, o) => {
2848
2864
  mobilePhone: "13800138000",
2849
2865
  positionName: "管理员",
2850
2866
  avatar: ""
2851
- }), ve().setMenuList(fa)), t.name && t.meta.keepAlive && i.addCachedView(t.name), o();
2867
+ }), ve().setMenuList(ga)), t.name && t.meta.keepAlive && i.addCachedView(t.name), o();
2852
2868
  }
2853
2869
  else
2854
- ga.includes(t.path) ? o() : o("/login");
2870
+ ya.includes(t.path) ? o() : o("/login");
2855
2871
  });
2856
- function Ga() {
2857
- const t = Ze({
2858
- history: et(),
2859
- routes: [...kt, wt]
2872
+ function Ja() {
2873
+ const t = et({
2874
+ history: tt(),
2875
+ routes: [...wt, bt]
2860
2876
  });
2861
- bt.matcher = t.matcher;
2877
+ xt.matcher = t.matcher;
2862
2878
  }
2863
- function Ja(t, s = {}) {
2879
+ function Qa(t, s = {}) {
2864
2880
  const o = s.indexPath || "/dashboard", i = {
2865
2881
  path: "/:pathMatch(.*)*",
2866
2882
  name: "CatchAll",
2867
- component: () => Promise.resolve().then(() => yt),
2883
+ component: () => Promise.resolve().then(() => kt),
2868
2884
  meta: {
2869
2885
  title: "404"
2870
2886
  }
@@ -2872,58 +2888,58 @@ function Ja(t, s = {}) {
2872
2888
  return {
2873
2889
  path: "/",
2874
2890
  name: "Layout",
2875
- component: gt,
2891
+ component: yt,
2876
2892
  redirect: o,
2877
2893
  children: [...t, i]
2878
2894
  };
2879
2895
  }
2880
- function Qa(t) {
2881
- return Ze({
2882
- history: et(),
2896
+ function Za(t) {
2897
+ return et({
2898
+ history: tt(),
2883
2899
  routes: t,
2884
2900
  scrollBehavior: () => ({ left: 0, top: 0 })
2885
2901
  });
2886
2902
  }
2887
- function Za(t) {
2888
- return R.get("/role/list", { params: t });
2889
- }
2890
2903
  function el(t) {
2891
- return R.get(`/role/${t}`);
2904
+ return O.get("/role/list", { params: t });
2892
2905
  }
2893
2906
  function tl(t) {
2894
- return R.post("/role", t);
2907
+ return O.get(`/role/${t}`);
2895
2908
  }
2896
- function sl(t, s) {
2897
- return R.put(`/role/${t}`, s);
2909
+ function sl(t) {
2910
+ return O.post("/role", t);
2898
2911
  }
2899
- function ol(t) {
2900
- return R.delete(`/role/${t}`);
2912
+ function ol(t, s) {
2913
+ return O.put(`/role/${t}`, s);
2901
2914
  }
2902
- function nl(t, s) {
2903
- return R.patch(`/role/${t}/status`, { status: s });
2915
+ function nl(t) {
2916
+ return O.delete(`/role/${t}`);
2904
2917
  }
2905
- function al() {
2906
- return R.get("/user/v1.0/menu/list");
2918
+ function al(t, s) {
2919
+ return O.patch(`/role/${t}/status`, { status: s });
2907
2920
  }
2908
- function ya(t) {
2909
- const s = t || Ke();
2910
- return R.get(`/user/v1.0/menu/get-menu?appId=${s}`);
2921
+ function ll() {
2922
+ return O.get("/user/v1.0/menu/list");
2911
2923
  }
2912
- function ll(t) {
2913
- return R.post("/menu", t);
2924
+ function ka(t) {
2925
+ const s = t || qe();
2926
+ return O.get(`/user/v1.0/menu/get-menu?appId=${s}`);
2914
2927
  }
2915
- function rl(t, s) {
2916
- return R.put(`/menu/${t}`, s);
2928
+ function rl(t) {
2929
+ return O.post("/menu", t);
2917
2930
  }
2918
- function il(t) {
2919
- return R.delete(`/menu/${t}`);
2931
+ function il(t, s) {
2932
+ return O.put(`/menu/${t}`, s);
2920
2933
  }
2921
- const ka = ["/login", "/404", "/403"];
2922
- function ul(t, s = {}) {
2923
- const o = s.whiteList || ka, i = s.loginPath || "/login", a = s.homePath || "/";
2934
+ function ul(t) {
2935
+ return O.delete(`/menu/${t}`);
2936
+ }
2937
+ const wa = ["/login", "/404", "/403"];
2938
+ function cl(t, s = {}) {
2939
+ const o = s.whiteList || wa, i = s.loginPath || "/login", a = s.homePath || "/";
2924
2940
  t.beforeEach(async (m, M, d) => {
2925
- const g = me(), p = Q(), v = ve();
2926
- if (g.initTheme(), qe())
2941
+ const g = me(), p = Z(), _ = ve();
2942
+ if (g.initTheme(), Ye())
2927
2943
  if (m.path === i)
2928
2944
  d({ path: a });
2929
2945
  else if (p.isLoggedIn)
@@ -2931,65 +2947,65 @@ function ul(t, s = {}) {
2931
2947
  else
2932
2948
  try {
2933
2949
  if (s.fetchUserInfo) {
2934
- const $ = await s.fetchUserInfo();
2935
- p.setUserInfo($);
2950
+ const L = await s.fetchUserInfo();
2951
+ p.setUserInfo(L);
2936
2952
  } else {
2937
- const $ = await na();
2938
- p.setUserInfo($);
2953
+ const L = await aa();
2954
+ p.setUserInfo(L);
2939
2955
  }
2940
2956
  if (s.fetchMenu) {
2941
- const $ = await s.fetchMenu();
2942
- v.setMenuList($);
2957
+ const L = await s.fetchMenu();
2958
+ _.setMenuList(L);
2943
2959
  } else {
2944
- const $ = await ya(s.appId);
2945
- v.setMenuList($);
2960
+ const L = await ka(s.appId);
2961
+ _.setMenuList(L);
2946
2962
  }
2947
2963
  s.onLoginSuccess && s.onLoginSuccess(), m.name && m.meta.keepAlive && g.addCachedView(m.name), d({ ...m, replace: !0 });
2948
- } catch ($) {
2949
- console.error("获取用户信息失败:", $), p.clearUserInfo(), v.clearMenu(), Se(), d({ path: i, query: { redirect: m.fullPath } });
2964
+ } catch (L) {
2965
+ console.error("获取用户信息失败:", L), p.clearUserInfo(), _.clearMenu(), Se(), d({ path: i, query: { redirect: m.fullPath } });
2950
2966
  }
2951
2967
  else
2952
2968
  o.includes(m.path) ? d() : d({ path: i, query: { redirect: m.fullPath } });
2953
2969
  }), t.afterEach(() => {
2954
2970
  });
2955
2971
  }
2956
- function cl(t) {
2957
- return R.get("/user/list", { params: t });
2958
- }
2959
2972
  function dl(t) {
2960
- return R.get(`/user/${t}`);
2973
+ return O.get("/user/list", { params: t });
2961
2974
  }
2962
2975
  function ml(t) {
2963
- return R.post("/user", t);
2976
+ return O.get(`/user/${t}`);
2964
2977
  }
2965
- function pl(t, s) {
2966
- return R.put(`/user/${t}`, s);
2978
+ function pl(t) {
2979
+ return O.post("/user", t);
2967
2980
  }
2968
- function hl(t) {
2969
- return R.delete(`/user/${t}`);
2981
+ function hl(t, s) {
2982
+ return O.put(`/user/${t}`, s);
2970
2983
  }
2971
2984
  function vl(t) {
2972
- return R.post("/user/batch-delete", { ids: t });
2985
+ return O.delete(`/user/${t}`);
2973
2986
  }
2974
- function _l(t, s) {
2975
- return R.patch(`/user/${t}/status`, { status: s });
2987
+ function _l(t) {
2988
+ return O.post("/user/batch-delete", { ids: t });
2976
2989
  }
2977
- function fl(t) {
2978
- return R.post(`/user/${t}/reset-password`);
2990
+ function fl(t, s) {
2991
+ return O.patch(`/user/${t}/status`, { status: s });
2979
2992
  }
2980
- var wa = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(wa || {}), ba = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(ba || {}), xa = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(xa || {});
2981
- const gl = {
2993
+ function gl(t) {
2994
+ return O.post(`/user/${t}/reset-password`);
2995
+ }
2996
+ var ba = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(ba || {}), xa = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(xa || {}), Ca = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Ca || {});
2997
+ const yl = {
2982
2998
  1: "启用",
2983
2999
  0: "禁用"
2984
- }, yl = {
3000
+ }, kl = {
2985
3001
  0: "未知",
2986
3002
  1: "男",
2987
3003
  2: "女"
2988
- }, kl = {
3004
+ }, wl = {
2989
3005
  0: "目录",
2990
3006
  1: "菜单",
2991
3007
  2: "按钮"
2992
- }, wl = [
3008
+ }, bl = [
2993
3009
  {
2994
3010
  label: "启用",
2995
3011
  value: 1
@@ -3000,7 +3016,7 @@ const gl = {
3000
3016
  value: 0
3001
3017
  /* DISABLED */
3002
3018
  }
3003
- ], bl = [
3019
+ ], xl = [
3004
3020
  {
3005
3021
  label: "未知",
3006
3022
  value: 0
@@ -3016,7 +3032,7 @@ const gl = {
3016
3032
  value: 2
3017
3033
  /* FEMALE */
3018
3034
  }
3019
- ], xl = [
3035
+ ], Cl = [
3020
3036
  {
3021
3037
  label: "目录",
3022
3038
  value: 0
@@ -3032,116 +3048,116 @@ const gl = {
3032
3048
  value: 2
3033
3049
  /* BUTTON */
3034
3050
  }
3035
- ], Cl = {
3051
+ ], $l = {
3036
3052
  mounted(t, s) {
3037
3053
  var i;
3038
- Q().isLoggedIn || (i = t.parentNode) == null || i.removeChild(t);
3054
+ Z().isLoggedIn || (i = t.parentNode) == null || i.removeChild(t);
3039
3055
  }
3040
3056
  };
3041
- function $l(t) {
3042
- return Et({
3057
+ function Ll(t) {
3058
+ return Tt({
3043
3059
  appId: t.appId,
3044
3060
  clientId: t.clientId,
3045
3061
  apiBaseUrl: t.apiBaseUrl
3046
3062
  }), {
3047
3063
  config: {
3048
3064
  appName: t.appName || "XTO App",
3049
- appId: Ke(),
3050
- clientId: ht(),
3051
- apiBaseUrl: Tt(),
3065
+ appId: qe(),
3066
+ clientId: vt(),
3067
+ apiBaseUrl: Nt(),
3052
3068
  indexPath: t.indexPath || "/dashboard",
3053
3069
  loginPath: t.loginPath || "/login"
3054
3070
  }
3055
3071
  };
3056
3072
  }
3057
3073
  export {
3058
- Ft as $,
3059
- Ra as A,
3060
- al as B,
3061
- ya as C,
3062
- Da as D,
3063
- za as E,
3064
- Aa as F,
3065
- ba as G,
3066
- js as H,
3067
- el as I,
3068
- Za as J,
3069
- qe as K,
3070
- gt as L,
3071
- xa as M,
3072
- Pt as N,
3073
- zt as O,
3074
- dl as P,
3075
- na as Q,
3076
- cl as R,
3077
- wa as S,
3078
- Pa as T,
3079
- Wa as U,
3080
- Ya as V,
3081
- ft as W,
3082
- R as X,
3083
- Et as Y,
3084
- Xa as Z,
3085
- Z as _,
3086
- wl as a,
3087
- wt as a0,
3088
- L as a1,
3074
+ Bt as $,
3075
+ Pa as A,
3076
+ ll as B,
3077
+ ka as C,
3078
+ Ra as D,
3079
+ Da as E,
3080
+ Oa as F,
3081
+ xa as G,
3082
+ qs as H,
3083
+ tl as I,
3084
+ el as J,
3085
+ Ye as K,
3086
+ yt as L,
3087
+ Ca as M,
3088
+ At as N,
3089
+ Dt as O,
3090
+ ml as P,
3091
+ aa as Q,
3092
+ dl as R,
3093
+ ba as S,
3094
+ Aa as T,
3095
+ Ya as U,
3096
+ Xa as V,
3097
+ gt as W,
3098
+ O as X,
3099
+ Tt as Y,
3100
+ Ha as Z,
3101
+ ee as _,
3102
+ bl as a,
3103
+ bt as a0,
3104
+ C as a1,
3089
3105
  Ue as a2,
3090
- oa as a3,
3091
- Oa as a4,
3092
- fa as a5,
3093
- Cl as a6,
3094
- Va as a7,
3095
- fl as a8,
3096
- Ga as a9,
3097
- bt as aa,
3098
- Ua as ab,
3106
+ na as a3,
3107
+ Va as a4,
3108
+ ga as a5,
3109
+ $l as a6,
3110
+ Fa as a7,
3111
+ gl as a8,
3112
+ Ja as a9,
3113
+ xt as aa,
3114
+ za as ab,
3099
3115
  ze as ac,
3100
- Vt as ad,
3101
- Ot as ae,
3102
- Rt as af,
3103
- Ut as ag,
3104
- At as ah,
3105
- _t as ai,
3106
- Dt as aj,
3107
- ul as ak,
3108
- kt as al,
3109
- rl as am,
3110
- sl as an,
3111
- nl as ao,
3112
- pl as ap,
3113
- _l as aq,
3114
- Ba as ar,
3116
+ Ft as ad,
3117
+ Vt as ae,
3118
+ Pt as af,
3119
+ zt as ag,
3120
+ Ot as ah,
3121
+ ft as ai,
3122
+ Rt as aj,
3123
+ cl as ak,
3124
+ wt as al,
3125
+ il as am,
3126
+ ol as an,
3127
+ al as ao,
3128
+ hl as ap,
3129
+ fl as aq,
3130
+ Ka as ar,
3115
3131
  me as as,
3116
- Ka as at,
3132
+ ja as at,
3117
3133
  Te as au,
3118
- ja as av,
3134
+ qa as av,
3119
3135
  ve as aw,
3120
- qa as ax,
3121
- Q as ay,
3122
- xl as b,
3123
- Fa as c,
3124
- bl as d,
3125
- yl as e,
3126
- kl as f,
3127
- pa as g,
3128
- dt as h,
3129
- ia as i,
3130
- gl as j,
3131
- Na as k,
3132
- vl as l,
3136
+ Wa as ax,
3137
+ Z as ay,
3138
+ Cl as b,
3139
+ Ba as c,
3140
+ xl as d,
3141
+ kl as e,
3142
+ wl as f,
3143
+ ha as g,
3144
+ mt as h,
3145
+ ua as i,
3146
+ yl as j,
3147
+ Ua as k,
3148
+ _l as l,
3133
3149
  Se as m,
3134
- Ja as n,
3135
- ll as o,
3136
- tl as p,
3137
- Qa as q,
3138
- ml as r,
3139
- $l as s,
3140
- Ha as t,
3141
- il as u,
3142
- ol as v,
3143
- hl as w,
3144
- Tt as x,
3145
- Ke as y,
3146
- ht as z
3150
+ Qa as n,
3151
+ rl as o,
3152
+ sl as p,
3153
+ Za as q,
3154
+ pl as r,
3155
+ Ll as s,
3156
+ Ga as t,
3157
+ ul as u,
3158
+ nl as v,
3159
+ vl as w,
3160
+ Nt as x,
3161
+ qe as y,
3162
+ vt as z
3147
3163
  };