xto-fronted 0.4.102 → 0.4.103

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 (144) hide show
  1. package/dist/{index-3ekBp4iW.js → index-BlN5yXBT.js} +2 -2
  2. package/dist/{index-BKj-34y6.js → index-BsPaXQak.js} +2 -2
  3. package/dist/{index-CJSTBnGF.js → index-CNx4xpUG.js} +981 -971
  4. package/dist/{index-BK4Mut6H.js → index-DEChud2_.js} +2 -2
  5. package/dist/{index-B5DLfOYb.js → index-DdACCkye.js} +23 -23
  6. package/dist/index.js +1 -1
  7. package/dist/stores/app.d.ts +8 -2
  8. package/dist/stores/auth.d.ts +2 -2
  9. package/dist/style.css +1 -1
  10. package/package.json +94 -94
  11. package/src/App.vue +48 -48
  12. package/src/api/index.ts +7 -7
  13. package/src/assets/styles/_dark.scss +639 -639
  14. package/src/assets/styles/_root.scss +183 -183
  15. package/src/assets/styles/_variables.scss +69 -69
  16. package/src/assets/styles/index.scss +460 -460
  17. package/src/components/Layout/Header.vue +2 -2
  18. package/src/components/Layout/MixTopMenu.vue +1185 -1185
  19. package/src/components/Layout/Sidebar.vue +229 -229
  20. package/src/components/Layout/SidebarMenuItem.vue +163 -163
  21. package/src/components/Layout/TopMenu.vue +1177 -1177
  22. package/src/components/Layout/index.vue +199 -199
  23. package/src/composables/useI18n.ts +43 -43
  24. package/src/index.ts +114 -100
  25. package/src/router/layoutRoute.ts +70 -70
  26. package/src/stores/app.ts +9 -0
  27. package/src/stores/index.ts +15 -15
  28. package/src/stores/locale.ts +66 -66
  29. package/src/stores/user.ts +0 -2
  30. package/src/types/api.d.ts +0 -1
  31. package/src/types/json-bigint.d.ts +18 -18
  32. package/src/types/xto.d.ts +172 -172
  33. package/src/utils/request.ts +184 -184
  34. package/src/views/dashboard/index.vue +545 -545
  35. package/src/views/error/403.vue +251 -251
  36. package/src/views/error/404.vue +253 -253
  37. package/src/views/login/index.vue +586 -586
  38. package/src/views/system/menu/index.vue +690 -690
  39. package/src/views/system/role/index.vue +583 -583
  40. package/src/views/system/user/index.vue +655 -655
  41. package/vite.config.ts +139 -139
  42. package/dist/assets/404-C9Uh6Uu-.css +0 -1
  43. package/dist/assets/404-fVB40gfP.js +0 -1
  44. package/dist/assets/404-zjGLLssH.js +0 -1
  45. package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
  46. package/dist/assets/index-B2Y_ySNp.js +0 -2
  47. package/dist/assets/index-B5xc4gQB.css +0 -1
  48. package/dist/assets/index-B75sburk.js +0 -1
  49. package/dist/assets/index-BBdRdMfs.js +0 -1
  50. package/dist/assets/index-BDgOY6Rp.js +0 -1
  51. package/dist/assets/index-BIoRANs0.js +0 -1
  52. package/dist/assets/index-BRR97dc6.js +0 -1
  53. package/dist/assets/index-Bz0BgZQ1.js +0 -1
  54. package/dist/assets/index-CAdztNsv.css +0 -1
  55. package/dist/assets/index-CCXrcISf.css +0 -1
  56. package/dist/assets/index-CDPHn9Pd.js +0 -1
  57. package/dist/assets/index-CfpZmcpk.css +0 -1
  58. package/dist/assets/index-Cpew6d-v.css +0 -1
  59. package/dist/assets/index-CwJSA85U.js +0 -1
  60. package/dist/assets/index-CwRA10ac.js +0 -1
  61. package/dist/assets/index-D8NDxq9d.js +0 -1
  62. package/dist/assets/index-DEB6-Iv_.js +0 -2
  63. package/dist/assets/index-DM4Ezclc.css +0 -1
  64. package/dist/assets/index-DYv7nImj.css +0 -1
  65. package/dist/assets/index-Dm3Gq6SY.js +0 -1
  66. package/dist/assets/index-DxbgF-OR.js +0 -1
  67. package/dist/assets/index-RUdXk1fA.css +0 -1
  68. package/dist/assets/index-_xB0udHf.js +0 -1
  69. package/dist/assets/index-t-2Y0KhA.css +0 -1
  70. package/dist/assets/vendor-CUVPinTg.js +0 -13
  71. package/dist/assets/vue-vendor-Bpie-0gH.js +0 -29
  72. package/dist/assets/vue-vendor-DeJXJVbN.js +0 -29
  73. package/dist/assets/xto-base-C3XNcx7i.js +0 -1
  74. package/dist/assets/xto-base-CL2NKZJJ.css +0 -1
  75. package/dist/assets/xto-base-PwLGsxxb.js +0 -1
  76. package/dist/assets/xto-business--V1F5Gwb.css +0 -1
  77. package/dist/assets/xto-core-B1Ho_Ytu.js +0 -1
  78. package/dist/assets/xto-core-CtL4zKiV.js +0 -1
  79. package/dist/assets/xto-data-Coeo_ZYH.js +0 -1
  80. package/dist/assets/xto-data-MxZsiJgi.css +0 -1
  81. package/dist/assets/xto-data-bCXQa7fT.js +0 -1
  82. package/dist/assets/xto-feedback-Bxx38c3P.css +0 -1
  83. package/dist/assets/xto-feedback-CFysasJi.js +0 -1
  84. package/dist/assets/xto-feedback-CPydp0kn.js +0 -1
  85. package/dist/assets/xto-form-Cu6q3VLG.css +0 -1
  86. package/dist/assets/xto-form-DBlhgyXp.js +0 -1
  87. package/dist/assets/xto-form-bywohdAf.js +0 -1
  88. package/dist/assets/xto-layout-BDD6sSlM.css +0 -1
  89. package/dist/assets/xto-navigation-Bbdpine9.js +0 -1
  90. package/dist/assets/xto-navigation-I2o1CycT.js +0 -1
  91. package/dist/assets/xto-navigation-XfpyMpEo.css +0 -1
  92. package/dist/index-58aI1w0v.js +0 -515
  93. package/dist/index-A_B_Ap_A.js +0 -4240
  94. package/dist/index-B-lMqzxZ.js +0 -479
  95. package/dist/index-B6s_uLJE.js +0 -189
  96. package/dist/index-BAmYUT0G.js +0 -189
  97. package/dist/index-BJlOXgu5.js +0 -515
  98. package/dist/index-BMQao91y.js +0 -189
  99. package/dist/index-BRvi9qW-.js +0 -515
  100. package/dist/index-BVGW4DDQ.js +0 -189
  101. package/dist/index-BXg94yA2.js +0 -515
  102. package/dist/index-BYAkZ2gD.js +0 -641
  103. package/dist/index-BfXnrw05.js +0 -515
  104. package/dist/index-Bmb0rt9C.js +0 -641
  105. package/dist/index-Bmf0YbVq.js +0 -189
  106. package/dist/index-C1BnOFy7.js +0 -3145
  107. package/dist/index-C1j4f3mM.js +0 -479
  108. package/dist/index-C2-a5KSQ.js +0 -4233
  109. package/dist/index-C3K89jzC.js +0 -515
  110. package/dist/index-C92NkXAn.js +0 -479
  111. package/dist/index-CAHSv7LK.js +0 -4285
  112. package/dist/index-CVH7bDsl.js +0 -4285
  113. package/dist/index-Ccp6zfq-.js +0 -4290
  114. package/dist/index-CeZ0CSSs.js +0 -641
  115. package/dist/index-Cf8E7FM1.js +0 -4270
  116. package/dist/index-CgyQqbdx.js +0 -189
  117. package/dist/index-ChowNrlU.js +0 -641
  118. package/dist/index-CvQgEgUM.js +0 -641
  119. package/dist/index-D25KzR0I.js +0 -479
  120. package/dist/index-D4LWXVnG.js +0 -515
  121. package/dist/index-DCApv1oX.js +0 -641
  122. package/dist/index-DCBIjLHy.js +0 -515
  123. package/dist/index-DEYOivza.js +0 -641
  124. package/dist/index-DHH8Os_2.js +0 -189
  125. package/dist/index-DReodgBw.js +0 -4233
  126. package/dist/index-DTRJONCd.js +0 -515
  127. package/dist/index-DgffG7KK.js +0 -641
  128. package/dist/index-DjERNRXX.js +0 -515
  129. package/dist/index-DjXyzwL0.js +0 -479
  130. package/dist/index-DkOqM4e2.js +0 -3147
  131. package/dist/index-Ds8IV04t.js +0 -189
  132. package/dist/index-LSdsO2Ox.js +0 -479
  133. package/dist/index-UJixTdep.js +0 -479
  134. package/dist/index-WPRGF_GX.js +0 -189
  135. package/dist/index-WPWzllES.js +0 -641
  136. package/dist/index-Wl2Qg26t.js +0 -3147
  137. package/dist/index-dk0diNwi.js +0 -479
  138. package/dist/index-gBlRG4kk.js +0 -479
  139. package/dist/index-mVol7F2K.js +0 -479
  140. package/dist/index-xWU3J3OH.js +0 -641
  141. package/dist/index-zKJLxthI.js +0 -189
  142. package/dist/index.es.js +0 -95
  143. package/dist/index.html +0 -28
  144. package/dist/index.umd.js +0 -8
@@ -1,79 +1,86 @@
1
- import { x as U, y as tt, z as st, A as ot, B as at, o as pt, C as nt, D as Fe, m as vt, i as ht, E as _t, F as ft } from "./user-Qd_jMBaH.js";
2
- import { ref as g, computed as b, watch as ye, defineComponent as ae, resolveComponent as lt, openBlock as s, createBlock as O, unref as a, withCtx as L, createElementBlock as c, Fragment as K, renderList as G, createElementVNode as e, toDisplayString as x, createCommentVNode as A, normalizeClass as J, withDirectives as Ee, vShow as gt, createVNode as y, createTextVNode as he, onMounted as Ke, onUnmounted as je, vModelText as We, Transition as ke, withModifiers as Te, normalizeStyle as Ie, reactive as qe, createStaticVNode as ze, withKeys as yt, h as kt } from "vue";
1
+ import { x as N, y as tt, z as st, A as ot, B as nt, o as pt, C as at, D as Fe, m as vt, i as ht, E as _t, F as ft } from "./user-Qd_jMBaH.js";
2
+ import { ref as g, computed as w, watch as ye, defineComponent as ae, resolveComponent as lt, openBlock as o, createBlock as O, unref as n, withCtx as M, createElementBlock as c, Fragment as K, renderList as G, createElementVNode as e, toDisplayString as x, createCommentVNode as P, normalizeClass as J, withDirectives as Te, vShow as gt, createVNode as y, createTextVNode as he, onMounted as Ke, onUnmounted as je, vModelText as We, Transition as be, withModifiers as Ee, normalizeStyle as Ie, reactive as qe, createStaticVNode as Ue, withKeys as yt, h as bt } from "vue";
3
3
  import { defineStore as Ne } from "pinia";
4
- import { useRoute as be, useRouter as me, createRouter as He, createWebHistory as Ye } from "vue-router";
5
- import { SubMenu as Re, MenuItem as Se, Menu as Xe, Tabs as wt, TabPane as bt } from "@xto/navigation";
6
- import { Icon as N, Button as we } from "@xto/base";
4
+ import { useRoute as we, useRouter as me, createRouter as He, createWebHistory as Ye } from "vue-router";
5
+ import { SubMenu as Re, MenuItem as Se, Menu as Xe, Tabs as kt, TabPane as wt } from "@xto/navigation";
6
+ import { Icon as U, Button as ke } from "@xto/base";
7
7
  import { Drawer as Ge, Message as xt } from "@xto/feedback";
8
- import { Form as Ct, FormItem as Ae, Input as Qe, Checkbox as $t } from "@xto/form";
9
- import { createLocaleProvider as Mt, getSupportedLocales as Lt, useLocale as St } from "@xto/core/locale";
10
- const pe = Ne("app", () => {
11
- const t = g(U.get("appName") || "XTO App"), l = g(U.get("indexPath") || "/dashboard"), d = g(U.get("isDark") || !1), i = g(U.get("theme") || "light"), o = g(U.get("layout") || "sidebar"), r = g(U.get("isCollapsed") || !1), _ = g(U.get("showTabs") ?? !0), v = g(U.get("showFooter") ?? !0), u = g(U.get("showBreadcrumb") ?? !0), f = g(U.get("primaryColor") || "#409eff"), p = g([]), h = g([]), k = b(() => d.value ? "dark" : "light"), j = (E) => {
12
- t.value = E, U.set("appName", E);
13
- }, D = (E) => {
14
- l.value = E, U.set("indexPath", E);
15
- }, W = () => {
16
- d.value = !d.value, i.value = d.value ? "dark" : "light", B();
17
- }, V = (E) => {
18
- i.value = E, d.value = E === "dark", B();
8
+ import { Form as Ct, FormItem as Pe, Input as Qe, Checkbox as $t } from "@xto/form";
9
+ import { createLocaleProvider as Lt, getSupportedLocales as Mt, useLocale as St } from "@xto/core/locale";
10
+ const de = Ne("app", () => {
11
+ const t = g(N.get("appName") || "XTO App"), l = g(N.get("indexPath") || "/dashboard"), d = g(N.get("loginPath") || "/login"), i = g(N.get("isDark") || !1), s = g(N.get("theme") || "light"), r = g(N.get("layout") || "sidebar"), _ = g(N.get("isCollapsed") || !1), v = g(N.get("showTabs") ?? !0), u = g(N.get("showFooter") ?? !0), f = g(N.get("showBreadcrumb") ?? !0), h = g(N.get("primaryColor") || "#409eff"), m = g([]), b = g([]), j = w(() => i.value ? "dark" : "light"), D = (z) => {
12
+ t.value = z, N.set("appName", z);
13
+ }, W = (z) => {
14
+ l.value = z, N.set("indexPath", z);
15
+ }, V = (z) => {
16
+ d.value = z, N.set("loginPath", z);
19
17
  }, B = () => {
20
- const E = document.documentElement;
21
- d.value ? E.classList.add("dark") : E.classList.remove("dark"), U.set("isDark", d.value), U.set("theme", i.value);
22
- }, H = () => {
23
- r.value = !r.value, U.set("isCollapsed", r.value);
24
- }, Q = (E) => {
25
- o.value = E, U.set("layout", E);
18
+ i.value = !i.value, s.value = i.value ? "dark" : "light", Z();
19
+ }, H = (z) => {
20
+ s.value = z, i.value = z === "dark", Z();
21
+ }, Z = () => {
22
+ const z = document.documentElement;
23
+ i.value ? z.classList.add("dark") : z.classList.remove("dark"), N.set("isDark", i.value), N.set("theme", s.value);
26
24
  }, Y = () => {
27
- _.value = !_.value, U.set("showTabs", _.value);
28
- }, q = () => {
29
- v.value = !v.value, U.set("showFooter", v.value);
25
+ _.value = !_.value, N.set("isCollapsed", _.value);
26
+ }, q = (z) => {
27
+ r.value = z, N.set("layout", z);
30
28
  }, ee = () => {
31
- u.value = !u.value, U.set("showBreadcrumb", u.value);
32
- }, T = (E) => {
33
- f.value = E, document.documentElement.style.setProperty("--color-primary", E), U.set("primaryColor", E);
34
- }, I = (E) => {
35
- p.value.includes(E) || p.value.push(E);
36
- }, P = (E) => {
37
- const de = p.value.indexOf(E);
38
- de > -1 && p.value.splice(de, 1);
39
- }, X = () => {
40
- p.value = [];
41
- }, F = (E) => {
42
- h.value = E;
29
+ v.value = !v.value, N.set("showTabs", v.value);
30
+ }, E = () => {
31
+ u.value = !u.value, N.set("showFooter", u.value);
32
+ }, I = () => {
33
+ f.value = !f.value, N.set("showBreadcrumb", f.value);
34
+ }, A = (z) => {
35
+ h.value = z, document.documentElement.style.setProperty("--color-primary", z), N.set("primaryColor", z);
36
+ }, X = (z) => {
37
+ m.value.includes(z) || m.value.push(z);
38
+ }, F = (z) => {
39
+ const oe = m.value.indexOf(z);
40
+ oe > -1 && m.value.splice(oe, 1);
43
41
  }, se = () => {
44
- B(), f.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", f.value);
42
+ m.value = [];
43
+ }, ie = (z) => {
44
+ b.value = z;
45
+ }, pe = () => {
46
+ Z(), h.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", h.value);
45
47
  };
46
- return ye(d, B), {
48
+ return ye(i, Z), {
47
49
  appName: t,
48
50
  indexPath: l,
49
- isDark: d,
50
- theme: i,
51
- layout: o,
52
- isCollapsed: r,
53
- showTabs: _,
54
- showFooter: v,
55
- showBreadcrumb: u,
56
- primaryColor: f,
57
- cachedViews: p,
58
- mixSubMenus: h,
59
- themeClass: k,
60
- setAppName: j,
61
- setIndexPath: D,
62
- toggleTheme: W,
63
- toggleCollapse: H,
64
- setTheme: V,
65
- setLayout: Q,
66
- toggleTabs: Y,
67
- toggleFooter: q,
68
- toggleBreadcrumb: ee,
69
- setPrimaryColor: T,
70
- addCachedView: I,
71
- removeCachedView: P,
72
- clearCachedViews: X,
73
- setMixSubMenus: F,
74
- initTheme: se
51
+ loginPath: d,
52
+ isDark: i,
53
+ theme: s,
54
+ layout: r,
55
+ isCollapsed: _,
56
+ showTabs: v,
57
+ showFooter: u,
58
+ showBreadcrumb: f,
59
+ primaryColor: h,
60
+ cachedViews: m,
61
+ mixSubMenus: b,
62
+ themeClass: j,
63
+ setAppName: D,
64
+ setIndexPath: W,
65
+ setLoginPath: V,
66
+ toggleTheme: B,
67
+ toggleCollapse: Y,
68
+ setTheme: H,
69
+ setLayout: q,
70
+ toggleTabs: ee,
71
+ toggleFooter: E,
72
+ toggleBreadcrumb: I,
73
+ setPrimaryColor: A,
74
+ addCachedView: X,
75
+ removeCachedView: F,
76
+ clearCachedViews: se,
77
+ setMixSubMenus: ie,
78
+ initTheme: pe
75
79
  };
76
- }), Pe = "menu_list", De = "permission_list", It = {
80
+ }), It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81
+ __proto__: null,
82
+ useAppStore: de
83
+ }, Symbol.toStringTag, { value: "Module" })), Ae = "menu_list", De = "permission_list", Nt = {
77
84
  menuCode: "home",
78
85
  menuName: "首页",
79
86
  menuUrl: "/dashboard",
@@ -88,109 +95,109 @@ function rt(t) {
88
95
  children: l.children ? rt(l.children) : void 0
89
96
  }));
90
97
  }
91
- function Nt(t) {
98
+ function zt(t) {
92
99
  const l = [];
93
100
  function d(i) {
94
- i.forEach((o) => {
95
- o.type === 1 && o.menuCode && l.push(o.menuCode), o.children && d(o.children);
101
+ i.forEach((s) => {
102
+ s.type === 1 && s.menuCode && l.push(s.menuCode), s.children && d(s.children);
96
103
  });
97
104
  }
98
105
  return d(t), l;
99
106
  }
100
- const ce = Ne("menu", () => {
101
- const t = g(U.get(Pe) || []), l = g(U.get(De) || []), d = b(() => t.value.length > 0);
107
+ const ue = Ne("menu", () => {
108
+ const t = g(N.get(Ae) || []), l = g(N.get(De) || []), d = w(() => t.value.length > 0);
102
109
  return {
103
110
  menuList: t,
104
111
  permissions: l,
105
112
  hasMenu: d,
106
113
  setMenuList: (_) => {
107
- l.value = Nt(_), U.set(De, l.value);
114
+ l.value = zt(_), N.set(De, l.value);
108
115
  const v = rt(_);
109
- t.value = [It, ...v], U.set(Pe, t.value);
116
+ t.value = [Nt, ...v], N.set(Ae, t.value);
110
117
  },
111
118
  clearMenu: () => {
112
- t.value = [], l.value = [], U.remove(Pe), U.remove(De);
119
+ t.value = [], l.value = [], N.remove(Ae), N.remove(De);
113
120
  },
114
121
  hasPermission: (_) => Array.isArray(_) ? _.some((v) => l.value.includes(v)) : l.value.includes(_)
115
122
  };
116
- }), Ve = "user_info", ne = Ne("user", () => {
117
- const t = g(U.get(Ve)), l = b(() => !!t.value), d = b(() => {
118
- var h;
119
- return ((h = t.value) == null ? void 0 : h.userId) || "";
120
- }), i = b(() => {
121
- var h;
122
- return ((h = t.value) == null ? void 0 : h.userName) || "";
123
- }), o = b(() => {
124
- var h;
125
- return ((h = t.value) == null ? void 0 : h.departmentName) || "";
126
- }), r = b(() => {
127
- var h;
128
- return ((h = t.value) == null ? void 0 : h.email) || "";
129
- }), _ = b(() => {
130
- var h;
131
- return ((h = t.value) == null ? void 0 : h.mobilePhone) || "";
132
- }), v = b(() => {
133
- var h;
134
- return ((h = t.value) == null ? void 0 : h.positionName) || "";
135
- }), u = b(() => {
136
- var h;
137
- return ((h = t.value) == null ? void 0 : h.avatar) || "";
123
+ }), Ve = "user_info", le = Ne("user", () => {
124
+ const t = g(N.get(Ve)), l = w(() => !!t.value), d = w(() => {
125
+ var m;
126
+ return ((m = t.value) == null ? void 0 : m.userId) || "";
127
+ }), i = w(() => {
128
+ var m;
129
+ return ((m = t.value) == null ? void 0 : m.userName) || "";
130
+ }), s = w(() => {
131
+ var m;
132
+ return ((m = t.value) == null ? void 0 : m.departmentName) || "";
133
+ }), r = w(() => {
134
+ var m;
135
+ return ((m = t.value) == null ? void 0 : m.email) || "";
136
+ }), _ = w(() => {
137
+ var m;
138
+ return ((m = t.value) == null ? void 0 : m.mobilePhone) || "";
139
+ }), v = w(() => {
140
+ var m;
141
+ return ((m = t.value) == null ? void 0 : m.positionName) || "";
142
+ }), u = w(() => {
143
+ var m;
144
+ return ((m = t.value) == null ? void 0 : m.avatar) || "";
138
145
  });
139
146
  return {
140
147
  userInfo: t,
141
148
  isLoggedIn: l,
142
149
  userId: d,
143
150
  userName: i,
144
- departmentName: o,
151
+ departmentName: s,
145
152
  email: r,
146
153
  mobilePhone: _,
147
154
  positionName: v,
148
155
  avatar: u,
149
- setUserInfo: (h) => {
150
- t.value = h, U.set(Ve, h);
156
+ setUserInfo: (m) => {
157
+ t.value = m, N.set(Ve, m);
151
158
  },
152
159
  clearUserInfo: () => {
153
- t.value = null, U.remove(Ve);
160
+ t.value = null, N.remove(Ve);
154
161
  }
155
162
  };
156
- }), Ue = Ne("auth", () => {
157
- const t = g(tt()), l = b(() => st()), d = g(""), i = g(""), o = g(""), r = g("/login");
163
+ }), ze = Ne("auth", () => {
164
+ const t = g(tt()), l = w(() => st()), d = g(""), i = g(""), s = g(""), r = g("/login");
158
165
  return {
159
166
  token: t,
160
167
  isLoggedIn: l,
161
168
  baseUrl: d,
162
169
  appId: i,
163
- clientId: o,
170
+ clientId: s,
164
171
  loginPath: r,
165
- login: (k) => {
166
- t.value = k.access_token, at(k);
172
+ login: (b) => {
173
+ t.value = b.access_token, nt(b);
167
174
  },
168
175
  logout: () => {
169
176
  t.value = null, ot();
170
177
  },
171
- setBaseUrl: (k) => {
172
- d.value = k;
178
+ setBaseUrl: (b) => {
179
+ d.value = b;
173
180
  },
174
- setAppId: (k) => {
175
- i.value = k;
181
+ setAppId: (b) => {
182
+ i.value = b;
176
183
  },
177
- setClientId: (k) => {
178
- o.value = k;
184
+ setClientId: (b) => {
185
+ s.value = b;
179
186
  },
180
- setLoginPath: (k) => {
181
- r.value = k;
187
+ setLoginPath: (b) => {
188
+ r.value = b;
182
189
  }
183
190
  };
184
- }), Ut = { class: "menu-item__content" }, zt = { class: "menu-item__icon" }, Et = {
191
+ }), Ut = { class: "menu-item__content" }, Tt = { class: "menu-item__icon" }, Et = {
185
192
  key: 1,
186
193
  class: "menu-item__char"
187
- }, Tt = { class: "menu-item__text" }, At = { class: "menu-item__content" }, Pt = {
194
+ }, Pt = { class: "menu-item__text" }, At = { class: "menu-item__content" }, Dt = {
188
195
  key: 0,
189
196
  class: "menu-item__icon"
190
- }, Dt = {
197
+ }, Vt = {
191
198
  key: 1,
192
199
  class: "menu-item__char"
193
- }, Vt = { class: "menu-item__text" }, Ot = /* @__PURE__ */ ae({
200
+ }, Ot = { class: "menu-item__text" }, Bt = /* @__PURE__ */ ae({
194
201
  __name: "SidebarMenuItem",
195
202
  props: {
196
203
  menu: {}
@@ -301,7 +308,7 @@ const ce = Ne("menu", () => {
301
308
  ]), i = (u) => {
302
309
  if (!u || u === "") return "";
303
310
  if (u.startsWith("tineco-icon-")) {
304
- const p = u.replace("tineco-icon-", "");
311
+ const h = u.replace("tineco-icon-", "");
305
312
  return {
306
313
  home: "home",
307
314
  dashboard: "dashboard",
@@ -315,7 +322,7 @@ const ce = Ne("menu", () => {
315
322
  chart: "chart",
316
323
  report: "report",
317
324
  analytics: "analytics"
318
- }[p] || p;
325
+ }[h] || h;
319
326
  }
320
327
  return {
321
328
  dashboard: "dashboard",
@@ -335,64 +342,64 @@ const ce = Ne("menu", () => {
335
342
  list: "list",
336
343
  grid: "grid"
337
344
  }[u] || u;
338
- }, o = (u) => u ? u.charAt(0) : "", r = (u) => d.has(u), _ = b(() => l.menu.menuId || l.menu.menuCode || l.menu.menuUrl || ""), v = b(() => l.menu.children && l.menu.children.length > 0);
345
+ }, s = (u) => u ? u.charAt(0) : "", r = (u) => d.has(u), _ = w(() => l.menu.menuId || l.menu.menuCode || l.menu.menuUrl || ""), v = w(() => l.menu.children && l.menu.children.length > 0);
339
346
  return (u, f) => {
340
- const p = lt("SidebarMenuItem", !0);
341
- return v.value ? (s(), O(a(Re), {
347
+ const h = lt("SidebarMenuItem", !0);
348
+ return v.value ? (o(), O(n(Re), {
342
349
  key: 0,
343
350
  index: _.value
344
351
  }, {
345
- title: L(() => [
352
+ title: M(() => [
346
353
  e("span", Ut, [
347
- e("span", zt, [
348
- r(i(t.menu.icon)) ? (s(), O(a(N), {
354
+ e("span", Tt, [
355
+ r(i(t.menu.icon)) ? (o(), O(n(U), {
349
356
  key: 0,
350
357
  name: i(t.menu.icon),
351
358
  size: 16
352
- }, null, 8, ["name"])) : (s(), c("span", Et, x(o(t.menu.menuName)), 1))
359
+ }, null, 8, ["name"])) : (o(), c("span", Et, x(s(t.menu.menuName)), 1))
353
360
  ]),
354
- e("span", Tt, x(t.menu.menuName), 1)
361
+ e("span", Pt, x(t.menu.menuName), 1)
355
362
  ])
356
363
  ]),
357
- default: L(() => [
358
- (s(!0), c(K, null, G(t.menu.children, (h) => (s(), O(p, {
359
- key: h.menuId || h.menuCode || h.menuUrl,
360
- menu: h
364
+ default: M(() => [
365
+ (o(!0), c(K, null, G(t.menu.children, (m) => (o(), O(h, {
366
+ key: m.menuId || m.menuCode || m.menuUrl,
367
+ menu: m
361
368
  }, null, 8, ["menu"]))), 128))
362
369
  ]),
363
370
  _: 1
364
- }, 8, ["index"])) : (s(), O(a(Se), {
371
+ }, 8, ["index"])) : (o(), O(n(Se), {
365
372
  key: 1,
366
373
  index: t.menu.menuUrl || _.value
367
374
  }, {
368
- default: L(() => [
375
+ default: M(() => [
369
376
  e("span", At, [
370
- t.menu.menuName !== "首页" ? (s(), c("span", Pt, [
371
- r(i(t.menu.icon)) ? (s(), O(a(N), {
377
+ t.menu.menuName !== "首页" ? (o(), c("span", Dt, [
378
+ r(i(t.menu.icon)) ? (o(), O(n(U), {
372
379
  key: 0,
373
380
  name: i(t.menu.icon),
374
381
  size: 16
375
- }, null, 8, ["name"])) : (s(), c("span", Dt, x(o(t.menu.menuName)), 1))
376
- ])) : A("", !0),
377
- e("span", Vt, x(t.menu.menuName), 1)
382
+ }, null, 8, ["name"])) : (o(), c("span", Vt, x(s(t.menu.menuName)), 1))
383
+ ])) : P("", !0),
384
+ e("span", Ot, x(t.menu.menuName), 1)
378
385
  ])
379
386
  ]),
380
387
  _: 1
381
388
  }, 8, ["index"]));
382
389
  };
383
390
  }
384
- }), le = (t, l) => {
391
+ }), re = (t, l) => {
385
392
  const d = t.__vccOpts || t;
386
- for (const [i, o] of l)
387
- d[i] = o;
393
+ for (const [i, s] of l)
394
+ d[i] = s;
388
395
  return d;
389
- }, Bt = /* @__PURE__ */ le(Ot, [["__scopeId", "data-v-63a22b69"]]), Rt = {
396
+ }, Rt = /* @__PURE__ */ re(Bt, [["__scopeId", "data-v-f5865e28"]]), Ft = {
390
397
  key: 0,
391
398
  class: "sidebar__logo"
392
- }, Ft = ["src"], Kt = {
399
+ }, Kt = ["src"], jt = {
393
400
  key: 1,
394
401
  class: "sidebar__user"
395
- }, jt = { class: "sidebar__user-info" }, Wt = { class: "sidebar__user-name" }, qt = { class: "sidebar__user-role" }, Oe = "sidebar_opened_menus", Be = "sidebar_menu_list_key", Ht = /* @__PURE__ */ ae({
402
+ }, Wt = { class: "sidebar__user-info" }, qt = { class: "sidebar__user-name" }, Ht = { class: "sidebar__user-role" }, Oe = "sidebar_opened_menus", Be = "sidebar_menu_list_key", Yt = /* @__PURE__ */ ae({
396
403
  __name: "Sidebar",
397
404
  props: {
398
405
  menuList: { default: () => [] },
@@ -401,131 +408,131 @@ const ce = Ne("menu", () => {
401
408
  logoSrc: { default: "/vite.svg" }
402
409
  },
403
410
  setup(t) {
404
- const l = t, d = be(), i = me(), o = ce(), r = ne(), _ = Ue(), v = pe(), u = b(() => l.menuList.length > 0 ? l.menuList : o.menuList), f = b(() => v.isCollapsed), p = b(() => d.path), h = (T) => T.menuId || T.menuCode || T.menuUrl || "", k = () => u.value.map(h).join(","), j = U.get(Be) || "", D = k(), W = j === D ? U.get(Oe) || [] : [], V = g(W);
405
- ye(V, (T) => {
406
- U.set(Oe, T), U.set(Be, k());
411
+ const l = t, d = we(), i = me(), s = ue(), r = le(), _ = ze(), v = de(), u = w(() => l.menuList.length > 0 ? l.menuList : s.menuList), f = w(() => v.isCollapsed), h = w(() => d.path), m = (E) => E.menuId || E.menuCode || E.menuUrl || "", b = () => u.value.map(m).join(","), j = N.get(Be) || "", D = b(), W = j === D ? N.get(Oe) || [] : [], V = g(W);
412
+ ye(V, (E) => {
413
+ N.set(Oe, E), N.set(Be, b());
407
414
  }, { deep: !0 });
408
- const B = (T, I, P = []) => {
415
+ const B = (E, I, A = []) => {
409
416
  var X;
410
- for (const F of T) {
417
+ for (const F of E) {
411
418
  if (F.menuUrl && (I === F.menuUrl || I.startsWith(F.menuUrl + "/")))
412
- return [...P, h(F)];
419
+ return [...A, m(F)];
413
420
  if ((X = F.children) != null && X.length) {
414
- const se = B(F.children, I, [...P, h(F)]);
421
+ const se = B(F.children, I, [...A, m(F)]);
415
422
  if (se) return se;
416
423
  }
417
424
  }
418
425
  return null;
419
426
  };
420
- ye([() => d.path, u], ([T, I]) => {
427
+ ye([() => d.path, u], ([E, I]) => {
421
428
  if (I.length > 0) {
422
- const P = B(I, T);
423
- if (P) {
424
- const X = P.slice(0, -1), F = /* @__PURE__ */ new Set([...V.value, ...X]);
429
+ const A = B(I, E);
430
+ if (A) {
431
+ const X = A.slice(0, -1), F = /* @__PURE__ */ new Set([...V.value, ...X]);
425
432
  V.value = Array.from(F);
426
433
  }
427
434
  }
428
- }, { immediate: !0 }), ye(u, (T, I) => {
429
- T !== I && (V.value = [], U.set(Oe, []), U.set(Be, k()));
435
+ }, { immediate: !0 }), ye(u, (E, I) => {
436
+ E !== I && (V.value = [], N.set(Oe, []), N.set(Be, b()));
430
437
  }, { immediate: !1 });
431
- const H = b(() => v.isDark ? "#1d1e1f" : "#fff"), Q = b(() => v.isDark ? "#cfd3dc" : "#303133"), Y = b(() => "#409eff"), q = (T) => {
432
- T && T !== d.path && i.push(T);
438
+ const H = w(() => v.isDark ? "#1d1e1f" : "#fff"), Z = w(() => v.isDark ? "#cfd3dc" : "#303133"), Y = w(() => "#409eff"), q = (E) => {
439
+ E && E !== d.path && i.push(E);
433
440
  }, ee = () => {
434
- _.logout(), r.clearUserInfo(), o.clearMenu(), i.push("/login");
441
+ _.logout(), r.clearUserInfo(), s.clearMenu(), i.push(v.loginPath);
435
442
  };
436
- return (T, I) => (s(), c("div", {
443
+ return (E, I) => (o(), c("div", {
437
444
  class: J(["sidebar", { "sidebar--collapsed": f.value }])
438
445
  }, [
439
- l.showLogo ? (s(), c("div", Rt, [
446
+ l.showLogo ? (o(), c("div", Ft, [
440
447
  e("img", {
441
448
  src: l.logoSrc,
442
449
  alt: "Logo",
443
450
  class: "sidebar__logo-img"
444
- }, null, 8, Ft),
445
- Ee(e("span", { class: "sidebar__logo-text" }, x(a(v).appName), 513), [
451
+ }, null, 8, Kt),
452
+ Te(e("span", { class: "sidebar__logo-text" }, x(n(v).appName), 513), [
446
453
  [gt, !f.value]
447
454
  ])
448
- ])) : A("", !0),
449
- y(a(Xe), {
450
- modelValue: p.value,
451
- "onUpdate:modelValue": I[0] || (I[0] = (P) => p.value = P),
455
+ ])) : P("", !0),
456
+ y(n(Xe), {
457
+ modelValue: h.value,
458
+ "onUpdate:modelValue": I[0] || (I[0] = (A) => h.value = A),
452
459
  openeds: V.value,
453
- "onUpdate:openeds": I[1] || (I[1] = (P) => V.value = P),
460
+ "onUpdate:openeds": I[1] || (I[1] = (A) => V.value = A),
454
461
  mode: "vertical",
455
462
  collapse: f.value,
456
463
  "collapse-transition": !1,
457
464
  "background-color": H.value,
458
- "text-color": Q.value,
465
+ "text-color": Z.value,
459
466
  "active-text-color": Y.value,
460
467
  class: "sidebar__menu",
461
468
  onSelect: q
462
469
  }, {
463
- default: L(() => [
464
- (s(!0), c(K, null, G(u.value, (P) => (s(), O(Bt, {
465
- key: h(P),
466
- menu: P
470
+ default: M(() => [
471
+ (o(!0), c(K, null, G(u.value, (A) => (o(), O(Rt, {
472
+ key: m(A),
473
+ menu: A
467
474
  }, null, 8, ["menu"]))), 128))
468
475
  ]),
469
476
  _: 1
470
477
  }, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
471
- l.showUser && !f.value ? (s(), c("div", Kt, [
472
- e("div", jt, [
473
- e("span", Wt, x(a(r).userName), 1),
474
- e("span", qt, x(a(r).departmentName), 1)
478
+ l.showUser && !f.value ? (o(), c("div", jt, [
479
+ e("div", Wt, [
480
+ e("span", qt, x(n(r).userName), 1),
481
+ e("span", Ht, x(n(r).departmentName), 1)
475
482
  ]),
476
- y(a(we), {
483
+ y(n(ke), {
477
484
  type: "text",
478
485
  size: "small",
479
486
  onClick: ee
480
487
  }, {
481
- default: L(() => [...I[2] || (I[2] = [
488
+ default: M(() => [...I[2] || (I[2] = [
482
489
  he("退出", -1)
483
490
  ])]),
484
491
  _: 1
485
492
  })
486
- ])) : A("", !0)
493
+ ])) : P("", !0)
487
494
  ], 2));
488
495
  }
489
- }), et = /* @__PURE__ */ le(Ht, [["__scopeId", "data-v-dcb0753a"]]), Yt = { class: "header" }, Xt = { class: "header__left" }, Gt = {
496
+ }), et = /* @__PURE__ */ re(Yt, [["__scopeId", "data-v-2ecab012"]]), Xt = { class: "header" }, Gt = { class: "header__left" }, Jt = {
490
497
  key: 0,
491
498
  class: "header__breadcrumb"
492
- }, Jt = {
499
+ }, Zt = {
493
500
  key: 0,
494
501
  class: "breadcrumb-separator"
495
- }, Zt = { class: "header__right" }, Qt = {
502
+ }, Qt = { class: "header__right" }, es = {
496
503
  key: 0,
497
504
  class: "header__search-dropdown"
498
- }, es = {
505
+ }, ts = {
499
506
  key: 0,
500
507
  class: "header__search-results"
501
- }, ts = ["onClick"], ss = {
508
+ }, ss = ["onClick"], os = {
502
509
  key: 0,
503
510
  class: "header__search-icon"
504
- }, os = {
511
+ }, ns = {
505
512
  key: 1,
506
513
  class: "header__search-char"
507
- }, as = { class: "header__search-item-title" }, ns = {
514
+ }, as = { class: "header__search-item-title" }, ls = {
508
515
  key: 1,
509
516
  class: "header__search-item-parent"
510
- }, ls = {
517
+ }, rs = {
511
518
  key: 1,
512
519
  class: "header__search-empty"
513
- }, rs = ["title"], is = { class: "header__avatar" }, cs = { class: "header__user-name" }, ds = {
520
+ }, is = ["title"], cs = { class: "header__avatar" }, ds = { class: "header__user-name" }, us = {
514
521
  key: 0,
515
522
  class: "header__dropdown"
516
- }, us = { class: "header__dropdown-header" }, ms = { class: "header__dropdown-avatar" }, ps = { class: "header__dropdown-info" }, vs = { class: "header__dropdown-name" }, hs = { class: "header__dropdown-role" }, _s = { class: "header__dropdown-menu" }, fs = { class: "settings-drawer" }, gs = { class: "settings-section" }, ys = { class: "settings-layout-options" }, ks = ["onClick"], ws = { class: "layout-option__preview" }, bs = {
523
+ }, ms = { class: "header__dropdown-header" }, ps = { class: "header__dropdown-avatar" }, vs = { class: "header__dropdown-info" }, hs = { class: "header__dropdown-name" }, _s = { class: "header__dropdown-role" }, fs = { class: "header__dropdown-menu" }, gs = { class: "settings-drawer" }, ys = { class: "settings-section" }, bs = { class: "settings-layout-options" }, ks = ["onClick"], ws = { class: "layout-option__preview" }, xs = {
517
524
  key: 0,
518
525
  class: "layout-preview-sidebar"
519
- }, xs = {
526
+ }, Cs = {
520
527
  key: 1,
521
528
  class: "layout-preview-top"
522
- }, Cs = {
529
+ }, $s = {
523
530
  key: 2,
524
531
  class: "layout-preview-mix"
525
- }, $s = { class: "layout-option__label" }, Ms = { class: "settings-section" }, Ls = { class: "settings-color-options" }, Ss = ["title", "onClick"], Is = { class: "settings-section" }, Ns = { class: "settings-switch-list" }, Us = { class: "settings-switch-item" }, zs = { class: "settings-switch-item" }, Es = /* @__PURE__ */ ae({
532
+ }, Ls = { class: "layout-option__label" }, Ms = { class: "settings-section" }, Ss = { class: "settings-color-options" }, Is = ["title", "onClick"], Ns = { class: "settings-section" }, zs = { class: "settings-switch-list" }, Us = { class: "settings-switch-item" }, Ts = { class: "settings-switch-item" }, Es = /* @__PURE__ */ ae({
526
533
  __name: "Header",
527
534
  setup(t) {
528
- const l = be(), d = me(), i = pe(), o = ne(), r = Ue(), _ = ce(), v = g(!1), u = g(!1), f = g(null), p = g(!1), h = g(!1), k = g(""), j = g(null), D = g(!1), W = [
535
+ const l = we(), d = me(), i = de(), s = le(), r = ze(), _ = ue(), v = g(!1), u = g(!1), f = g(null), h = g(!1), m = g(!1), b = g(""), j = g(null), D = g(!1), W = [
529
536
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
530
537
  { value: "top", label: "顶部菜单", icon: "menu" },
531
538
  { value: "mix", label: "混合菜单", icon: "grid" }
@@ -536,15 +543,15 @@ const ce = Ne("menu", () => {
536
543
  { value: "#faad14", label: "日落橙" },
537
544
  { value: "#f5222d", label: "薄暮红" },
538
545
  { value: "#722ed1", label: "酱紫" }
539
- ], B = b(() => l.matched.filter((w) => w.meta && w.meta.title).map((w) => ({
540
- title: w.meta.title,
541
- path: w.path
542
- }))), H = (z, w = "") => {
543
- const Z = [];
544
- return z.forEach((C) => {
545
- C.children && C.children.length > 0 ? Z.push(...H(C.children, C.menuName)) : Z.push({ ...C, parentTitle: w, title: C.menuName, path: C.menuUrl });
546
- }), Z;
547
- }, Q = /* @__PURE__ */ new Set([
546
+ ], B = w(() => l.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
547
+ title: k.meta.title,
548
+ path: k.path
549
+ }))), H = (T, k = "") => {
550
+ const Q = [];
551
+ return T.forEach((C) => {
552
+ C.children && C.children.length > 0 ? Q.push(...H(C.children, C.menuName)) : Q.push({ ...C, parentTitle: k, title: C.menuName, path: C.menuUrl });
553
+ }), Q;
554
+ }, Z = /* @__PURE__ */ new Set([
548
555
  "arrow-up",
549
556
  "arrow-down",
550
557
  "arrow-left",
@@ -646,10 +653,10 @@ const ce = Ne("menu", () => {
646
653
  "sun",
647
654
  "theme",
648
655
  "skin"
649
- ]), Y = (z) => {
650
- if (!z || z === "") return "";
651
- if (z.startsWith("tineco-icon-")) {
652
- const Z = z.replace("tineco-icon-", "");
656
+ ]), Y = (T) => {
657
+ if (!T || T === "") return "";
658
+ if (T.startsWith("tineco-icon-")) {
659
+ const Q = T.replace("tineco-icon-", "");
653
660
  return {
654
661
  home: "home",
655
662
  dashboard: "dashboard",
@@ -663,7 +670,7 @@ const ce = Ne("menu", () => {
663
670
  chart: "chart",
664
671
  report: "report",
665
672
  analytics: "analytics"
666
- }[Z] || Z;
673
+ }[Q] || Q;
667
674
  }
668
675
  return {
669
676
  dashboard: "dashboard",
@@ -682,139 +689,139 @@ const ce = Ne("menu", () => {
682
689
  app: "app",
683
690
  list: "list",
684
691
  grid: "grid"
685
- }[z] || z;
686
- }, q = (z) => z ? z.charAt(0) : "", ee = (z) => Q.has(z), T = b(() => k.value.trim() ? H(_.menuList).filter(
687
- (w) => w.title.toLowerCase().includes(k.value.toLowerCase())
688
- ) : []), I = b(() => i.layout), P = () => {
692
+ }[T] || T;
693
+ }, q = (T) => T ? T.charAt(0) : "", ee = (T) => Z.has(T), E = w(() => b.value.trim() ? H(_.menuList).filter(
694
+ (k) => k.title.toLowerCase().includes(b.value.toLowerCase())
695
+ ) : []), I = w(() => i.layout), A = () => {
689
696
  i.toggleCollapse();
690
697
  }, X = () => {
691
698
  i.toggleTheme();
692
699
  }, F = () => {
693
700
  u.value = !0;
694
- }, se = (z) => {
695
- i.setLayout(z), u.value = !1;
696
- }, E = (z) => {
697
- D.value = z;
698
- const w = document.documentElement;
699
- z ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
700
- }, de = () => {
701
- E(!D.value), u.value = !1;
702
- }, re = () => {
701
+ }, se = (T) => {
702
+ i.setLayout(T), u.value = !1;
703
+ }, ie = (T) => {
704
+ D.value = T;
705
+ const k = document.documentElement;
706
+ T ? k.classList.add("grey-mode") : k.classList.remove("grey-mode");
707
+ }, pe = () => {
708
+ ie(!D.value), u.value = !1;
709
+ }, z = () => {
703
710
  i.toggleTheme(), u.value = !1;
704
- }, ue = () => {
711
+ }, oe = () => {
705
712
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
706
713
  }, _e = () => {
707
- p.value = !!document.fullscreenElement;
708
- }, ie = () => {
714
+ h.value = !!document.fullscreenElement;
715
+ }, ce = () => {
709
716
  v.value = !v.value;
710
- }, oe = () => {
717
+ }, ne = () => {
711
718
  v.value = !1;
712
719
  }, ve = () => {
713
- h.value = !1, k.value = "";
714
- }, xe = (z) => {
715
- d.push(z), ve();
716
- }, Ce = (z) => {
717
- i.setPrimaryColor(z), u.value = !1;
720
+ m.value = !1, b.value = "";
721
+ }, xe = (T) => {
722
+ d.push(T), ve();
723
+ }, Ce = (T) => {
724
+ i.setPrimaryColor(T), u.value = !1;
718
725
  }, $e = () => {
719
- oe(), d.push("/profile");
720
- }, Me = () => {
721
- oe(), d.push("/change-password");
726
+ ne(), d.push("/profile");
722
727
  }, Le = () => {
723
- oe(), r.logout(), o.clearUserInfo(), _.clearMenu(), d.push("/login");
724
- }, fe = (z) => {
725
- f.value && !f.value.contains(z.target) && oe(), j.value && !j.value.contains(z.target) && ve();
726
- }, ge = (z) => {
727
- z.key === "Escape" && (ve(), oe());
728
+ ne(), d.push("/change-password");
729
+ }, Me = () => {
730
+ ne(), r.logout(), s.clearUserInfo(), _.clearMenu(), d.push(i.loginPath);
731
+ }, fe = (T) => {
732
+ f.value && !f.value.contains(T.target) && ne(), j.value && !j.value.contains(T.target) && ve();
733
+ }, ge = (T) => {
734
+ T.key === "Escape" && (ve(), ne());
728
735
  };
729
736
  return Ke(() => {
730
737
  document.addEventListener("click", fe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", ge), i.initTheme(), D.value = document.documentElement.classList.contains("grey-mode");
731
738
  }), je(() => {
732
739
  document.removeEventListener("click", fe), document.removeEventListener("fullscreenchange", _e), document.removeEventListener("keydown", ge);
733
- }), (z, w) => {
734
- var Z;
735
- return s(), c("div", Yt, [
736
- e("div", Xt, [
740
+ }), (T, k) => {
741
+ var Q;
742
+ return o(), c("div", Xt, [
743
+ e("div", Gt, [
737
744
  e("div", {
738
745
  class: "header__collapse",
739
- onClick: P
746
+ onClick: A
740
747
  }, [
741
- y(a(N), {
742
- name: a(i).isCollapsed ? "menu-unfold" : "menu-fold",
748
+ y(n(U), {
749
+ name: n(i).isCollapsed ? "menu-unfold" : "menu-fold",
743
750
  size: 18
744
751
  }, null, 8, ["name"])
745
752
  ]),
746
- a(i).showBreadcrumb ? (s(), c("div", Gt, [
747
- (s(!0), c(K, null, G(B.value, (C, S) => (s(), c("span", {
753
+ n(i).showBreadcrumb ? (o(), c("div", Jt, [
754
+ (o(!0), c(K, null, G(B.value, (C, S) => (o(), c("span", {
748
755
  key: C.path
749
756
  }, [
750
- S > 0 ? (s(), c("span", Jt, "/")) : A("", !0),
757
+ S > 0 ? (o(), c("span", Zt, "/")) : P("", !0),
751
758
  e("span", {
752
759
  class: J({ "is-current": S === B.value.length - 1 })
753
760
  }, x(C.title), 3)
754
761
  ]))), 128))
755
- ])) : A("", !0)
762
+ ])) : P("", !0)
756
763
  ]),
757
- e("div", Zt, [
764
+ e("div", Qt, [
758
765
  e("div", {
759
766
  class: "header__search",
760
767
  ref_key: "searchRef",
761
768
  ref: j
762
769
  }, [
763
- y(a(N), {
770
+ y(n(U), {
764
771
  name: "search",
765
772
  size: 14,
766
773
  class: "header__search-icon"
767
774
  }),
768
- Ee(e("input", {
769
- "onUpdate:modelValue": w[0] || (w[0] = (C) => k.value = C),
775
+ Te(e("input", {
776
+ "onUpdate:modelValue": k[0] || (k[0] = (C) => b.value = C),
770
777
  type: "text",
771
778
  class: "header__search-input",
772
779
  placeholder: "搜索菜单...",
773
- onFocus: w[1] || (w[1] = (C) => h.value = !0)
780
+ onFocus: k[1] || (k[1] = (C) => m.value = !0)
774
781
  }, null, 544), [
775
- [We, k.value]
782
+ [We, b.value]
776
783
  ]),
777
- y(ke, { name: "search-dropdown" }, {
778
- default: L(() => [
779
- h.value && (T.value.length > 0 || k.value) ? (s(), c("div", Qt, [
780
- T.value.length > 0 ? (s(), c("div", es, [
781
- (s(!0), c(K, null, G(T.value, (C) => (s(), c("div", {
784
+ y(be, { name: "search-dropdown" }, {
785
+ default: M(() => [
786
+ m.value && (E.value.length > 0 || b.value) ? (o(), c("div", es, [
787
+ E.value.length > 0 ? (o(), c("div", ts, [
788
+ (o(!0), c(K, null, G(E.value, (C) => (o(), c("div", {
782
789
  key: C.path,
783
790
  class: "header__search-item",
784
791
  onClick: (S) => xe(C.path)
785
792
  }, [
786
- C.title !== "首页" ? (s(), c("span", ss, [
787
- ee(Y(C.icon)) ? (s(), O(a(N), {
793
+ C.title !== "首页" ? (o(), c("span", os, [
794
+ ee(Y(C.icon)) ? (o(), O(n(U), {
788
795
  key: 0,
789
796
  name: Y(C.icon),
790
797
  size: 16
791
- }, null, 8, ["name"])) : (s(), c("span", os, x(q(C.title)), 1))
792
- ])) : A("", !0),
798
+ }, null, 8, ["name"])) : (o(), c("span", ns, x(q(C.title)), 1))
799
+ ])) : P("", !0),
793
800
  e("span", as, x(C.title), 1),
794
- C.parentTitle ? (s(), c("span", ns, x(C.parentTitle), 1)) : A("", !0)
795
- ], 8, ts))), 128))
796
- ])) : (s(), c("div", ls, " 未找到匹配的菜单 "))
797
- ])) : A("", !0)
801
+ C.parentTitle ? (o(), c("span", ls, x(C.parentTitle), 1)) : P("", !0)
802
+ ], 8, ss))), 128))
803
+ ])) : (o(), c("div", rs, " 未找到匹配的菜单 "))
804
+ ])) : P("", !0)
798
805
  ]),
799
806
  _: 1
800
807
  })
801
808
  ], 512),
802
809
  e("div", {
803
810
  class: "header__action",
804
- onClick: ue,
805
- title: p.value ? "退出全屏" : "全屏"
811
+ onClick: oe,
812
+ title: h.value ? "退出全屏" : "全屏"
806
813
  }, [
807
- y(a(N), {
808
- name: p.value ? "fullscreen-exit" : "fullscreen",
814
+ y(n(U), {
815
+ name: h.value ? "fullscreen-exit" : "fullscreen",
809
816
  size: 16
810
817
  }, null, 8, ["name"])
811
- ], 8, rs),
818
+ ], 8, is),
812
819
  e("div", {
813
820
  class: "header__action",
814
821
  onClick: F,
815
822
  title: "换肤设置"
816
823
  }, [
817
- y(a(N), {
824
+ y(n(U), {
818
825
  name: "skin",
819
826
  size: 16
820
827
  })
@@ -824,8 +831,8 @@ const ce = Ne("menu", () => {
824
831
  onClick: X,
825
832
  title: "切换主题"
826
833
  }, [
827
- y(a(N), {
828
- name: a(i).isDark ? "sun" : "moon",
834
+ y(n(U), {
835
+ name: n(i).isDark ? "sun" : "moon",
829
836
  size: 16
830
837
  }, null, 8, ["name"])
831
838
  ]),
@@ -836,99 +843,99 @@ const ce = Ne("menu", () => {
836
843
  }, [
837
844
  e("div", {
838
845
  class: "header__user-trigger",
839
- onClick: Te(ie, ["stop"])
846
+ onClick: Ee(ce, ["stop"])
840
847
  }, [
841
- e("div", is, [
842
- e("span", null, x(((Z = a(o).userName) == null ? void 0 : Z.charAt(0)) || "U"), 1)
848
+ e("div", cs, [
849
+ e("span", null, x(((Q = n(s).userName) == null ? void 0 : Q.charAt(0)) || "U"), 1)
843
850
  ]),
844
- e("span", cs, x(a(o).userName), 1),
851
+ e("span", ds, x(n(s).userName), 1),
845
852
  e("span", {
846
853
  class: J(["header__user-arrow", { "is-active": v.value }])
847
854
  }, "▼", 2)
848
855
  ]),
849
- y(ke, { name: "dropdown" }, {
850
- default: L(() => {
856
+ y(be, { name: "dropdown" }, {
857
+ default: M(() => {
851
858
  var C;
852
859
  return [
853
- v.value ? (s(), c("div", ds, [
854
- e("div", us, [
855
- e("div", ms, [
856
- e("span", null, x(((C = a(o).userName) == null ? void 0 : C.charAt(0)) || "U"), 1)
857
- ]),
860
+ v.value ? (o(), c("div", us, [
861
+ e("div", ms, [
858
862
  e("div", ps, [
859
- e("div", vs, x(a(o).userName), 1),
860
- e("div", hs, x(a(o).departmentName), 1)
863
+ e("span", null, x(((C = n(s).userName) == null ? void 0 : C.charAt(0)) || "U"), 1)
864
+ ]),
865
+ e("div", vs, [
866
+ e("div", hs, x(n(s).userName), 1),
867
+ e("div", _s, x(n(s).departmentName), 1)
861
868
  ])
862
869
  ]),
863
- w[7] || (w[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
864
- e("div", _s, [
870
+ k[7] || (k[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
871
+ e("div", fs, [
865
872
  e("div", {
866
873
  class: "header__dropdown-item",
867
874
  onClick: $e
868
875
  }, [
869
- y(a(N), {
876
+ y(n(U), {
870
877
  name: "user",
871
878
  size: 16
872
879
  }),
873
- w[3] || (w[3] = e("span", null, "个人信息", -1))
880
+ k[3] || (k[3] = e("span", null, "个人信息", -1))
874
881
  ]),
875
882
  e("div", {
876
883
  class: "header__dropdown-item",
877
- onClick: Me
884
+ onClick: Le
878
885
  }, [
879
- y(a(N), {
886
+ y(n(U), {
880
887
  name: "lock",
881
888
  size: 16
882
889
  }),
883
- w[4] || (w[4] = e("span", null, "修改密码", -1))
890
+ k[4] || (k[4] = e("span", null, "修改密码", -1))
884
891
  ]),
885
- w[6] || (w[6] = e("div", { class: "header__dropdown-divider" }, null, -1)),
892
+ k[6] || (k[6] = e("div", { class: "header__dropdown-divider" }, null, -1)),
886
893
  e("div", {
887
894
  class: "header__dropdown-item header__dropdown-item--danger",
888
- onClick: Le
895
+ onClick: Me
889
896
  }, [
890
- y(a(N), {
897
+ y(n(U), {
891
898
  name: "logout",
892
899
  size: 16
893
900
  }),
894
- w[5] || (w[5] = e("span", null, "退出登录", -1))
901
+ k[5] || (k[5] = e("span", null, "退出登录", -1))
895
902
  ])
896
903
  ])
897
- ])) : A("", !0)
904
+ ])) : P("", !0)
898
905
  ];
899
906
  }),
900
907
  _: 1
901
908
  })
902
909
  ], 512)
903
910
  ]),
904
- y(a(Ge), {
911
+ y(n(Ge), {
905
912
  modelValue: u.value,
906
- "onUpdate:modelValue": w[2] || (w[2] = (C) => u.value = C),
913
+ "onUpdate:modelValue": k[2] || (k[2] = (C) => u.value = C),
907
914
  title: "换肤设置",
908
915
  direction: "rtl",
909
916
  size: "320px"
910
917
  }, {
911
- default: L(() => [
912
- e("div", fs, [
913
- e("div", gs, [
914
- w[11] || (w[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
915
- e("div", ys, [
916
- (s(), c(K, null, G(W, (C) => e("div", {
918
+ default: M(() => [
919
+ e("div", gs, [
920
+ e("div", ys, [
921
+ k[11] || (k[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
922
+ e("div", bs, [
923
+ (o(), c(K, null, G(W, (C) => e("div", {
917
924
  key: C.value,
918
925
  class: J(["layout-option", { "is-active": I.value === C.value }]),
919
926
  onClick: (S) => se(C.value)
920
927
  }, [
921
928
  e("div", ws, [
922
- C.value === "sidebar" ? (s(), c("div", bs, [...w[8] || (w[8] = [
929
+ C.value === "sidebar" ? (o(), c("div", xs, [...k[8] || (k[8] = [
923
930
  e("div", { class: "preview-aside" }, null, -1),
924
931
  e("div", { class: "preview-main" }, [
925
932
  e("div", { class: "preview-header" }),
926
933
  e("div", { class: "preview-content" })
927
934
  ], -1)
928
- ])])) : C.value === "top" ? (s(), c("div", xs, [...w[9] || (w[9] = [
935
+ ])])) : C.value === "top" ? (o(), c("div", Cs, [...k[9] || (k[9] = [
929
936
  e("div", { class: "preview-header-full" }, null, -1),
930
937
  e("div", { class: "preview-content-full" }, null, -1)
931
- ])])) : (s(), c("div", Cs, [...w[10] || (w[10] = [
938
+ ])])) : (o(), c("div", $s, [...k[10] || (k[10] = [
932
939
  e("div", { class: "preview-header-mix" }, [
933
940
  e("div", { class: "preview-mix-left" })
934
941
  ], -1),
@@ -938,47 +945,47 @@ const ce = Ne("menu", () => {
938
945
  ], -1)
939
946
  ])]))
940
947
  ]),
941
- e("span", $s, x(C.label), 1)
948
+ e("span", Ls, x(C.label), 1)
942
949
  ], 10, ks)), 64))
943
950
  ])
944
951
  ]),
945
952
  e("div", Ms, [
946
- w[12] || (w[12] = e("div", { class: "settings-title" }, "主题色", -1)),
947
- e("div", Ls, [
948
- (s(), c(K, null, G(V, (C) => e("div", {
953
+ k[12] || (k[12] = e("div", { class: "settings-title" }, "主题色", -1)),
954
+ e("div", Ss, [
955
+ (o(), c(K, null, G(V, (C) => e("div", {
949
956
  key: C.value,
950
- class: J(["color-option", { "is-active": a(i).primaryColor === C.value }]),
957
+ class: J(["color-option", { "is-active": n(i).primaryColor === C.value }]),
951
958
  style: Ie({ backgroundColor: C.value }),
952
959
  title: C.label,
953
960
  onClick: (S) => Ce(C.value)
954
961
  }, [
955
- a(i).primaryColor === C.value ? (s(), O(a(N), {
962
+ n(i).primaryColor === C.value ? (o(), O(n(U), {
956
963
  key: 0,
957
964
  name: "check",
958
965
  size: 12,
959
966
  color: "#fff"
960
- })) : A("", !0)
961
- ], 14, Ss)), 64))
967
+ })) : P("", !0)
968
+ ], 14, Is)), 64))
962
969
  ])
963
970
  ]),
964
- e("div", Is, [
965
- w[17] || (w[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
966
- e("div", Ns, [
971
+ e("div", Ns, [
972
+ k[17] || (k[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
973
+ e("div", zs, [
967
974
  e("div", Us, [
968
- w[14] || (w[14] = e("span", null, "灰色模式", -1)),
975
+ k[14] || (k[14] = e("span", null, "灰色模式", -1)),
969
976
  e("div", {
970
977
  class: J(["switch-wrapper", { "is-checked": D.value }]),
971
- onClick: de
972
- }, [...w[13] || (w[13] = [
978
+ onClick: pe
979
+ }, [...k[13] || (k[13] = [
973
980
  e("span", { class: "switch-core" }, null, -1)
974
981
  ])], 2)
975
982
  ]),
976
- e("div", zs, [
977
- w[16] || (w[16] = e("span", null, "暗黑模式", -1)),
983
+ e("div", Ts, [
984
+ k[16] || (k[16] = e("span", null, "暗黑模式", -1)),
978
985
  e("div", {
979
- class: J(["switch-wrapper", { "is-checked": a(i).isDark }]),
980
- onClick: re
981
- }, [...w[15] || (w[15] = [
986
+ class: J(["switch-wrapper", { "is-checked": n(i).isDark }]),
987
+ onClick: z
988
+ }, [...k[15] || (k[15] = [
982
989
  e("span", { class: "switch-core" }, null, -1)
983
990
  ])], 2)
984
991
  ])
@@ -991,73 +998,73 @@ const ce = Ne("menu", () => {
991
998
  ]);
992
999
  };
993
1000
  }
994
- }), Ts = /* @__PURE__ */ le(Es, [["__scopeId", "data-v-89179947"]]), As = { class: "top-menu" }, Ps = { class: "top-menu__logo" }, Ds = ["src"], Vs = { class: "top-menu__logo-text" }, Os = { class: "top-menu__menu-content" }, Bs = {
1001
+ }), Ps = /* @__PURE__ */ re(Es, [["__scopeId", "data-v-cf67ace4"]]), As = { class: "top-menu" }, Ds = { class: "top-menu__logo" }, Vs = ["src"], Os = { class: "top-menu__logo-text" }, Bs = { class: "top-menu__menu-content" }, Rs = {
995
1002
  key: 0,
996
1003
  class: "top-menu__menu-icon"
997
- }, Rs = {
1004
+ }, Fs = {
998
1005
  key: 1,
999
1006
  class: "top-menu__menu-char"
1000
- }, Fs = { class: "top-menu__menu-text" }, Ks = { class: "top-menu__menu-content" }, js = { class: "top-menu__menu-icon" }, Ws = {
1007
+ }, Ks = { class: "top-menu__menu-text" }, js = { class: "top-menu__menu-content" }, Ws = { class: "top-menu__menu-icon" }, qs = {
1001
1008
  key: 1,
1002
1009
  class: "top-menu__menu-char"
1003
- }, qs = { class: "top-menu__menu-text" }, Hs = { class: "top-menu__menu-content" }, Ys = { class: "top-menu__menu-icon" }, Xs = {
1010
+ }, Hs = { class: "top-menu__menu-text" }, Ys = { class: "top-menu__menu-content" }, Xs = { class: "top-menu__menu-icon" }, Gs = {
1004
1011
  key: 1,
1005
1012
  class: "top-menu__menu-char"
1006
- }, Gs = { class: "top-menu__menu-text" }, Js = { class: "top-menu__menu-content" }, Zs = { class: "top-menu__menu-icon" }, Qs = {
1013
+ }, Js = { class: "top-menu__menu-text" }, Zs = { class: "top-menu__menu-content" }, Qs = { class: "top-menu__menu-icon" }, eo = {
1007
1014
  key: 1,
1008
1015
  class: "top-menu__menu-char"
1009
- }, eo = { class: "top-menu__menu-text" }, to = { class: "top-menu__menu-content" }, so = {
1016
+ }, to = { class: "top-menu__menu-text" }, so = { class: "top-menu__menu-content" }, oo = {
1010
1017
  key: 0,
1011
1018
  class: "top-menu__menu-icon"
1012
- }, oo = {
1019
+ }, no = {
1013
1020
  key: 1,
1014
1021
  class: "top-menu__menu-char"
1015
- }, ao = { class: "top-menu__menu-text" }, no = { class: "top-menu__actions" }, lo = {
1022
+ }, ao = { class: "top-menu__menu-text" }, lo = { class: "top-menu__actions" }, ro = {
1016
1023
  key: 0,
1017
1024
  class: "top-menu__search-dropdown"
1018
- }, ro = {
1025
+ }, io = {
1019
1026
  key: 0,
1020
1027
  class: "top-menu__search-results"
1021
- }, io = ["onClick"], co = {
1028
+ }, co = ["onClick"], uo = {
1022
1029
  key: 0,
1023
1030
  class: "top-menu__search-icon-item"
1024
- }, uo = {
1031
+ }, mo = {
1025
1032
  key: 1,
1026
1033
  class: "top-menu__search-char"
1027
- }, mo = { class: "top-menu__search-item-title" }, po = {
1034
+ }, po = { class: "top-menu__search-item-title" }, vo = {
1028
1035
  key: 1,
1029
1036
  class: "top-menu__search-item-parent"
1030
- }, vo = {
1037
+ }, ho = {
1031
1038
  key: 1,
1032
1039
  class: "top-menu__search-empty"
1033
- }, ho = ["title"], _o = { class: "top-menu__avatar" }, fo = { class: "top-menu__user-name" }, go = {
1040
+ }, _o = ["title"], fo = { class: "top-menu__avatar" }, go = { class: "top-menu__user-name" }, yo = {
1034
1041
  key: 0,
1035
1042
  class: "top-menu__dropdown"
1036
- }, yo = { class: "top-menu__dropdown-header" }, ko = { class: "top-menu__dropdown-avatar" }, wo = { class: "top-menu__dropdown-info" }, bo = { class: "top-menu__dropdown-name" }, xo = { class: "top-menu__dropdown-role" }, Co = { class: "top-menu__dropdown-menu" }, $o = { class: "settings-drawer" }, Mo = { class: "settings-section" }, Lo = { class: "settings-layout-options" }, So = ["onClick"], Io = { class: "layout-option__preview" }, No = {
1043
+ }, bo = { class: "top-menu__dropdown-header" }, ko = { class: "top-menu__dropdown-avatar" }, wo = { 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" }, So = { class: "settings-layout-options" }, Io = ["onClick"], No = { class: "layout-option__preview" }, zo = {
1037
1044
  key: 0,
1038
1045
  class: "layout-preview-sidebar"
1039
1046
  }, Uo = {
1040
1047
  key: 1,
1041
1048
  class: "layout-preview-top"
1042
- }, zo = {
1049
+ }, To = {
1043
1050
  key: 2,
1044
1051
  class: "layout-preview-mix"
1045
- }, Eo = { class: "layout-option__label" }, To = { class: "settings-section" }, Ao = { class: "settings-color-options" }, Po = ["title", "onClick"], Do = { class: "settings-section" }, Vo = { class: "settings-switch-list" }, Oo = { class: "settings-switch-item" }, Bo = { class: "settings-switch-item" }, Ro = /* @__PURE__ */ ae({
1052
+ }, Eo = { class: "layout-option__label" }, Po = { class: "settings-section" }, Ao = { class: "settings-color-options" }, Do = ["title", "onClick"], Vo = { class: "settings-section" }, Oo = { class: "settings-switch-list" }, Bo = { class: "settings-switch-item" }, Ro = { class: "settings-switch-item" }, Fo = /* @__PURE__ */ ae({
1046
1053
  __name: "TopMenu",
1047
1054
  props: {
1048
1055
  logoSrc: { default: "/vite.svg" }
1049
1056
  },
1050
1057
  setup(t) {
1051
- const l = t, d = be(), i = me(), o = ce(), r = pe(), _ = ne(), v = Ue(), u = b(() => d.path), f = (S, M = "") => {
1058
+ const l = t, d = we(), i = me(), s = ue(), r = de(), _ = le(), v = ze(), u = w(() => d.path), f = (S, L = "") => {
1052
1059
  const te = [];
1053
- return S.forEach((n) => {
1054
- n.children && n.children.length > 0 ? te.push(...f(n.children, n.menuName)) : te.push({ ...n, parentTitle: M, title: n.menuName, path: n.menuUrl });
1060
+ return S.forEach((a) => {
1061
+ a.children && a.children.length > 0 ? te.push(...f(a.children, a.menuName)) : te.push({ ...a, parentTitle: L, title: a.menuName, path: a.menuUrl });
1055
1062
  }), te;
1056
- }, p = b(() => Y.value.trim() ? f(o.menuList).filter(
1057
- (M) => M.title.toLowerCase().includes(Y.value.toLowerCase())
1058
- ) : []), h = b(() => r.isDark ? "#1d1e1f" : "#fff"), k = b(() => r.isDark ? "#cfd3dc" : "#303133"), j = b(() => "#409eff"), D = g(!1), W = g(null), V = g(!1), B = g(!1), H = g(!1), Q = g(!1), Y = g(""), q = g(null), ee = (S) => {
1063
+ }, h = w(() => Y.value.trim() ? f(s.menuList).filter(
1064
+ (L) => L.title.toLowerCase().includes(Y.value.toLowerCase())
1065
+ ) : []), m = w(() => r.isDark ? "#1d1e1f" : "#fff"), b = w(() => r.isDark ? "#cfd3dc" : "#303133"), j = w(() => "#409eff"), D = g(!1), W = g(null), V = g(!1), B = g(!1), H = g(!1), Z = g(!1), Y = g(""), q = g(null), ee = (S) => {
1059
1066
  S && S !== d.path && i.push(S);
1060
- }, T = /* @__PURE__ */ new Set([
1067
+ }, E = /* @__PURE__ */ new Set([
1061
1068
  "arrow-up",
1062
1069
  "arrow-down",
1063
1070
  "arrow-left",
@@ -1196,37 +1203,37 @@ const ce = Ne("menu", () => {
1196
1203
  list: "list",
1197
1204
  grid: "grid"
1198
1205
  }[S] || S;
1199
- }, P = (S) => S ? S.charAt(0) : "", X = (S) => T.has(S), F = () => {
1206
+ }, A = (S) => S ? S.charAt(0) : "", X = (S) => E.has(S), F = () => {
1200
1207
  r.toggleTheme(), B.value = !1;
1201
1208
  }, se = () => {
1202
1209
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1203
- }, E = () => {
1210
+ }, ie = () => {
1204
1211
  V.value = !!document.fullscreenElement;
1205
- }, de = () => {
1212
+ }, pe = () => {
1206
1213
  D.value = !D.value;
1207
- }, re = () => {
1214
+ }, z = () => {
1208
1215
  D.value = !1;
1209
- }, ue = () => {
1210
- Q.value = !1, Y.value = "";
1216
+ }, oe = () => {
1217
+ Z.value = !1, Y.value = "";
1211
1218
  }, _e = (S) => {
1212
- i.push(S), ue();
1213
- }, ie = () => {
1219
+ i.push(S), oe();
1220
+ }, ce = () => {
1214
1221
  B.value = !0;
1215
- }, oe = (S) => {
1222
+ }, ne = (S) => {
1216
1223
  H.value = S;
1217
- const M = document.documentElement;
1218
- S ? M.classList.add("grey-mode") : M.classList.remove("grey-mode");
1224
+ const L = document.documentElement;
1225
+ S ? L.classList.add("grey-mode") : L.classList.remove("grey-mode");
1219
1226
  }, ve = () => {
1220
- oe(!H.value), B.value = !1;
1227
+ ne(!H.value), B.value = !1;
1221
1228
  }, xe = () => {
1222
1229
  r.toggleTheme(), B.value = !1;
1223
1230
  }, Ce = [
1224
1231
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1225
1232
  { value: "top", label: "顶部菜单", icon: "menu" },
1226
1233
  { value: "mix", label: "混合菜单", icon: "grid" }
1227
- ], $e = b(() => r.layout), Me = (S) => {
1234
+ ], $e = w(() => r.layout), Le = (S) => {
1228
1235
  r.setLayout(S), B.value = !1;
1229
- }, Le = [
1236
+ }, Me = [
1230
1237
  { value: "#409eff", label: "默认蓝" },
1231
1238
  { value: "#1890ff", label: "科技蓝" },
1232
1239
  { value: "#52c41a", label: "极光绿" },
@@ -1236,115 +1243,115 @@ const ce = Ne("menu", () => {
1236
1243
  ], fe = (S) => {
1237
1244
  r.setPrimaryColor(S), B.value = !1;
1238
1245
  }, ge = () => {
1239
- re(), i.push("/profile");
1240
- }, z = () => {
1241
- re(), i.push("/change-password");
1242
- }, w = () => {
1243
- re(), v.logout(), _.clearUserInfo(), o.clearMenu(), i.push("/login");
1244
- }, Z = (S) => {
1245
- W.value && !W.value.contains(S.target) && re(), q.value && !q.value.contains(S.target) && ue();
1246
+ z(), i.push("/profile");
1247
+ }, T = () => {
1248
+ z(), i.push("/change-password");
1249
+ }, k = () => {
1250
+ z(), v.logout(), _.clearUserInfo(), s.clearMenu(), i.push(r.loginPath);
1251
+ }, Q = (S) => {
1252
+ W.value && !W.value.contains(S.target) && z(), q.value && !q.value.contains(S.target) && oe();
1246
1253
  }, C = (S) => {
1247
- S.key === "Escape" && (ue(), re());
1254
+ S.key === "Escape" && (oe(), z());
1248
1255
  };
1249
1256
  return Ke(() => {
1250
- document.addEventListener("click", Z), document.addEventListener("fullscreenchange", E), document.addEventListener("keydown", C), H.value = document.documentElement.classList.contains("grey-mode");
1257
+ document.addEventListener("click", Q), document.addEventListener("fullscreenchange", ie), document.addEventListener("keydown", C), H.value = document.documentElement.classList.contains("grey-mode");
1251
1258
  }), je(() => {
1252
- document.removeEventListener("click", Z), document.removeEventListener("fullscreenchange", E), document.removeEventListener("keydown", C);
1253
- }), (S, M) => {
1259
+ document.removeEventListener("click", Q), document.removeEventListener("fullscreenchange", ie), document.removeEventListener("keydown", C);
1260
+ }), (S, L) => {
1254
1261
  var te;
1255
- return s(), c("div", As, [
1256
- e("div", Ps, [
1262
+ return o(), c("div", As, [
1263
+ e("div", Ds, [
1257
1264
  e("img", {
1258
1265
  src: l.logoSrc,
1259
1266
  alt: "Logo",
1260
1267
  class: "top-menu__logo-img"
1261
- }, null, 8, Ds),
1262
- e("span", Vs, x(a(r).appName), 1)
1268
+ }, null, 8, Vs),
1269
+ e("span", Os, x(n(r).appName), 1)
1263
1270
  ]),
1264
- y(a(Xe), {
1271
+ y(n(Xe), {
1265
1272
  "model-value": u.value,
1266
1273
  mode: "horizontal",
1267
- "background-color": h.value,
1268
- "text-color": k.value,
1274
+ "background-color": m.value,
1275
+ "text-color": b.value,
1269
1276
  "active-text-color": j.value,
1270
1277
  class: "top-menu__menu",
1271
1278
  onSelect: ee
1272
1279
  }, {
1273
- default: L(() => [
1274
- (s(!0), c(K, null, G(a(o).menuList, (n) => (s(), c(K, {
1275
- key: n.menuUrl
1280
+ default: M(() => [
1281
+ (o(!0), c(K, null, G(n(s).menuList, (a) => (o(), c(K, {
1282
+ key: a.menuUrl
1276
1283
  }, [
1277
- n.children && n.children.length > 0 ? (s(), O(a(Re), {
1284
+ a.children && a.children.length > 0 ? (o(), O(n(Re), {
1278
1285
  key: 0,
1279
- index: n.menuUrl
1286
+ index: a.menuUrl
1280
1287
  }, {
1281
- title: L(() => [
1282
- e("span", Os, [
1283
- n.menuName !== "首页" ? (s(), c("span", Bs, [
1284
- X(I(n.icon)) ? (s(), O(a(N), {
1288
+ title: M(() => [
1289
+ e("span", Bs, [
1290
+ a.menuName !== "首页" ? (o(), c("span", Rs, [
1291
+ X(I(a.icon)) ? (o(), O(n(U), {
1285
1292
  key: 0,
1286
- name: I(n.icon),
1293
+ name: I(a.icon),
1287
1294
  size: 16
1288
- }, null, 8, ["name"])) : (s(), c("span", Rs, x(P(n.menuName)), 1))
1289
- ])) : A("", !0),
1290
- e("span", Fs, x(n.menuName), 1)
1295
+ }, null, 8, ["name"])) : (o(), c("span", Fs, x(A(a.menuName)), 1))
1296
+ ])) : P("", !0),
1297
+ e("span", Ks, x(a.menuName), 1)
1291
1298
  ])
1292
1299
  ]),
1293
- default: L(() => [
1294
- (s(!0), c(K, null, G(n.children, (m) => (s(), c(K, {
1295
- key: m.menuUrl
1300
+ default: M(() => [
1301
+ (o(!0), c(K, null, G(a.children, (p) => (o(), c(K, {
1302
+ key: p.menuUrl
1296
1303
  }, [
1297
- m.children && m.children.length > 0 ? (s(), O(a(Re), {
1304
+ p.children && p.children.length > 0 ? (o(), O(n(Re), {
1298
1305
  key: 0,
1299
- index: m.menuUrl
1306
+ index: p.menuUrl
1300
1307
  }, {
1301
- title: L(() => [
1302
- e("span", Ks, [
1303
- e("span", js, [
1304
- X(I(m.icon)) ? (s(), O(a(N), {
1308
+ title: M(() => [
1309
+ e("span", js, [
1310
+ e("span", Ws, [
1311
+ X(I(p.icon)) ? (o(), O(n(U), {
1305
1312
  key: 0,
1306
- name: I(m.icon),
1313
+ name: I(p.icon),
1307
1314
  size: 16
1308
- }, null, 8, ["name"])) : (s(), c("span", Ws, x(P(m.menuName)), 1))
1315
+ }, null, 8, ["name"])) : (o(), c("span", qs, x(A(p.menuName)), 1))
1309
1316
  ]),
1310
- e("span", qs, x(m.menuName), 1)
1317
+ e("span", Hs, x(p.menuName), 1)
1311
1318
  ])
1312
1319
  ]),
1313
- default: L(() => [
1314
- (s(!0), c(K, null, G(m.children, (R) => (s(), O(a(Se), {
1320
+ default: M(() => [
1321
+ (o(!0), c(K, null, G(p.children, (R) => (o(), O(n(Se), {
1315
1322
  key: R.menuUrl,
1316
1323
  index: R.menuUrl
1317
1324
  }, {
1318
- default: L(() => [
1319
- e("span", Hs, [
1320
- e("span", Ys, [
1321
- X(I(R.icon)) ? (s(), O(a(N), {
1325
+ default: M(() => [
1326
+ e("span", Ys, [
1327
+ e("span", Xs, [
1328
+ X(I(R.icon)) ? (o(), O(n(U), {
1322
1329
  key: 0,
1323
1330
  name: I(R.icon),
1324
1331
  size: 16
1325
- }, null, 8, ["name"])) : (s(), c("span", Xs, x(P(R.menuName)), 1))
1332
+ }, null, 8, ["name"])) : (o(), c("span", Gs, x(A(R.menuName)), 1))
1326
1333
  ]),
1327
- e("span", Gs, x(R.menuName), 1)
1334
+ e("span", Js, x(R.menuName), 1)
1328
1335
  ])
1329
1336
  ]),
1330
1337
  _: 2
1331
1338
  }, 1032, ["index"]))), 128))
1332
1339
  ]),
1333
1340
  _: 2
1334
- }, 1032, ["index"])) : (s(), O(a(Se), {
1341
+ }, 1032, ["index"])) : (o(), O(n(Se), {
1335
1342
  key: 1,
1336
- index: m.menuUrl
1343
+ index: p.menuUrl
1337
1344
  }, {
1338
- default: L(() => [
1339
- e("span", Js, [
1340
- e("span", Zs, [
1341
- X(I(m.icon)) ? (s(), O(a(N), {
1345
+ default: M(() => [
1346
+ e("span", Zs, [
1347
+ e("span", Qs, [
1348
+ X(I(p.icon)) ? (o(), O(n(U), {
1342
1349
  key: 0,
1343
- name: I(m.icon),
1350
+ name: I(p.icon),
1344
1351
  size: 16
1345
- }, null, 8, ["name"])) : (s(), c("span", Qs, x(P(m.menuName)), 1))
1352
+ }, null, 8, ["name"])) : (o(), c("span", eo, x(A(p.menuName)), 1))
1346
1353
  ]),
1347
- e("span", eo, x(m.menuName), 1)
1354
+ e("span", to, x(p.menuName), 1)
1348
1355
  ])
1349
1356
  ]),
1350
1357
  _: 2
@@ -1352,20 +1359,20 @@ const ce = Ne("menu", () => {
1352
1359
  ], 64))), 128))
1353
1360
  ]),
1354
1361
  _: 2
1355
- }, 1032, ["index"])) : (s(), O(a(Se), {
1362
+ }, 1032, ["index"])) : (o(), O(n(Se), {
1356
1363
  key: 1,
1357
- index: n.menuUrl
1364
+ index: a.menuUrl
1358
1365
  }, {
1359
- default: L(() => [
1360
- e("span", to, [
1361
- n.menuName !== "首页" ? (s(), c("span", so, [
1362
- X(I(n.icon)) ? (s(), O(a(N), {
1366
+ default: M(() => [
1367
+ e("span", so, [
1368
+ a.menuName !== "首页" ? (o(), c("span", oo, [
1369
+ X(I(a.icon)) ? (o(), O(n(U), {
1363
1370
  key: 0,
1364
- name: I(n.icon),
1371
+ name: I(a.icon),
1365
1372
  size: 16
1366
- }, null, 8, ["name"])) : (s(), c("span", oo, x(P(n.menuName)), 1))
1367
- ])) : A("", !0),
1368
- e("span", ao, x(n.menuName), 1)
1373
+ }, null, 8, ["name"])) : (o(), c("span", no, x(A(a.menuName)), 1))
1374
+ ])) : P("", !0),
1375
+ e("span", ao, x(a.menuName), 1)
1369
1376
  ])
1370
1377
  ]),
1371
1378
  _: 2
@@ -1374,47 +1381,47 @@ const ce = Ne("menu", () => {
1374
1381
  ]),
1375
1382
  _: 1
1376
1383
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1377
- e("div", no, [
1384
+ e("div", lo, [
1378
1385
  e("div", {
1379
1386
  class: "top-menu__search",
1380
1387
  ref_key: "searchRef",
1381
1388
  ref: q
1382
1389
  }, [
1383
- y(a(N), {
1390
+ y(n(U), {
1384
1391
  name: "search",
1385
1392
  size: 14,
1386
1393
  class: "top-menu__search-icon"
1387
1394
  }),
1388
- Ee(e("input", {
1389
- "onUpdate:modelValue": M[0] || (M[0] = (n) => Y.value = n),
1395
+ Te(e("input", {
1396
+ "onUpdate:modelValue": L[0] || (L[0] = (a) => Y.value = a),
1390
1397
  type: "text",
1391
1398
  class: "top-menu__search-input",
1392
1399
  placeholder: "搜索菜单...",
1393
- onFocus: M[1] || (M[1] = (n) => Q.value = !0)
1400
+ onFocus: L[1] || (L[1] = (a) => Z.value = !0)
1394
1401
  }, null, 544), [
1395
1402
  [We, Y.value]
1396
1403
  ]),
1397
- y(ke, { name: "search-dropdown" }, {
1398
- default: L(() => [
1399
- Q.value && (p.value.length > 0 || Y.value) ? (s(), c("div", lo, [
1400
- p.value.length > 0 ? (s(), c("div", ro, [
1401
- (s(!0), c(K, null, G(p.value, (n) => (s(), c("div", {
1402
- key: n.path,
1404
+ y(be, { name: "search-dropdown" }, {
1405
+ default: M(() => [
1406
+ Z.value && (h.value.length > 0 || Y.value) ? (o(), c("div", ro, [
1407
+ h.value.length > 0 ? (o(), c("div", io, [
1408
+ (o(!0), c(K, null, G(h.value, (a) => (o(), c("div", {
1409
+ key: a.path,
1403
1410
  class: "top-menu__search-item",
1404
- onClick: (m) => _e(n.path)
1411
+ onClick: (p) => _e(a.path)
1405
1412
  }, [
1406
- n.title !== "首页" ? (s(), c("span", co, [
1407
- X(I(n.icon)) ? (s(), O(a(N), {
1413
+ a.title !== "首页" ? (o(), c("span", uo, [
1414
+ X(I(a.icon)) ? (o(), O(n(U), {
1408
1415
  key: 0,
1409
- name: I(n.icon),
1416
+ name: I(a.icon),
1410
1417
  size: 16
1411
- }, null, 8, ["name"])) : (s(), c("span", uo, x(P(n.title)), 1))
1412
- ])) : A("", !0),
1413
- e("span", mo, x(n.title), 1),
1414
- n.parentTitle ? (s(), c("span", po, x(n.parentTitle), 1)) : A("", !0)
1415
- ], 8, io))), 128))
1416
- ])) : (s(), c("div", vo, " 未找到匹配的菜单 "))
1417
- ])) : A("", !0)
1418
+ }, null, 8, ["name"])) : (o(), c("span", mo, x(A(a.title)), 1))
1419
+ ])) : P("", !0),
1420
+ e("span", po, x(a.title), 1),
1421
+ a.parentTitle ? (o(), c("span", vo, x(a.parentTitle), 1)) : P("", !0)
1422
+ ], 8, co))), 128))
1423
+ ])) : (o(), c("div", ho, " 未找到匹配的菜单 "))
1424
+ ])) : P("", !0)
1418
1425
  ]),
1419
1426
  _: 1
1420
1427
  })
@@ -1424,17 +1431,17 @@ const ce = Ne("menu", () => {
1424
1431
  onClick: se,
1425
1432
  title: V.value ? "退出全屏" : "全屏"
1426
1433
  }, [
1427
- y(a(N), {
1434
+ y(n(U), {
1428
1435
  name: V.value ? "fullscreen-exit" : "fullscreen",
1429
1436
  size: 16
1430
1437
  }, null, 8, ["name"])
1431
- ], 8, ho),
1438
+ ], 8, _o),
1432
1439
  e("div", {
1433
1440
  class: "top-menu__action",
1434
- onClick: ie,
1441
+ onClick: ce,
1435
1442
  title: "换肤设置"
1436
1443
  }, [
1437
- y(a(N), {
1444
+ y(n(U), {
1438
1445
  name: "skin",
1439
1446
  size: 16
1440
1447
  })
@@ -1444,8 +1451,8 @@ const ce = Ne("menu", () => {
1444
1451
  onClick: F,
1445
1452
  title: "切换主题"
1446
1453
  }, [
1447
- y(a(N), {
1448
- name: a(r).isDark ? "sun" : "moon",
1454
+ y(n(U), {
1455
+ name: n(r).isDark ? "sun" : "moon",
1449
1456
  size: 16
1450
1457
  }, null, 8, ["name"])
1451
1458
  ]),
@@ -1456,99 +1463,99 @@ const ce = Ne("menu", () => {
1456
1463
  }, [
1457
1464
  e("div", {
1458
1465
  class: "top-menu__user-trigger",
1459
- onClick: Te(de, ["stop"])
1466
+ onClick: Ee(pe, ["stop"])
1460
1467
  }, [
1461
- e("div", _o, [
1462
- e("span", null, x(((te = a(_).userName) == null ? void 0 : te.charAt(0)) || "U"), 1)
1468
+ e("div", fo, [
1469
+ e("span", null, x(((te = n(_).userName) == null ? void 0 : te.charAt(0)) || "U"), 1)
1463
1470
  ]),
1464
- e("span", fo, x(a(_).userName), 1),
1471
+ e("span", go, x(n(_).userName), 1),
1465
1472
  e("span", {
1466
1473
  class: J(["top-menu__user-arrow", { "is-active": D.value }])
1467
1474
  }, "▼", 2)
1468
1475
  ]),
1469
- y(ke, { name: "dropdown" }, {
1470
- default: L(() => {
1471
- var n;
1476
+ y(be, { name: "dropdown" }, {
1477
+ default: M(() => {
1478
+ var a;
1472
1479
  return [
1473
- D.value ? (s(), c("div", go, [
1474
- e("div", yo, [
1480
+ D.value ? (o(), c("div", yo, [
1481
+ e("div", bo, [
1475
1482
  e("div", ko, [
1476
- e("span", null, x(((n = a(_).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
1483
+ e("span", null, x(((a = n(_).userName) == null ? void 0 : a.charAt(0)) || "U"), 1)
1477
1484
  ]),
1478
1485
  e("div", wo, [
1479
- e("div", bo, x(a(_).userName), 1),
1480
- e("div", xo, x(a(_).departmentName), 1)
1486
+ e("div", xo, x(n(_).userName), 1),
1487
+ e("div", Co, x(n(_).departmentName), 1)
1481
1488
  ])
1482
1489
  ]),
1483
- M[7] || (M[7] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1484
- e("div", Co, [
1490
+ L[7] || (L[7] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1491
+ e("div", $o, [
1485
1492
  e("div", {
1486
1493
  class: "top-menu__dropdown-item",
1487
1494
  onClick: ge
1488
1495
  }, [
1489
- y(a(N), {
1496
+ y(n(U), {
1490
1497
  name: "user",
1491
1498
  size: 16
1492
1499
  }),
1493
- M[3] || (M[3] = e("span", null, "个人信息", -1))
1500
+ L[3] || (L[3] = e("span", null, "个人信息", -1))
1494
1501
  ]),
1495
1502
  e("div", {
1496
1503
  class: "top-menu__dropdown-item",
1497
- onClick: z
1504
+ onClick: T
1498
1505
  }, [
1499
- y(a(N), {
1506
+ y(n(U), {
1500
1507
  name: "lock",
1501
1508
  size: 16
1502
1509
  }),
1503
- M[4] || (M[4] = e("span", null, "修改密码", -1))
1510
+ L[4] || (L[4] = e("span", null, "修改密码", -1))
1504
1511
  ]),
1505
- M[6] || (M[6] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1512
+ L[6] || (L[6] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1506
1513
  e("div", {
1507
1514
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1508
- onClick: w
1515
+ onClick: k
1509
1516
  }, [
1510
- y(a(N), {
1517
+ y(n(U), {
1511
1518
  name: "logout",
1512
1519
  size: 16
1513
1520
  }),
1514
- M[5] || (M[5] = e("span", null, "退出登录", -1))
1521
+ L[5] || (L[5] = e("span", null, "退出登录", -1))
1515
1522
  ])
1516
1523
  ])
1517
- ])) : A("", !0)
1524
+ ])) : P("", !0)
1518
1525
  ];
1519
1526
  }),
1520
1527
  _: 1
1521
1528
  })
1522
1529
  ], 512)
1523
1530
  ]),
1524
- y(a(Ge), {
1531
+ y(n(Ge), {
1525
1532
  modelValue: B.value,
1526
- "onUpdate:modelValue": M[2] || (M[2] = (n) => B.value = n),
1533
+ "onUpdate:modelValue": L[2] || (L[2] = (a) => B.value = a),
1527
1534
  title: "换肤设置",
1528
1535
  direction: "rtl",
1529
1536
  size: "320px"
1530
1537
  }, {
1531
- default: L(() => [
1532
- e("div", $o, [
1538
+ default: M(() => [
1539
+ e("div", Lo, [
1533
1540
  e("div", Mo, [
1534
- M[11] || (M[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
1535
- e("div", Lo, [
1536
- (s(), c(K, null, G(Ce, (n) => e("div", {
1537
- key: n.value,
1538
- class: J(["layout-option", { "is-active": $e.value === n.value }]),
1539
- onClick: (m) => Me(n.value)
1541
+ L[11] || (L[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
1542
+ e("div", So, [
1543
+ (o(), c(K, null, G(Ce, (a) => e("div", {
1544
+ key: a.value,
1545
+ class: J(["layout-option", { "is-active": $e.value === a.value }]),
1546
+ onClick: (p) => Le(a.value)
1540
1547
  }, [
1541
- e("div", Io, [
1542
- n.value === "sidebar" ? (s(), c("div", No, [...M[8] || (M[8] = [
1548
+ e("div", No, [
1549
+ a.value === "sidebar" ? (o(), c("div", zo, [...L[8] || (L[8] = [
1543
1550
  e("div", { class: "preview-aside" }, null, -1),
1544
1551
  e("div", { class: "preview-main" }, [
1545
1552
  e("div", { class: "preview-header" }),
1546
1553
  e("div", { class: "preview-content" })
1547
1554
  ], -1)
1548
- ])])) : n.value === "top" ? (s(), c("div", Uo, [...M[9] || (M[9] = [
1555
+ ])])) : a.value === "top" ? (o(), c("div", Uo, [...L[9] || (L[9] = [
1549
1556
  e("div", { class: "preview-header-full" }, null, -1),
1550
1557
  e("div", { class: "preview-content-full" }, null, -1)
1551
- ])])) : (s(), c("div", zo, [...M[10] || (M[10] = [
1558
+ ])])) : (o(), c("div", To, [...L[10] || (L[10] = [
1552
1559
  e("div", { class: "preview-header-mix" }, [
1553
1560
  e("div", { class: "preview-mix-left" })
1554
1561
  ], -1),
@@ -1558,47 +1565,47 @@ const ce = Ne("menu", () => {
1558
1565
  ], -1)
1559
1566
  ])]))
1560
1567
  ]),
1561
- e("span", Eo, x(n.label), 1)
1562
- ], 10, So)), 64))
1568
+ e("span", Eo, x(a.label), 1)
1569
+ ], 10, Io)), 64))
1563
1570
  ])
1564
1571
  ]),
1565
- e("div", To, [
1566
- M[12] || (M[12] = e("div", { class: "settings-title" }, "主题色", -1)),
1572
+ e("div", Po, [
1573
+ L[12] || (L[12] = e("div", { class: "settings-title" }, "主题色", -1)),
1567
1574
  e("div", Ao, [
1568
- (s(), c(K, null, G(Le, (n) => e("div", {
1569
- key: n.value,
1570
- class: J(["color-option", { "is-active": a(r).primaryColor === n.value }]),
1571
- style: Ie({ backgroundColor: n.value }),
1572
- title: n.label,
1573
- onClick: (m) => fe(n.value)
1575
+ (o(), c(K, null, G(Me, (a) => e("div", {
1576
+ key: a.value,
1577
+ class: J(["color-option", { "is-active": n(r).primaryColor === a.value }]),
1578
+ style: Ie({ backgroundColor: a.value }),
1579
+ title: a.label,
1580
+ onClick: (p) => fe(a.value)
1574
1581
  }, [
1575
- a(r).primaryColor === n.value ? (s(), O(a(N), {
1582
+ n(r).primaryColor === a.value ? (o(), O(n(U), {
1576
1583
  key: 0,
1577
1584
  name: "check",
1578
1585
  size: 12,
1579
1586
  color: "#fff"
1580
- })) : A("", !0)
1581
- ], 14, Po)), 64))
1587
+ })) : P("", !0)
1588
+ ], 14, Do)), 64))
1582
1589
  ])
1583
1590
  ]),
1584
- e("div", Do, [
1585
- M[17] || (M[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
1586
- e("div", Vo, [
1587
- e("div", Oo, [
1588
- M[14] || (M[14] = e("span", null, "灰色模式", -1)),
1591
+ e("div", Vo, [
1592
+ L[17] || (L[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
1593
+ e("div", Oo, [
1594
+ e("div", Bo, [
1595
+ L[14] || (L[14] = e("span", null, "灰色模式", -1)),
1589
1596
  e("div", {
1590
1597
  class: J(["switch-wrapper", { "is-checked": H.value }]),
1591
1598
  onClick: ve
1592
- }, [...M[13] || (M[13] = [
1599
+ }, [...L[13] || (L[13] = [
1593
1600
  e("span", { class: "switch-core" }, null, -1)
1594
1601
  ])], 2)
1595
1602
  ]),
1596
- e("div", Bo, [
1597
- M[16] || (M[16] = e("span", null, "暗黑模式", -1)),
1603
+ e("div", Ro, [
1604
+ L[16] || (L[16] = e("span", null, "暗黑模式", -1)),
1598
1605
  e("div", {
1599
- class: J(["switch-wrapper", { "is-checked": a(r).isDark }]),
1606
+ class: J(["switch-wrapper", { "is-checked": n(r).isDark }]),
1600
1607
  onClick: xe
1601
- }, [...M[15] || (M[15] = [
1608
+ }, [...L[15] || (L[15] = [
1602
1609
  e("span", { class: "switch-core" }, null, -1)
1603
1610
  ])], 2)
1604
1611
  ])
@@ -1611,74 +1618,74 @@ const ce = Ne("menu", () => {
1611
1618
  ]);
1612
1619
  };
1613
1620
  }
1614
- }), Fo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-da5e391c"]]), Ko = { class: "mix-top-menu" }, jo = { class: "mix-top-menu__logo" }, Wo = ["src"], qo = { class: "mix-top-menu__logo-text" }, Ho = { class: "mix-top-menu__menu-content" }, Yo = {
1621
+ }), Ko = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-15f7b516"]]), jo = { class: "mix-top-menu" }, Wo = { class: "mix-top-menu__logo" }, qo = ["src"], Ho = { class: "mix-top-menu__logo-text" }, Yo = { class: "mix-top-menu__menu-content" }, Xo = {
1615
1622
  key: 0,
1616
1623
  class: "mix-top-menu__menu-icon"
1617
- }, Xo = {
1624
+ }, Go = {
1618
1625
  key: 1,
1619
1626
  class: "mix-top-menu__menu-char"
1620
- }, Go = { class: "mix-top-menu__menu-text" }, Jo = { class: "mix-top-menu__actions" }, Zo = {
1627
+ }, Jo = { class: "mix-top-menu__menu-text" }, Zo = { class: "mix-top-menu__actions" }, Qo = {
1621
1628
  key: 0,
1622
1629
  class: "mix-top-menu__search-dropdown"
1623
- }, Qo = {
1630
+ }, en = {
1624
1631
  key: 0,
1625
1632
  class: "mix-top-menu__search-results"
1626
- }, ea = ["onClick"], ta = {
1633
+ }, tn = ["onClick"], sn = {
1627
1634
  key: 0,
1628
1635
  class: "mix-top-menu__search-icon-item"
1629
- }, sa = {
1636
+ }, on = {
1630
1637
  key: 1,
1631
1638
  class: "mix-top-menu__search-char"
1632
- }, oa = { class: "mix-top-menu__search-item-title" }, aa = {
1639
+ }, nn = { class: "mix-top-menu__search-item-title" }, an = {
1633
1640
  key: 1,
1634
1641
  class: "mix-top-menu__search-item-parent"
1635
- }, na = {
1642
+ }, ln = {
1636
1643
  key: 1,
1637
1644
  class: "mix-top-menu__search-empty"
1638
- }, la = ["title"], ra = { class: "mix-top-menu__avatar" }, ia = { class: "mix-top-menu__user-name" }, ca = {
1645
+ }, rn = ["title"], cn = { class: "mix-top-menu__avatar" }, dn = { class: "mix-top-menu__user-name" }, un = {
1639
1646
  key: 0,
1640
1647
  class: "mix-top-menu__dropdown"
1641
- }, da = { class: "mix-top-menu__dropdown-header" }, ua = { class: "mix-top-menu__dropdown-avatar" }, ma = { class: "mix-top-menu__dropdown-info" }, pa = { class: "mix-top-menu__dropdown-name" }, va = { class: "mix-top-menu__dropdown-role" }, ha = { class: "mix-top-menu__dropdown-menu" }, _a = { class: "settings-drawer" }, fa = { class: "settings-section" }, ga = { class: "settings-layout-options" }, ya = ["onClick"], ka = { class: "layout-option__preview" }, wa = {
1648
+ }, mn = { class: "mix-top-menu__dropdown-header" }, pn = { class: "mix-top-menu__dropdown-avatar" }, vn = { class: "mix-top-menu__dropdown-info" }, hn = { 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" }, bn = { class: "settings-layout-options" }, kn = ["onClick"], wn = { class: "layout-option__preview" }, xn = {
1642
1649
  key: 0,
1643
1650
  class: "layout-preview-sidebar"
1644
- }, ba = {
1651
+ }, Cn = {
1645
1652
  key: 1,
1646
1653
  class: "layout-preview-top"
1647
- }, xa = {
1654
+ }, $n = {
1648
1655
  key: 2,
1649
1656
  class: "layout-preview-mix"
1650
- }, Ca = { class: "layout-option__label" }, $a = { class: "settings-section" }, Ma = { class: "settings-color-options" }, La = ["title", "onClick"], Sa = { class: "settings-section" }, Ia = { class: "settings-switch-list" }, Na = { class: "settings-switch-item" }, Ua = { class: "settings-switch-item" }, za = /* @__PURE__ */ ae({
1657
+ }, Ln = { class: "layout-option__label" }, Mn = { class: "settings-section" }, Sn = { class: "settings-color-options" }, In = ["title", "onClick"], Nn = { class: "settings-section" }, zn = { class: "settings-switch-list" }, Un = { class: "settings-switch-item" }, Tn = { class: "settings-switch-item" }, En = /* @__PURE__ */ ae({
1651
1658
  __name: "MixTopMenu",
1652
1659
  props: {
1653
1660
  logoSrc: { default: "/vite.svg" }
1654
1661
  },
1655
1662
  setup(t) {
1656
- const l = t, d = be(), i = me(), o = ce(), r = pe(), _ = ne(), v = Ue(), u = g(""), f = (n, m = "") => {
1663
+ const l = t, d = we(), i = me(), s = ue(), r = de(), _ = le(), v = ze(), u = g(""), f = (a, p = "") => {
1657
1664
  const R = [];
1658
- return n.forEach(($) => {
1659
- $.children && $.children.length > 0 ? R.push(...f($.children, $.menuName)) : R.push({ ...$, parentTitle: m, title: $.menuName, path: $.menuUrl });
1665
+ return a.forEach(($) => {
1666
+ $.children && $.children.length > 0 ? R.push(...f($.children, $.menuName)) : R.push({ ...$, parentTitle: p, title: $.menuName, path: $.menuUrl });
1660
1667
  }), R;
1661
- }, p = b(() => I.value.trim() ? f(o.menuList).filter(
1662
- (m) => m.title.toLowerCase().includes(I.value.toLowerCase())
1663
- ) : []), h = b(() => {
1664
- const n = o.menuList.find((m) => m.menuUrl === u.value);
1665
- return (n == null ? void 0 : n.children) || [];
1666
- }), k = b(() => o.menuList.find((n) => !!(d.path === n.menuUrl || n.children && n.children.some((m) => d.path.startsWith(m.menuUrl) || d.path === m.menuUrl)))), j = () => {
1667
- k.value ? u.value = k.value.menuUrl : o.menuList.length > 0 && (u.value = o.menuList[0].menuUrl);
1668
- }, D = (n) => {
1669
- u.value = n;
1670
- const m = o.menuList.find((R) => R.menuUrl === n);
1671
- if (m)
1672
- if (m.children && m.children.length > 0) {
1673
- const R = m.children[0].menuUrl;
1668
+ }, h = w(() => I.value.trim() ? f(s.menuList).filter(
1669
+ (p) => p.title.toLowerCase().includes(I.value.toLowerCase())
1670
+ ) : []), m = w(() => {
1671
+ const a = s.menuList.find((p) => p.menuUrl === u.value);
1672
+ return (a == null ? void 0 : a.children) || [];
1673
+ }), b = w(() => s.menuList.find((a) => !!(d.path === a.menuUrl || a.children && a.children.some((p) => d.path.startsWith(p.menuUrl) || d.path === p.menuUrl)))), j = () => {
1674
+ b.value ? u.value = b.value.menuUrl : s.menuList.length > 0 && (u.value = s.menuList[0].menuUrl);
1675
+ }, D = (a) => {
1676
+ u.value = a;
1677
+ const p = s.menuList.find((R) => R.menuUrl === a);
1678
+ if (p)
1679
+ if (p.children && p.children.length > 0) {
1680
+ const R = p.children[0].menuUrl;
1674
1681
  d.path !== R && i.push(R);
1675
1682
  } else
1676
- d.path !== n && i.push(n);
1677
- }, W = b(() => r.isDark ? "#1d1e1f" : "#fff"), V = b(() => r.isDark ? "#cfd3dc" : "#303133"), B = b(() => "#409eff"), H = g(!1), Q = g(null), Y = g(!1), q = g(!1), ee = g(!1), T = g(!1), I = g(""), P = g(null);
1683
+ d.path !== a && i.push(a);
1684
+ }, W = w(() => r.isDark ? "#1d1e1f" : "#fff"), V = w(() => r.isDark ? "#cfd3dc" : "#303133"), B = w(() => "#409eff"), H = g(!1), Z = g(null), Y = g(!1), q = g(!1), ee = g(!1), E = g(!1), I = g(""), A = g(null);
1678
1685
  ye(() => d.path, () => {
1679
- j(), r.setMixSubMenus(h.value);
1680
- }), ye(() => o.menuList, (n) => {
1681
- n && n.length > 0 && (j(), r.setMixSubMenus(h.value));
1686
+ j(), r.setMixSubMenus(m.value);
1687
+ }), ye(() => s.menuList, (a) => {
1688
+ a && a.length > 0 && (j(), r.setMixSubMenus(m.value));
1682
1689
  }, { immediate: !0 });
1683
1690
  const X = /* @__PURE__ */ new Set([
1684
1691
  "arrow-up",
@@ -1782,10 +1789,10 @@ const ce = Ne("menu", () => {
1782
1789
  "sun",
1783
1790
  "theme",
1784
1791
  "skin"
1785
- ]), F = (n) => {
1786
- if (!n || n === "") return "";
1787
- if (n.startsWith("tineco-icon-")) {
1788
- const R = n.replace("tineco-icon-", "");
1792
+ ]), F = (a) => {
1793
+ if (!a || a === "") return "";
1794
+ if (a.startsWith("tineco-icon-")) {
1795
+ const R = a.replace("tineco-icon-", "");
1789
1796
  return {
1790
1797
  home: "home",
1791
1798
  dashboard: "dashboard",
@@ -1818,73 +1825,73 @@ const ce = Ne("menu", () => {
1818
1825
  app: "app",
1819
1826
  list: "list",
1820
1827
  grid: "grid"
1821
- }[n] || n;
1822
- }, se = (n) => n ? n.charAt(0) : "", E = (n) => X.has(n), de = () => {
1828
+ }[a] || a;
1829
+ }, se = (a) => a ? a.charAt(0) : "", ie = (a) => X.has(a), pe = () => {
1823
1830
  r.toggleTheme(), q.value = !1;
1824
- }, re = () => {
1831
+ }, z = () => {
1825
1832
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1826
- }, ue = () => {
1833
+ }, oe = () => {
1827
1834
  Y.value = !!document.fullscreenElement;
1828
1835
  }, _e = () => {
1829
1836
  H.value = !H.value;
1830
- }, ie = () => {
1837
+ }, ce = () => {
1831
1838
  H.value = !1;
1832
- }, oe = () => {
1833
- T.value = !1, I.value = "";
1834
- }, ve = (n) => {
1835
- i.push(n), oe();
1839
+ }, ne = () => {
1840
+ E.value = !1, I.value = "";
1841
+ }, ve = (a) => {
1842
+ i.push(a), ne();
1836
1843
  }, xe = () => {
1837
1844
  q.value = !0;
1838
- }, Ce = (n) => {
1839
- ee.value = n;
1840
- const m = document.documentElement;
1841
- n ? m.classList.add("grey-mode") : m.classList.remove("grey-mode");
1845
+ }, Ce = (a) => {
1846
+ ee.value = a;
1847
+ const p = document.documentElement;
1848
+ a ? p.classList.add("grey-mode") : p.classList.remove("grey-mode");
1842
1849
  }, $e = () => {
1843
1850
  Ce(!ee.value), q.value = !1;
1844
- }, Me = () => {
1851
+ }, Le = () => {
1845
1852
  r.toggleTheme(), q.value = !1;
1846
- }, Le = [
1853
+ }, Me = [
1847
1854
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1848
1855
  { value: "top", label: "顶部菜单", icon: "menu" },
1849
1856
  { value: "mix", label: "混合菜单", icon: "grid" }
1850
- ], fe = b(() => r.layout), ge = (n) => {
1851
- r.setLayout(n), q.value = !1;
1852
- }, z = [
1857
+ ], fe = w(() => r.layout), ge = (a) => {
1858
+ r.setLayout(a), q.value = !1;
1859
+ }, T = [
1853
1860
  { value: "#409eff", label: "默认蓝" },
1854
1861
  { value: "#1890ff", label: "科技蓝" },
1855
1862
  { value: "#52c41a", label: "极光绿" },
1856
1863
  { value: "#faad14", label: "日落橙" },
1857
1864
  { value: "#f5222d", label: "薄暮红" },
1858
1865
  { value: "#722ed1", label: "酱紫" }
1859
- ], w = (n) => {
1860
- r.setPrimaryColor(n), q.value = !1;
1861
- }, Z = () => {
1862
- ie(), i.push("/profile");
1866
+ ], k = (a) => {
1867
+ r.setPrimaryColor(a), q.value = !1;
1868
+ }, Q = () => {
1869
+ ce(), i.push("/profile");
1863
1870
  }, C = () => {
1864
- ie(), i.push("/change-password");
1871
+ ce(), i.push("/change-password");
1865
1872
  }, S = () => {
1866
- ie(), v.logout(), _.clearUserInfo(), o.clearMenu(), i.push("/login");
1867
- }, M = (n) => {
1868
- Q.value && !Q.value.contains(n.target) && ie(), P.value && !P.value.contains(n.target) && oe();
1869
- }, te = (n) => {
1870
- n.key === "Escape" && (oe(), ie());
1873
+ ce(), v.logout(), _.clearUserInfo(), s.clearMenu(), i.push(r.loginPath);
1874
+ }, L = (a) => {
1875
+ Z.value && !Z.value.contains(a.target) && ce(), A.value && !A.value.contains(a.target) && ne();
1876
+ }, te = (a) => {
1877
+ a.key === "Escape" && (ne(), ce());
1871
1878
  };
1872
1879
  return Ke(() => {
1873
- document.addEventListener("click", M), document.addEventListener("fullscreenchange", ue), document.addEventListener("keydown", te), ee.value = document.documentElement.classList.contains("grey-mode"), j();
1880
+ document.addEventListener("click", L), document.addEventListener("fullscreenchange", oe), document.addEventListener("keydown", te), ee.value = document.documentElement.classList.contains("grey-mode"), j();
1874
1881
  }), je(() => {
1875
- document.removeEventListener("click", M), document.removeEventListener("fullscreenchange", ue), document.removeEventListener("keydown", te);
1876
- }), (n, m) => {
1882
+ document.removeEventListener("click", L), document.removeEventListener("fullscreenchange", oe), document.removeEventListener("keydown", te);
1883
+ }), (a, p) => {
1877
1884
  var R;
1878
- return s(), c("div", Ko, [
1879
- e("div", jo, [
1885
+ return o(), c("div", jo, [
1886
+ e("div", Wo, [
1880
1887
  e("img", {
1881
1888
  src: l.logoSrc,
1882
1889
  alt: "Logo",
1883
1890
  class: "mix-top-menu__logo-img"
1884
- }, null, 8, Wo),
1885
- e("span", qo, x(a(r).appName), 1)
1891
+ }, null, 8, qo),
1892
+ e("span", Ho, x(n(r).appName), 1)
1886
1893
  ]),
1887
- y(a(Xe), {
1894
+ y(n(Xe), {
1888
1895
  "model-value": u.value,
1889
1896
  mode: "horizontal",
1890
1897
  "background-color": W.value,
@@ -1893,21 +1900,21 @@ const ce = Ne("menu", () => {
1893
1900
  class: "mix-top-menu__menu",
1894
1901
  onSelect: D
1895
1902
  }, {
1896
- default: L(() => [
1897
- (s(!0), c(K, null, G(a(o).menuList, ($) => (s(), O(a(Se), {
1903
+ default: M(() => [
1904
+ (o(!0), c(K, null, G(n(s).menuList, ($) => (o(), O(n(Se), {
1898
1905
  key: $.menuUrl,
1899
1906
  index: $.menuUrl
1900
1907
  }, {
1901
- default: L(() => [
1902
- e("span", Ho, [
1903
- $.menuName !== "首页" ? (s(), c("span", Yo, [
1904
- E(F($.icon)) ? (s(), O(a(N), {
1908
+ default: M(() => [
1909
+ e("span", Yo, [
1910
+ $.menuName !== "首页" ? (o(), c("span", Xo, [
1911
+ ie(F($.icon)) ? (o(), O(n(U), {
1905
1912
  key: 0,
1906
1913
  name: F($.icon),
1907
1914
  size: 16
1908
- }, null, 8, ["name"])) : (s(), c("span", Xo, x(se($.menuName)), 1))
1909
- ])) : A("", !0),
1910
- e("span", Go, x($.menuName), 1)
1915
+ }, null, 8, ["name"])) : (o(), c("span", Go, x(se($.menuName)), 1))
1916
+ ])) : P("", !0),
1917
+ e("span", Jo, x($.menuName), 1)
1911
1918
  ])
1912
1919
  ]),
1913
1920
  _: 2
@@ -1915,181 +1922,181 @@ const ce = Ne("menu", () => {
1915
1922
  ]),
1916
1923
  _: 1
1917
1924
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1918
- e("div", Jo, [
1925
+ e("div", Zo, [
1919
1926
  e("div", {
1920
1927
  class: "mix-top-menu__search",
1921
1928
  ref_key: "searchRef",
1922
- ref: P
1929
+ ref: A
1923
1930
  }, [
1924
- y(a(N), {
1931
+ y(n(U), {
1925
1932
  name: "search",
1926
1933
  size: 14,
1927
1934
  class: "mix-top-menu__search-icon"
1928
1935
  }),
1929
- Ee(e("input", {
1930
- "onUpdate:modelValue": m[0] || (m[0] = ($) => I.value = $),
1936
+ Te(e("input", {
1937
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => I.value = $),
1931
1938
  type: "text",
1932
1939
  class: "mix-top-menu__search-input",
1933
1940
  placeholder: "搜索菜单...",
1934
- onFocus: m[1] || (m[1] = ($) => T.value = !0)
1941
+ onFocus: p[1] || (p[1] = ($) => E.value = !0)
1935
1942
  }, null, 544), [
1936
1943
  [We, I.value]
1937
1944
  ]),
1938
- y(ke, { name: "search-dropdown" }, {
1939
- default: L(() => [
1940
- T.value && (p.value.length > 0 || I.value) ? (s(), c("div", Zo, [
1941
- p.value.length > 0 ? (s(), c("div", Qo, [
1942
- (s(!0), c(K, null, G(p.value, ($) => (s(), c("div", {
1945
+ y(be, { name: "search-dropdown" }, {
1946
+ default: M(() => [
1947
+ E.value && (h.value.length > 0 || I.value) ? (o(), c("div", Qo, [
1948
+ h.value.length > 0 ? (o(), c("div", en, [
1949
+ (o(!0), c(K, null, G(h.value, ($) => (o(), c("div", {
1943
1950
  key: $.path,
1944
1951
  class: "mix-top-menu__search-item",
1945
1952
  onClick: (Ze) => ve($.path)
1946
1953
  }, [
1947
- $.title !== "首页" ? (s(), c("span", ta, [
1948
- E(F($.icon)) ? (s(), O(a(N), {
1954
+ $.title !== "首页" ? (o(), c("span", sn, [
1955
+ ie(F($.icon)) ? (o(), O(n(U), {
1949
1956
  key: 0,
1950
1957
  name: F($.icon),
1951
1958
  size: 16
1952
- }, null, 8, ["name"])) : (s(), c("span", sa, x(se($.title)), 1))
1953
- ])) : A("", !0),
1954
- e("span", oa, x($.title), 1),
1955
- $.parentTitle ? (s(), c("span", aa, x($.parentTitle), 1)) : A("", !0)
1956
- ], 8, ea))), 128))
1957
- ])) : (s(), c("div", na, " 未找到匹配的菜单 "))
1958
- ])) : A("", !0)
1959
+ }, null, 8, ["name"])) : (o(), c("span", on, x(se($.title)), 1))
1960
+ ])) : P("", !0),
1961
+ e("span", nn, x($.title), 1),
1962
+ $.parentTitle ? (o(), c("span", an, x($.parentTitle), 1)) : P("", !0)
1963
+ ], 8, tn))), 128))
1964
+ ])) : (o(), c("div", ln, " 未找到匹配的菜单 "))
1965
+ ])) : P("", !0)
1959
1966
  ]),
1960
1967
  _: 1
1961
1968
  })
1962
1969
  ], 512),
1963
1970
  e("div", {
1964
1971
  class: "mix-top-menu__action",
1965
- onClick: re,
1972
+ onClick: z,
1966
1973
  title: Y.value ? "退出全屏" : "全屏"
1967
1974
  }, [
1968
- y(a(N), {
1975
+ y(n(U), {
1969
1976
  name: Y.value ? "fullscreen-exit" : "fullscreen",
1970
1977
  size: 16
1971
1978
  }, null, 8, ["name"])
1972
- ], 8, la),
1979
+ ], 8, rn),
1973
1980
  e("div", {
1974
1981
  class: "mix-top-menu__action",
1975
1982
  onClick: xe,
1976
1983
  title: "换肤设置"
1977
1984
  }, [
1978
- y(a(N), {
1985
+ y(n(U), {
1979
1986
  name: "skin",
1980
1987
  size: 16
1981
1988
  })
1982
1989
  ]),
1983
1990
  e("div", {
1984
1991
  class: "mix-top-menu__action",
1985
- onClick: de,
1992
+ onClick: pe,
1986
1993
  title: "切换主题"
1987
1994
  }, [
1988
- y(a(N), {
1989
- name: a(r).isDark ? "sun" : "moon",
1995
+ y(n(U), {
1996
+ name: n(r).isDark ? "sun" : "moon",
1990
1997
  size: 16
1991
1998
  }, null, 8, ["name"])
1992
1999
  ]),
1993
2000
  e("div", {
1994
2001
  class: "mix-top-menu__user",
1995
2002
  ref_key: "dropdownRef",
1996
- ref: Q
2003
+ ref: Z
1997
2004
  }, [
1998
2005
  e("div", {
1999
2006
  class: "mix-top-menu__user-trigger",
2000
- onClick: Te(_e, ["stop"])
2007
+ onClick: Ee(_e, ["stop"])
2001
2008
  }, [
2002
- e("div", ra, [
2003
- e("span", null, x(((R = a(_).userName) == null ? void 0 : R.charAt(0)) || "U"), 1)
2009
+ e("div", cn, [
2010
+ e("span", null, x(((R = n(_).userName) == null ? void 0 : R.charAt(0)) || "U"), 1)
2004
2011
  ]),
2005
- e("span", ia, x(a(_).userName), 1),
2012
+ e("span", dn, x(n(_).userName), 1),
2006
2013
  e("span", {
2007
2014
  class: J(["mix-top-menu__user-arrow", { "is-active": H.value }])
2008
2015
  }, "▼", 2)
2009
2016
  ]),
2010
- y(ke, { name: "dropdown" }, {
2011
- default: L(() => {
2017
+ y(be, { name: "dropdown" }, {
2018
+ default: M(() => {
2012
2019
  var $;
2013
2020
  return [
2014
- H.value ? (s(), c("div", ca, [
2015
- e("div", da, [
2016
- e("div", ua, [
2017
- e("span", null, x((($ = a(_).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2021
+ H.value ? (o(), c("div", un, [
2022
+ e("div", mn, [
2023
+ e("div", pn, [
2024
+ e("span", null, x((($ = n(_).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2018
2025
  ]),
2019
- e("div", ma, [
2020
- e("div", pa, x(a(_).userName), 1),
2021
- e("div", va, x(a(_).departmentName), 1)
2026
+ e("div", vn, [
2027
+ e("div", hn, x(n(_).userName), 1),
2028
+ e("div", _n, x(n(_).departmentName), 1)
2022
2029
  ])
2023
2030
  ]),
2024
- m[7] || (m[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2025
- e("div", ha, [
2031
+ p[7] || (p[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2032
+ e("div", fn, [
2026
2033
  e("div", {
2027
2034
  class: "mix-top-menu__dropdown-item",
2028
- onClick: Z
2035
+ onClick: Q
2029
2036
  }, [
2030
- y(a(N), {
2037
+ y(n(U), {
2031
2038
  name: "user",
2032
2039
  size: 16
2033
2040
  }),
2034
- m[3] || (m[3] = e("span", null, "个人信息", -1))
2041
+ p[3] || (p[3] = e("span", null, "个人信息", -1))
2035
2042
  ]),
2036
2043
  e("div", {
2037
2044
  class: "mix-top-menu__dropdown-item",
2038
2045
  onClick: C
2039
2046
  }, [
2040
- y(a(N), {
2047
+ y(n(U), {
2041
2048
  name: "lock",
2042
2049
  size: 16
2043
2050
  }),
2044
- m[4] || (m[4] = e("span", null, "修改密码", -1))
2051
+ p[4] || (p[4] = e("span", null, "修改密码", -1))
2045
2052
  ]),
2046
- m[6] || (m[6] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2053
+ p[6] || (p[6] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2047
2054
  e("div", {
2048
2055
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2049
2056
  onClick: S
2050
2057
  }, [
2051
- y(a(N), {
2058
+ y(n(U), {
2052
2059
  name: "logout",
2053
2060
  size: 16
2054
2061
  }),
2055
- m[5] || (m[5] = e("span", null, "退出登录", -1))
2062
+ p[5] || (p[5] = e("span", null, "退出登录", -1))
2056
2063
  ])
2057
2064
  ])
2058
- ])) : A("", !0)
2065
+ ])) : P("", !0)
2059
2066
  ];
2060
2067
  }),
2061
2068
  _: 1
2062
2069
  })
2063
2070
  ], 512)
2064
2071
  ]),
2065
- y(a(Ge), {
2072
+ y(n(Ge), {
2066
2073
  modelValue: q.value,
2067
- "onUpdate:modelValue": m[2] || (m[2] = ($) => q.value = $),
2074
+ "onUpdate:modelValue": p[2] || (p[2] = ($) => q.value = $),
2068
2075
  title: "换肤设置",
2069
2076
  direction: "rtl",
2070
2077
  size: "320px"
2071
2078
  }, {
2072
- default: L(() => [
2073
- e("div", _a, [
2074
- e("div", fa, [
2075
- m[11] || (m[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
2076
- e("div", ga, [
2077
- (s(), c(K, null, G(Le, ($) => e("div", {
2079
+ default: M(() => [
2080
+ e("div", gn, [
2081
+ e("div", yn, [
2082
+ p[11] || (p[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
2083
+ e("div", bn, [
2084
+ (o(), c(K, null, G(Me, ($) => e("div", {
2078
2085
  key: $.value,
2079
2086
  class: J(["layout-option", { "is-active": fe.value === $.value }]),
2080
2087
  onClick: (Ze) => ge($.value)
2081
2088
  }, [
2082
- e("div", ka, [
2083
- $.value === "sidebar" ? (s(), c("div", wa, [...m[8] || (m[8] = [
2089
+ e("div", wn, [
2090
+ $.value === "sidebar" ? (o(), c("div", xn, [...p[8] || (p[8] = [
2084
2091
  e("div", { class: "preview-aside" }, null, -1),
2085
2092
  e("div", { class: "preview-main" }, [
2086
2093
  e("div", { class: "preview-header" }),
2087
2094
  e("div", { class: "preview-content" })
2088
2095
  ], -1)
2089
- ])])) : $.value === "top" ? (s(), c("div", ba, [...m[9] || (m[9] = [
2096
+ ])])) : $.value === "top" ? (o(), c("div", Cn, [...p[9] || (p[9] = [
2090
2097
  e("div", { class: "preview-header-full" }, null, -1),
2091
2098
  e("div", { class: "preview-content-full" }, null, -1)
2092
- ])])) : (s(), c("div", xa, [...m[10] || (m[10] = [
2099
+ ])])) : (o(), c("div", $n, [...p[10] || (p[10] = [
2093
2100
  e("div", { class: "preview-header-mix" }, [
2094
2101
  e("div", { class: "preview-mix-left" })
2095
2102
  ], -1),
@@ -2099,47 +2106,47 @@ const ce = Ne("menu", () => {
2099
2106
  ], -1)
2100
2107
  ])]))
2101
2108
  ]),
2102
- e("span", Ca, x($.label), 1)
2103
- ], 10, ya)), 64))
2109
+ e("span", Ln, x($.label), 1)
2110
+ ], 10, kn)), 64))
2104
2111
  ])
2105
2112
  ]),
2106
- e("div", $a, [
2107
- m[12] || (m[12] = e("div", { class: "settings-title" }, "主题色", -1)),
2108
- e("div", Ma, [
2109
- (s(), c(K, null, G(z, ($) => e("div", {
2113
+ e("div", Mn, [
2114
+ p[12] || (p[12] = e("div", { class: "settings-title" }, "主题色", -1)),
2115
+ e("div", Sn, [
2116
+ (o(), c(K, null, G(T, ($) => e("div", {
2110
2117
  key: $.value,
2111
- class: J(["color-option", { "is-active": a(r).primaryColor === $.value }]),
2118
+ class: J(["color-option", { "is-active": n(r).primaryColor === $.value }]),
2112
2119
  style: Ie({ backgroundColor: $.value }),
2113
2120
  title: $.label,
2114
- onClick: (Ze) => w($.value)
2121
+ onClick: (Ze) => k($.value)
2115
2122
  }, [
2116
- a(r).primaryColor === $.value ? (s(), O(a(N), {
2123
+ n(r).primaryColor === $.value ? (o(), O(n(U), {
2117
2124
  key: 0,
2118
2125
  name: "check",
2119
2126
  size: 12,
2120
2127
  color: "#fff"
2121
- })) : A("", !0)
2122
- ], 14, La)), 64))
2128
+ })) : P("", !0)
2129
+ ], 14, In)), 64))
2123
2130
  ])
2124
2131
  ]),
2125
- e("div", Sa, [
2126
- m[17] || (m[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
2127
- e("div", Ia, [
2128
- e("div", Na, [
2129
- m[14] || (m[14] = e("span", null, "灰色模式", -1)),
2132
+ e("div", Nn, [
2133
+ p[17] || (p[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
2134
+ e("div", zn, [
2135
+ e("div", Un, [
2136
+ p[14] || (p[14] = e("span", null, "灰色模式", -1)),
2130
2137
  e("div", {
2131
2138
  class: J(["switch-wrapper", { "is-checked": ee.value }]),
2132
2139
  onClick: $e
2133
- }, [...m[13] || (m[13] = [
2140
+ }, [...p[13] || (p[13] = [
2134
2141
  e("span", { class: "switch-core" }, null, -1)
2135
2142
  ])], 2)
2136
2143
  ]),
2137
- e("div", Ua, [
2138
- m[16] || (m[16] = e("span", null, "暗黑模式", -1)),
2144
+ e("div", Tn, [
2145
+ p[16] || (p[16] = e("span", null, "暗黑模式", -1)),
2139
2146
  e("div", {
2140
- class: J(["switch-wrapper", { "is-checked": a(r).isDark }]),
2141
- onClick: Me
2142
- }, [...m[15] || (m[15] = [
2147
+ class: J(["switch-wrapper", { "is-checked": n(r).isDark }]),
2148
+ onClick: Le
2149
+ }, [...p[15] || (p[15] = [
2143
2150
  e("span", { class: "switch-core" }, null, -1)
2144
2151
  ])], 2)
2145
2152
  ])
@@ -2152,31 +2159,31 @@ const ce = Ne("menu", () => {
2152
2159
  ]);
2153
2160
  };
2154
2161
  }
2155
- }), Ea = /* @__PURE__ */ le(za, [["__scopeId", "data-v-18f26903"]]), Ta = {
2162
+ }), Pn = /* @__PURE__ */ re(En, [["__scopeId", "data-v-d5fb6d2a"]]), An = {
2156
2163
  key: 0,
2157
2164
  class: "layout layout--sidebar"
2158
- }, Aa = { class: "layout__main" }, Pa = { class: "layout__header" }, Da = { class: "layout__content" }, Va = {
2165
+ }, Dn = { class: "layout__main" }, Vn = { class: "layout__header" }, On = { class: "layout__content" }, Bn = {
2159
2166
  key: 1,
2160
2167
  class: "layout layout--top"
2161
- }, Oa = { class: "layout__top-menu" }, Ba = { class: "layout__main" }, Ra = { class: "layout__content" }, Fa = {
2168
+ }, Rn = { class: "layout__top-menu" }, Fn = { class: "layout__main" }, Kn = { class: "layout__content" }, jn = {
2162
2169
  key: 2,
2163
2170
  class: "layout layout--mix"
2164
- }, Ka = { class: "layout__mix-top-menu" }, ja = { class: "layout__mix-body" }, Wa = { class: "layout__content" }, qa = /* @__PURE__ */ ae({
2171
+ }, Wn = { class: "layout__mix-top-menu" }, qn = { class: "layout__mix-body" }, Hn = { class: "layout__content" }, Yn = /* @__PURE__ */ ae({
2165
2172
  __name: "index",
2166
2173
  props: {
2167
2174
  logoSrc: { default: "/vite.svg" }
2168
2175
  },
2169
2176
  setup(t) {
2170
- const l = t, d = pe(), i = ce(), o = b(
2177
+ const l = t, d = de(), i = ue(), s = w(
2171
2178
  () => d.isCollapsed ? "64px" : "210px"
2172
- ), r = b(() => d.layout), _ = b(() => r.value === "mix"), v = b(() => r.value === "sidebar" ? i.menuList : r.value === "mix" ? d.mixSubMenus : []), u = b(() => _.value ? v.value.length > 0 : !1);
2173
- return (f, p) => {
2174
- const h = lt("router-view");
2175
- return s(), c(K, null, [
2176
- r.value === "sidebar" ? (s(), c("div", Ta, [
2179
+ ), r = w(() => d.layout), _ = w(() => r.value === "mix"), v = w(() => r.value === "sidebar" ? i.menuList : r.value === "mix" ? d.mixSubMenus : []), u = w(() => _.value ? v.value.length > 0 : !1);
2180
+ return (f, h) => {
2181
+ const m = lt("router-view");
2182
+ return o(), c(K, null, [
2183
+ r.value === "sidebar" ? (o(), c("div", An, [
2177
2184
  e("aside", {
2178
2185
  class: "layout__aside",
2179
- style: Ie({ width: o.value })
2186
+ style: Ie({ width: s.value })
2180
2187
  }, [
2181
2188
  y(et, {
2182
2189
  "menu-list": v.value,
@@ -2185,60 +2192,60 @@ const ce = Ne("menu", () => {
2185
2192
  "logo-src": l.logoSrc
2186
2193
  }, null, 8, ["menu-list", "logo-src"])
2187
2194
  ], 4),
2188
- e("div", Aa, [
2189
- e("header", Pa, [
2190
- y(Ts)
2195
+ e("div", Dn, [
2196
+ e("header", Vn, [
2197
+ y(Ps)
2191
2198
  ]),
2192
- e("main", Da, [
2193
- y(h)
2199
+ e("main", On, [
2200
+ y(m)
2194
2201
  ])
2195
2202
  ])
2196
- ])) : A("", !0),
2197
- r.value === "top" ? (s(), c("div", Va, [
2198
- e("div", Oa, [
2199
- y(Fo, {
2203
+ ])) : P("", !0),
2204
+ r.value === "top" ? (o(), c("div", Bn, [
2205
+ e("div", Rn, [
2206
+ y(Ko, {
2200
2207
  "logo-src": l.logoSrc
2201
2208
  }, null, 8, ["logo-src"])
2202
2209
  ]),
2203
- e("div", Ba, [
2204
- e("main", Ra, [
2205
- y(h)
2210
+ e("div", Fn, [
2211
+ e("main", Kn, [
2212
+ y(m)
2206
2213
  ])
2207
2214
  ])
2208
- ])) : A("", !0),
2209
- r.value === "mix" ? (s(), c("div", Fa, [
2210
- e("div", Ka, [
2211
- y(Ea, {
2215
+ ])) : P("", !0),
2216
+ r.value === "mix" ? (o(), c("div", jn, [
2217
+ e("div", Wn, [
2218
+ y(Pn, {
2212
2219
  "logo-src": l.logoSrc
2213
2220
  }, null, 8, ["logo-src"])
2214
2221
  ]),
2215
- e("div", ja, [
2216
- u.value ? (s(), c("aside", {
2222
+ e("div", qn, [
2223
+ u.value ? (o(), c("aside", {
2217
2224
  key: 0,
2218
2225
  class: "layout__aside",
2219
- style: Ie({ width: o.value })
2226
+ style: Ie({ width: s.value })
2220
2227
  }, [
2221
2228
  y(et, {
2222
2229
  "menu-list": v.value,
2223
2230
  "show-logo": !1,
2224
2231
  "show-user": !1
2225
2232
  }, null, 8, ["menu-list"])
2226
- ], 4)) : A("", !0),
2227
- e("main", Wa, [
2228
- y(h)
2233
+ ], 4)) : P("", !0),
2234
+ e("main", Hn, [
2235
+ y(m)
2229
2236
  ])
2230
2237
  ])
2231
- ])) : A("", !0)
2238
+ ])) : P("", !0)
2232
2239
  ], 64);
2233
2240
  };
2234
2241
  }
2235
- }), it = /* @__PURE__ */ le(qa, [["__scopeId", "data-v-3317ef3c"]]), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2242
+ }), it = /* @__PURE__ */ re(Yn, [["__scopeId", "data-v-38f2fc61"]]), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2236
2243
  __proto__: null,
2237
2244
  default: it
2238
- }, Symbol.toStringTag, { value: "Module" })), Ya = { class: "tabs-wrapper" }, Xa = { class: "tab-label" }, Ga = ["onClick"], Ja = /* @__PURE__ */ ae({
2245
+ }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Zn = ["onClick"], Qn = /* @__PURE__ */ ae({
2239
2246
  __name: "Tabs",
2240
2247
  setup(t) {
2241
- const l = be(), d = me(), i = b(() => {
2248
+ const l = we(), d = me(), i = w(() => {
2242
2249
  const v = [];
2243
2250
  return l.matched.forEach((u) => {
2244
2251
  var f;
@@ -2249,37 +2256,37 @@ const ce = Ne("menu", () => {
2249
2256
  affix: !0
2250
2257
  });
2251
2258
  }), v;
2252
- }), o = b(() => l.path), r = (v) => {
2259
+ }), s = w(() => l.path), r = (v) => {
2253
2260
  d.push(v);
2254
2261
  }, _ = (v) => {
2255
2262
  const u = i.value.find((f) => f.path === v);
2256
- if (!(u != null && u.affix) && v === o.value) {
2257
- const f = i.value.findIndex((h) => h.path === v), p = i.value[f - 1] || i.value[f + 1];
2258
- p && d.push(p.path);
2263
+ if (!(u != null && u.affix) && v === s.value) {
2264
+ const f = i.value.findIndex((m) => m.path === v), h = i.value[f - 1] || i.value[f + 1];
2265
+ h && d.push(h.path);
2259
2266
  }
2260
2267
  };
2261
- return (v, u) => (s(), c("div", Ya, [
2262
- y(a(wt), {
2263
- modelValue: o.value,
2264
- "onUpdate:modelValue": u[0] || (u[0] = (f) => o.value = f),
2268
+ return (v, u) => (o(), c("div", Gn, [
2269
+ y(n(kt), {
2270
+ modelValue: s.value,
2271
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => s.value = f),
2265
2272
  type: "card",
2266
2273
  onTabClick: r
2267
2274
  }, {
2268
- default: L(() => [
2269
- (s(!0), c(K, null, G(i.value, (f) => (s(), O(a(bt), {
2275
+ default: M(() => [
2276
+ (o(!0), c(K, null, G(i.value, (f) => (o(), O(n(wt), {
2270
2277
  key: f.path,
2271
2278
  name: f.path,
2272
2279
  label: f.title,
2273
2280
  closable: !f.affix
2274
2281
  }, {
2275
- label: L(() => [
2276
- e("span", Xa, [
2282
+ label: M(() => [
2283
+ e("span", Jn, [
2277
2284
  he(x(f.title) + " ", 1),
2278
- f.affix ? A("", !0) : (s(), c("span", {
2285
+ f.affix ? P("", !0) : (o(), c("span", {
2279
2286
  key: 0,
2280
2287
  class: "tab-close",
2281
- onClick: Te((p) => _(f.path), ["stop"])
2282
- }, " ✕ ", 8, Ga))
2288
+ onClick: Ee((h) => _(f.path), ["stop"])
2289
+ }, " ✕ ", 8, Zn))
2283
2290
  ])
2284
2291
  ]),
2285
2292
  _: 2
@@ -2289,16 +2296,16 @@ const ce = Ne("menu", () => {
2289
2296
  }, 8, ["modelValue"])
2290
2297
  ]));
2291
2298
  }
2292
- }), Bn = /* @__PURE__ */ le(Ja, [["__scopeId", "data-v-9156d8cd"]]), Za = {}, Qa = { class: "footer" };
2293
- function en(t, l) {
2294
- return s(), c("div", Qa, [...l[0] || (l[0] = [
2299
+ }), Ra = /* @__PURE__ */ re(Qn, [["__scopeId", "data-v-9156d8cd"]]), ea = {}, ta = { class: "footer" };
2300
+ function sa(t, l) {
2301
+ return o(), c("div", ta, [...l[0] || (l[0] = [
2295
2302
  e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2296
2303
  ])]);
2297
2304
  }
2298
- const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826a"]]), tn = { class: "login-page" }, sn = { class: "login-form-section" }, on = { class: "form-container" }, an = { class: "input-wrapper" }, nn = { class: "input-wrapper" }, ln = { class: "form-options" }, rn = { key: 0 }, cn = { key: 1 }, dn = /* @__PURE__ */ ae({
2305
+ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826a"]]), oa = { class: "login-page" }, na = { class: "login-form-section" }, aa = { class: "form-container" }, la = { class: "input-wrapper" }, ra = { class: "input-wrapper" }, ia = { class: "form-options" }, ca = { key: 0 }, da = { key: 1 }, ua = /* @__PURE__ */ ae({
2299
2306
  __name: "index",
2300
2307
  setup(t) {
2301
- const l = me(), d = be(), i = g(!1), o = g(!1), r = qe({
2308
+ const l = me(), d = we(), i = g(!1), s = g(!1), r = qe({
2302
2309
  uid: "",
2303
2310
  password: ""
2304
2311
  }), _ = {
@@ -2313,31 +2320,31 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2313
2320
  var f;
2314
2321
  try {
2315
2322
  await ((f = v.value) == null ? void 0 : f.validate()), i.value = !0;
2316
- const p = await pt({
2323
+ const h = await pt({
2317
2324
  appId: Fe(),
2318
- clientId: nt(),
2325
+ clientId: at(),
2319
2326
  uid: r.uid,
2320
2327
  password: r.password,
2321
2328
  code: !0
2322
2329
  });
2323
- at(p), xt.success("登录成功");
2324
- const h = d.query.redirect || "/";
2325
- l.push(h);
2326
- } catch (p) {
2327
- console.error("登录失败:", p);
2330
+ nt(h), xt.success("登录成功");
2331
+ const m = d.query.redirect || "/";
2332
+ l.push(m);
2333
+ } catch (h) {
2334
+ console.error("登录失败:", h);
2328
2335
  } finally {
2329
2336
  i.value = !1;
2330
2337
  }
2331
2338
  };
2332
- return (f, p) => (s(), c("div", tn, [
2333
- p[10] || (p[10] = ze('<div class="login-brand" data-v-15fc7de5><div class="brand-content" data-v-15fc7de5><div class="brand-logo" data-v-15fc7de5><div class="logo-icon" data-v-15fc7de5><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-15fc7de5><rect width="48" height="48" rx="12" fill="currentColor" data-v-15fc7de5></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-15fc7de5></path></svg></div><span class="logo-text" data-v-15fc7de5>XTO</span></div><div class="brand-slogan" data-v-15fc7de5><h1 data-v-15fc7de5>企业级后台管理解决方案</h1><p data-v-15fc7de5>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-15fc7de5><div class="feature-item" data-v-15fc7de5><div class="feature-icon" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-15fc7de5><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-15fc7de5></path></svg></div><div class="feature-text" data-v-15fc7de5><h4 data-v-15fc7de5>高性能</h4><p data-v-15fc7de5>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-15fc7de5><div class="feature-icon" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-15fc7de5><rect x="3" y="3" width="18" height="18" rx="2" data-v-15fc7de5></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-15fc7de5></path></svg></div><div class="feature-text" data-v-15fc7de5><h4 data-v-15fc7de5>丰富组件</h4><p data-v-15fc7de5>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-15fc7de5><div class="feature-icon" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-15fc7de5><circle cx="12" cy="12" r="10" data-v-15fc7de5></circle><path d="M12 6v6l4 2" data-v-15fc7de5></path></svg></div><div class="feature-text" data-v-15fc7de5><h4 data-v-15fc7de5>持续更新</h4><p data-v-15fc7de5>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-15fc7de5><div class="decoration-line" data-v-15fc7de5></div><div class="decoration-dots" data-v-15fc7de5><span data-v-15fc7de5></span><span data-v-15fc7de5></span><span data-v-15fc7de5></span></div></div></div><div class="brand-bg" data-v-15fc7de5><div class="bg-grid" data-v-15fc7de5></div><div class="bg-glow" data-v-15fc7de5></div><div class="bg-pattern" data-v-15fc7de5></div></div></div>', 1)),
2334
- e("div", sn, [
2335
- e("div", on, [
2336
- p[7] || (p[7] = e("div", { class: "form-header" }, [
2339
+ return (f, h) => (o(), c("div", oa, [
2340
+ h[10] || (h[10] = Ue('<div class="login-brand" data-v-102cb5d3><div class="brand-content" data-v-102cb5d3><div class="brand-logo" data-v-102cb5d3><div class="logo-icon" data-v-102cb5d3><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-102cb5d3><rect width="48" height="48" rx="12" fill="currentColor" data-v-102cb5d3></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-102cb5d3></path></svg></div><span class="logo-text" data-v-102cb5d3>XTO</span></div><div class="brand-slogan" data-v-102cb5d3><h1 data-v-102cb5d3>企业级后台管理解决方案</h1><p data-v-102cb5d3>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-102cb5d3><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>高性能</h4><p data-v-102cb5d3>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><rect x="3" y="3" width="18" height="18" rx="2" data-v-102cb5d3></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>丰富组件</h4><p data-v-102cb5d3>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><circle cx="12" cy="12" r="10" data-v-102cb5d3></circle><path d="M12 6v6l4 2" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>持续更新</h4><p data-v-102cb5d3>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-102cb5d3><div class="decoration-line" data-v-102cb5d3></div><div class="decoration-dots" data-v-102cb5d3><span data-v-102cb5d3></span><span data-v-102cb5d3></span><span data-v-102cb5d3></span></div></div></div><div class="brand-bg" data-v-102cb5d3><div class="bg-grid" data-v-102cb5d3></div><div class="bg-glow" data-v-102cb5d3></div><div class="bg-pattern" data-v-102cb5d3></div></div></div>', 1)),
2341
+ e("div", na, [
2342
+ e("div", aa, [
2343
+ h[7] || (h[7] = e("div", { class: "form-header" }, [
2337
2344
  e("h2", null, "欢迎登录"),
2338
2345
  e("p", null, "请输入您的账户信息")
2339
2346
  ], -1)),
2340
- y(a(Ct), {
2347
+ y(n(Ct), {
2341
2348
  ref_key: "formRef",
2342
2349
  ref: v,
2343
2350
  model: r,
@@ -2345,19 +2352,19 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2345
2352
  class: "login-form",
2346
2353
  "label-width": "0"
2347
2354
  }, {
2348
- default: L(() => [
2349
- y(a(Ae), { prop: "uid" }, {
2350
- default: L(() => [
2351
- e("div", an, [
2352
- p[3] || (p[3] = e("label", { class: "input-label" }, "用户名", -1)),
2353
- y(a(Qe), {
2355
+ default: M(() => [
2356
+ y(n(Pe), { prop: "uid" }, {
2357
+ default: M(() => [
2358
+ e("div", la, [
2359
+ h[3] || (h[3] = e("label", { class: "input-label" }, "用户名", -1)),
2360
+ y(n(Qe), {
2354
2361
  modelValue: r.uid,
2355
- "onUpdate:modelValue": p[0] || (p[0] = (h) => r.uid = h),
2362
+ "onUpdate:modelValue": h[0] || (h[0] = (m) => r.uid = m),
2356
2363
  placeholder: "请输入用户名",
2357
2364
  size: "large"
2358
2365
  }, {
2359
- prefix: L(() => [
2360
- y(a(N), {
2366
+ prefix: M(() => [
2367
+ y(n(U), {
2361
2368
  name: "user",
2362
2369
  size: 18
2363
2370
  })
@@ -2368,21 +2375,21 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2368
2375
  ]),
2369
2376
  _: 1
2370
2377
  }),
2371
- y(a(Ae), { prop: "password" }, {
2372
- default: L(() => [
2373
- e("div", nn, [
2374
- p[4] || (p[4] = e("label", { class: "input-label" }, "密码", -1)),
2375
- y(a(Qe), {
2378
+ y(n(Pe), { prop: "password" }, {
2379
+ default: M(() => [
2380
+ e("div", ra, [
2381
+ h[4] || (h[4] = e("label", { class: "input-label" }, "密码", -1)),
2382
+ y(n(Qe), {
2376
2383
  modelValue: r.password,
2377
- "onUpdate:modelValue": p[1] || (p[1] = (h) => r.password = h),
2384
+ "onUpdate:modelValue": h[1] || (h[1] = (m) => r.password = m),
2378
2385
  type: "password",
2379
2386
  placeholder: "请输入密码",
2380
2387
  size: "large",
2381
2388
  "show-password": "",
2382
2389
  onKeyup: yt(u, ["enter"])
2383
2390
  }, {
2384
- prefix: L(() => [
2385
- y(a(N), {
2391
+ prefix: M(() => [
2392
+ y(n(U), {
2386
2393
  name: "lock",
2387
2394
  size: 18
2388
2395
  })
@@ -2393,32 +2400,32 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2393
2400
  ]),
2394
2401
  _: 1
2395
2402
  }),
2396
- e("div", ln, [
2397
- y(a($t), {
2398
- modelValue: o.value,
2399
- "onUpdate:modelValue": p[2] || (p[2] = (h) => o.value = h)
2403
+ e("div", ia, [
2404
+ y(n($t), {
2405
+ modelValue: s.value,
2406
+ "onUpdate:modelValue": h[2] || (h[2] = (m) => s.value = m)
2400
2407
  }, {
2401
- default: L(() => [...p[5] || (p[5] = [
2408
+ default: M(() => [...h[5] || (h[5] = [
2402
2409
  he("记住我", -1)
2403
2410
  ])]),
2404
2411
  _: 1
2405
2412
  }, 8, ["modelValue"]),
2406
- p[6] || (p[6] = e("a", {
2413
+ h[6] || (h[6] = e("a", {
2407
2414
  href: "#",
2408
2415
  class: "forgot-link"
2409
2416
  }, "忘记密码?", -1))
2410
2417
  ]),
2411
- y(a(Ae), null, {
2412
- default: L(() => [
2413
- y(a(we), {
2418
+ y(n(Pe), null, {
2419
+ default: M(() => [
2420
+ y(n(ke), {
2414
2421
  type: "primary",
2415
2422
  size: "large",
2416
2423
  loading: i.value,
2417
2424
  class: "login-btn",
2418
2425
  onClick: u
2419
2426
  }, {
2420
- default: L(() => [
2421
- i.value ? (s(), c("span", cn, "登录中...")) : (s(), c("span", rn, "登 录"))
2427
+ default: M(() => [
2428
+ i.value ? (o(), c("span", da, "登录中...")) : (o(), c("span", ca, "登 录"))
2422
2429
  ]),
2423
2430
  _: 1
2424
2431
  }, 8, ["loading"])
@@ -2428,39 +2435,39 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2428
2435
  ]),
2429
2436
  _: 1
2430
2437
  }, 8, ["model"]),
2431
- p[8] || (p[8] = ze('<div class="form-footer" data-v-15fc7de5><p data-v-15fc7de5>其他登录方式</p><div class="social-login" data-v-15fc7de5><button class="social-btn" title="企业微信" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="currentColor" data-v-15fc7de5><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-15fc7de5></path></svg></button><button class="social-btn" title="钉钉" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="currentColor" data-v-15fc7de5><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-15fc7de5></path></svg></button><button class="social-btn" title="飞书" data-v-15fc7de5><svg viewBox="0 0 24 24" fill="currentColor" data-v-15fc7de5><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-15fc7de5></path></svg></button></div></div>', 1))
2438
+ h[8] || (h[8] = Ue('<div class="form-footer" data-v-102cb5d3><p data-v-102cb5d3>其他登录方式</p><div class="social-login" data-v-102cb5d3><button class="social-btn" title="企业微信" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="钉钉" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="飞书" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-102cb5d3></path></svg></button></div></div>', 1))
2432
2439
  ]),
2433
- p[9] || (p[9] = e("div", { class: "copyright" }, [
2440
+ h[9] || (h[9] = e("div", { class: "copyright" }, [
2434
2441
  e("p", null, "© 2024 XTO Team. All rights reserved.")
2435
2442
  ], -1))
2436
2443
  ])
2437
2444
  ]));
2438
2445
  }
2439
- }), un = /* @__PURE__ */ le(dn, [["__scopeId", "data-v-15fc7de5"]]), mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2446
+ }), ma = /* @__PURE__ */ re(ua, [["__scopeId", "data-v-102cb5d3"]]), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2440
2447
  __proto__: null,
2441
- default: un
2442
- }, Symbol.toStringTag, { value: "Module" })), pn = { class: "error-page" }, vn = { class: "error-container" }, hn = { class: "error-content" }, _n = { class: "error-actions" }, fn = /* @__PURE__ */ ae({
2448
+ default: ma
2449
+ }, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, ha = { class: "error-container" }, _a = { class: "error-content" }, fa = { class: "error-actions" }, ga = /* @__PURE__ */ ae({
2443
2450
  __name: "404",
2444
2451
  setup(t) {
2445
2452
  const l = me(), d = () => {
2446
2453
  l.push("/");
2447
2454
  };
2448
- return (i, o) => (s(), c("div", pn, [
2449
- e("div", vn, [
2450
- o[7] || (o[7] = e("div", { class: "error-bg" }, [
2455
+ return (i, s) => (o(), c("div", va, [
2456
+ e("div", ha, [
2457
+ s[7] || (s[7] = e("div", { class: "error-bg" }, [
2451
2458
  e("div", { class: "bg-circle circle-1" }),
2452
2459
  e("div", { class: "bg-circle circle-2" }),
2453
2460
  e("div", { class: "bg-circle circle-3" })
2454
2461
  ], -1)),
2455
- e("div", hn, [
2456
- o[5] || (o[5] = ze('<div class="error-code" data-v-3a9e61ae><span class="code-digit" data-v-3a9e61ae>4</span><span class="code-zero" data-v-3a9e61ae><span class="zero-inner" data-v-3a9e61ae>0</span></span><span class="code-digit" data-v-3a9e61ae>4</span></div><div class="error-illustration" data-v-3a9e61ae><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3a9e61ae><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--color-fill)" stroke="var(--color-border)" stroke-width="2" data-v-3a9e61ae></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--bg-color)" data-v-3a9e61ae></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--color-border-light)" stroke-width="2" data-v-3a9e61ae></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--color-border-light)" stroke-width="2" data-v-3a9e61ae></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--color-border-light)" stroke-width="2" data-v-3a9e61ae></line><text x="100" y="75" text-anchor="middle" fill="var(--color-primary)" font-size="24" font-weight="600" data-v-3a9e61ae>?</text><circle cx="150" cy="35" r="12" stroke="var(--color-primary)" stroke-width="2" fill="none" data-v-3a9e61ae></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--color-primary)" stroke-width="2" stroke-linecap="round" data-v-3a9e61ae></line></svg></div><h1 class="error-title" data-v-3a9e61ae>页面不存在</h1><p class="error-desc" data-v-3a9e61ae>抱歉,您访问的页面不存在或已被删除</p>', 4)),
2457
- e("div", _n, [
2458
- y(a(we), {
2462
+ e("div", _a, [
2463
+ s[5] || (s[5] = Ue('<div class="error-code" data-v-1b083153><span class="code-digit" data-v-1b083153>4</span><span class="code-zero" data-v-1b083153><span class="zero-inner" data-v-1b083153>0</span></span><span class="code-digit" data-v-1b083153>4</span></div><div class="error-illustration" data-v-1b083153><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-1b083153><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--color-fill)" stroke="var(--color-border)" stroke-width="2" data-v-1b083153></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--bg-color)" data-v-1b083153></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><text x="100" y="75" text-anchor="middle" fill="var(--color-primary)" font-size="24" font-weight="600" data-v-1b083153>?</text><circle cx="150" cy="35" r="12" stroke="var(--color-primary)" stroke-width="2" fill="none" data-v-1b083153></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--color-primary)" stroke-width="2" stroke-linecap="round" data-v-1b083153></line></svg></div><h1 class="error-title" data-v-1b083153>页面不存在</h1><p class="error-desc" data-v-1b083153>抱歉,您访问的页面不存在或已被删除</p>', 4)),
2464
+ e("div", fa, [
2465
+ y(n(ke), {
2459
2466
  type: "primary",
2460
2467
  size: "large",
2461
2468
  onClick: d
2462
2469
  }, {
2463
- icon: L(() => [...o[1] || (o[1] = [
2470
+ icon: M(() => [...s[1] || (s[1] = [
2464
2471
  e("svg", {
2465
2472
  viewBox: "0 0 24 24",
2466
2473
  fill: "none",
@@ -2471,16 +2478,16 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2471
2478
  e("polyline", { points: "9,22 9,12 15,12 15,22" })
2472
2479
  ], -1)
2473
2480
  ])]),
2474
- default: L(() => [
2475
- o[2] || (o[2] = he(" 返回首页 ", -1))
2481
+ default: M(() => [
2482
+ s[2] || (s[2] = he(" 返回首页 ", -1))
2476
2483
  ]),
2477
2484
  _: 1
2478
2485
  }),
2479
- y(a(we), {
2486
+ y(n(ke), {
2480
2487
  size: "large",
2481
- onClick: o[0] || (o[0] = (r) => a(l).go(-1))
2488
+ onClick: s[0] || (s[0] = (r) => n(l).go(-1))
2482
2489
  }, {
2483
- icon: L(() => [...o[3] || (o[3] = [
2490
+ icon: M(() => [...s[3] || (s[3] = [
2484
2491
  e("svg", {
2485
2492
  viewBox: "0 0 24 24",
2486
2493
  fill: "none",
@@ -2490,13 +2497,13 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2490
2497
  e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
2491
2498
  ], -1)
2492
2499
  ])]),
2493
- default: L(() => [
2494
- o[4] || (o[4] = he(" 返回上一页 ", -1))
2500
+ default: M(() => [
2501
+ s[4] || (s[4] = he(" 返回上一页 ", -1))
2495
2502
  ]),
2496
2503
  _: 1
2497
2504
  })
2498
2505
  ]),
2499
- o[6] || (o[6] = e("div", { class: "error-tip" }, [
2506
+ s[6] || (s[6] = e("div", { class: "error-tip" }, [
2500
2507
  e("p", null, "您可以尝试:"),
2501
2508
  e("ul", null, [
2502
2509
  e("li", null, "检查您输入的网址是否正确"),
@@ -2508,31 +2515,31 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2508
2515
  ])
2509
2516
  ]));
2510
2517
  }
2511
- }), gn = /* @__PURE__ */ le(fn, [["__scopeId", "data-v-3a9e61ae"]]), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2518
+ }), ya = /* @__PURE__ */ re(ga, [["__scopeId", "data-v-1b083153"]]), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2512
2519
  __proto__: null,
2513
- default: gn
2514
- }, Symbol.toStringTag, { value: "Module" })), yn = { class: "error-page" }, kn = { class: "error-container" }, wn = { class: "error-content" }, bn = { class: "error-actions" }, xn = /* @__PURE__ */ ae({
2520
+ default: ya
2521
+ }, Symbol.toStringTag, { value: "Module" })), ba = { class: "error-page" }, ka = { class: "error-container" }, wa = { class: "error-content" }, xa = { class: "error-actions" }, Ca = /* @__PURE__ */ ae({
2515
2522
  __name: "403",
2516
2523
  setup(t) {
2517
2524
  const l = me(), d = () => {
2518
2525
  l.push("/");
2519
2526
  };
2520
- return (i, o) => (s(), c("div", yn, [
2521
- e("div", kn, [
2522
- o[7] || (o[7] = e("div", { class: "error-bg" }, [
2527
+ return (i, s) => (o(), c("div", ba, [
2528
+ e("div", ka, [
2529
+ s[7] || (s[7] = e("div", { class: "error-bg" }, [
2523
2530
  e("div", { class: "bg-circle circle-1" }),
2524
2531
  e("div", { class: "bg-circle circle-2" }),
2525
2532
  e("div", { class: "bg-circle circle-3" })
2526
2533
  ], -1)),
2527
- e("div", wn, [
2528
- o[5] || (o[5] = ze('<div class="error-code" data-v-c733ebac><span class="code-digit" data-v-c733ebac>4</span><span class="code-zero warning" data-v-c733ebac><span class="zero-inner" data-v-c733ebac>0</span></span><span class="code-digit" data-v-c733ebac>3</span></div><div class="error-illustration" data-v-c733ebac><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c733ebac><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--color-warning-lighter)" stroke="var(--color-warning)" stroke-width="2" data-v-c733ebac></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--color-warning)" data-v-c733ebac></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--color-warning)" stroke-width="3" data-v-c733ebac></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-c733ebac></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-c733ebac></line></svg></div><h1 class="error-title" data-v-c733ebac>无访问权限</h1><p class="error-desc" data-v-c733ebac>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
2529
- e("div", bn, [
2530
- y(a(we), {
2534
+ e("div", wa, [
2535
+ s[5] || (s[5] = Ue('<div class="error-code" data-v-d167f981><span class="code-digit" data-v-d167f981>4</span><span class="code-zero warning" data-v-d167f981><span class="zero-inner" data-v-d167f981>0</span></span><span class="code-digit" data-v-d167f981>3</span></div><div class="error-illustration" data-v-d167f981><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-d167f981><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--color-warning-lighter)" stroke="var(--color-warning)" stroke-width="2" data-v-d167f981></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--color-warning)" data-v-d167f981></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--color-warning)" stroke-width="3" data-v-d167f981></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-d167f981></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-d167f981></line></svg></div><h1 class="error-title" data-v-d167f981>无访问权限</h1><p class="error-desc" data-v-d167f981>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
2536
+ e("div", xa, [
2537
+ y(n(ke), {
2531
2538
  type: "primary",
2532
2539
  size: "large",
2533
2540
  onClick: d
2534
2541
  }, {
2535
- icon: L(() => [...o[1] || (o[1] = [
2542
+ icon: M(() => [...s[1] || (s[1] = [
2536
2543
  e("svg", {
2537
2544
  viewBox: "0 0 24 24",
2538
2545
  fill: "none",
@@ -2543,16 +2550,16 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2543
2550
  e("polyline", { points: "9,22 9,12 15,12 15,22" })
2544
2551
  ], -1)
2545
2552
  ])]),
2546
- default: L(() => [
2547
- o[2] || (o[2] = he(" 返回首页 ", -1))
2553
+ default: M(() => [
2554
+ s[2] || (s[2] = he(" 返回首页 ", -1))
2548
2555
  ]),
2549
2556
  _: 1
2550
2557
  }),
2551
- y(a(we), {
2558
+ y(n(ke), {
2552
2559
  size: "large",
2553
- onClick: o[0] || (o[0] = (r) => a(l).go(-1))
2560
+ onClick: s[0] || (s[0] = (r) => n(l).go(-1))
2554
2561
  }, {
2555
- icon: L(() => [...o[3] || (o[3] = [
2562
+ icon: M(() => [...s[3] || (s[3] = [
2556
2563
  e("svg", {
2557
2564
  viewBox: "0 0 24 24",
2558
2565
  fill: "none",
@@ -2562,13 +2569,13 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2562
2569
  e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
2563
2570
  ], -1)
2564
2571
  ])]),
2565
- default: L(() => [
2566
- o[4] || (o[4] = he(" 返回上一页 ", -1))
2572
+ default: M(() => [
2573
+ s[4] || (s[4] = he(" 返回上一页 ", -1))
2567
2574
  ]),
2568
2575
  _: 1
2569
2576
  })
2570
2577
  ]),
2571
- o[6] || (o[6] = e("div", { class: "error-tip" }, [
2578
+ s[6] || (s[6] = e("div", { class: "error-tip" }, [
2572
2579
  e("p", null, "可能的原因:"),
2573
2580
  e("ul", null, [
2574
2581
  e("li", null, "您的账号权限不足"),
@@ -2580,18 +2587,18 @@ const Rn = /* @__PURE__ */ le(Za, [["render", en], ["__scopeId", "data-v-4852826
2580
2587
  ])
2581
2588
  ]));
2582
2589
  }
2583
- }), Fn = /* @__PURE__ */ le(xn, [["__scopeId", "data-v-c733ebac"]]);
2584
- function Kn() {
2585
- const t = pe(), l = ne(), d = Ue(), i = b(() => l.userName || ""), o = b(() => l.userInfo), r = b(() => t.appName), _ = b(() => d.isLoggedIn), v = b(() => t.isDark), u = b(() => t.theme), f = b(() => t.isCollapsed), p = b(() => t.layout);
2590
+ }), Ka = /* @__PURE__ */ re(Ca, [["__scopeId", "data-v-d167f981"]]);
2591
+ function ja() {
2592
+ const t = de(), l = le(), d = ze(), i = w(() => l.userName || ""), s = w(() => l.userInfo), r = w(() => t.appName), _ = w(() => d.isLoggedIn), v = w(() => t.isDark), u = w(() => t.theme), f = w(() => t.isCollapsed), h = w(() => t.layout);
2586
2593
  return {
2587
2594
  userName: i,
2588
- userInfo: o,
2595
+ userInfo: s,
2589
2596
  appName: r,
2590
2597
  isLoggedIn: _,
2591
2598
  isDark: v,
2592
2599
  theme: u,
2593
2600
  isCollapsed: f,
2594
- layout: p,
2601
+ layout: h,
2595
2602
  toggleTheme: () => {
2596
2603
  t.toggleTheme();
2597
2604
  },
@@ -2600,40 +2607,40 @@ function Kn() {
2600
2607
  }
2601
2608
  };
2602
2609
  }
2603
- function jn() {
2604
- const t = ne();
2610
+ function Wa() {
2611
+ const t = le();
2605
2612
  return {
2606
- isLoggedIn: b(() => t.isLoggedIn)
2613
+ isLoggedIn: w(() => t.isLoggedIn)
2607
2614
  };
2608
2615
  }
2609
- function Wn(t, l = {}) {
2610
- const { rules: d, onSubmit: i } = l, o = g(), r = qe({ ...t }), _ = g(!1), v = g(!1), u = g(!1), f = () => {
2611
- k(), u.value = !1, v.value = !0;
2612
- }, p = (D) => {
2616
+ function qa(t, l = {}) {
2617
+ const { rules: d, onSubmit: i } = l, s = g(), r = qe({ ...t }), _ = g(!1), v = g(!1), u = g(!1), f = () => {
2618
+ b(), u.value = !1, v.value = !0;
2619
+ }, h = (D) => {
2613
2620
  Object.assign(r, D), u.value = !0, v.value = !0;
2614
- }, h = () => {
2615
- v.value = !1, k();
2616
- }, k = () => {
2621
+ }, m = () => {
2622
+ v.value = !1, b();
2623
+ }, b = () => {
2617
2624
  var D;
2618
2625
  Object.keys(t).forEach((W) => {
2619
2626
  r[W] = t[W];
2620
- }), (D = o.value) == null || D.resetFields();
2627
+ }), (D = s.value) == null || D.resetFields();
2621
2628
  };
2622
2629
  return {
2623
- formRef: o,
2630
+ formRef: s,
2624
2631
  formData: r,
2625
2632
  rules: d,
2626
2633
  loading: _,
2627
2634
  visible: v,
2628
2635
  isEdit: u,
2629
2636
  openAdd: f,
2630
- openEdit: p,
2631
- close: h,
2632
- resetForm: k,
2637
+ openEdit: h,
2638
+ close: m,
2639
+ resetForm: b,
2633
2640
  handleSubmit: async () => {
2634
2641
  var D;
2635
2642
  try {
2636
- await ((D = o.value) == null ? void 0 : D.validate()), _.value = !0, await (i == null ? void 0 : i(r)), h();
2643
+ await ((D = s.value) == null ? void 0 : D.validate()), _.value = !0, await (i == null ? void 0 : i(r)), m();
2637
2644
  } catch (W) {
2638
2645
  console.error(W);
2639
2646
  } finally {
@@ -2642,8 +2649,8 @@ function Wn(t, l = {}) {
2642
2649
  }
2643
2650
  };
2644
2651
  }
2645
- function qn(t) {
2646
- const { fetchData: l, defaultPageSize: d = 10 } = t, i = g(!1), o = g([]), r = g(0), _ = g(1), v = g(d), u = qe({}), f = async () => {
2652
+ function Ha(t) {
2653
+ const { fetchData: l, defaultPageSize: d = 10 } = t, i = g(!1), s = g([]), r = g(0), _ = g(1), v = g(d), u = qe({}), f = async () => {
2647
2654
  i.value = !0;
2648
2655
  try {
2649
2656
  const V = {
@@ -2651,72 +2658,72 @@ function qn(t) {
2651
2658
  page: _.value,
2652
2659
  pageSize: v.value
2653
2660
  }, B = await l(V);
2654
- o.value = B.list, r.value = B.total;
2661
+ s.value = B.list, r.value = B.total;
2655
2662
  } catch (V) {
2656
2663
  console.error(V);
2657
2664
  } finally {
2658
2665
  i.value = !1;
2659
2666
  }
2660
- }, p = () => {
2661
- _.value = 1, f();
2662
2667
  }, h = () => {
2668
+ _.value = 1, f();
2669
+ }, m = () => {
2663
2670
  Object.keys(u).forEach((V) => {
2664
2671
  u[V] = void 0;
2665
2672
  }), _.value = 1, f();
2666
- }, k = (V) => {
2673
+ }, b = (V) => {
2667
2674
  _.value = V, f();
2668
2675
  }, j = (V) => {
2669
2676
  v.value = V, _.value = 1, f();
2670
2677
  }, D = () => {
2671
2678
  f();
2672
- }, W = b(() => ({
2679
+ }, W = w(() => ({
2673
2680
  current: _.value,
2674
2681
  pageSize: v.value,
2675
2682
  total: r.value
2676
2683
  }));
2677
2684
  return {
2678
2685
  loading: i,
2679
- data: o,
2686
+ data: s,
2680
2687
  total: r,
2681
2688
  currentPage: _,
2682
2689
  pageSize: v,
2683
2690
  searchParams: u,
2684
2691
  pagination: W,
2685
2692
  getData: f,
2686
- handleSearch: p,
2687
- handleReset: h,
2688
- handlePageChange: k,
2693
+ handleSearch: h,
2694
+ handleReset: m,
2695
+ handlePageChange: b,
2689
2696
  handleSizeChange: j,
2690
2697
  refresh: D
2691
2698
  };
2692
2699
  }
2693
2700
  const Je = Ne("locale", () => {
2694
- const t = U.get("locale") || "zh-CN", l = Mt(t), d = g(t), i = Lt(), { t: o, messages: r, setLocale: _, mergeMessages: v } = St(), u = b(() => {
2695
- const k = i.find((j) => j.code === d.value);
2696
- return (k == null ? void 0 : k.name) || d.value;
2701
+ const t = N.get("locale") || "zh-CN", l = Lt(t), d = g(t), i = Mt(), { t: s, messages: r, setLocale: _, mergeMessages: v } = St(), u = w(() => {
2702
+ const b = i.find((j) => j.code === d.value);
2703
+ return (b == null ? void 0 : b.name) || d.value;
2697
2704
  });
2698
2705
  return {
2699
2706
  locale: d,
2700
2707
  localeName: u,
2701
2708
  locales: i,
2702
2709
  messages: r,
2703
- t: o,
2704
- changeLocale: (k) => {
2705
- d.value = k, _(k), U.set("locale", k), l.setLocale(k);
2710
+ t: s,
2711
+ changeLocale: (b) => {
2712
+ d.value = b, _(b), N.set("locale", b), l.setLocale(b);
2706
2713
  },
2707
- addMessages: (k) => {
2708
- v(k);
2714
+ addMessages: (b) => {
2715
+ v(b);
2709
2716
  },
2710
2717
  initLocale: () => {
2711
2718
  _(t);
2712
2719
  },
2713
2720
  provider: l
2714
2721
  };
2715
- }), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2722
+ }), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2716
2723
  __proto__: null,
2717
2724
  useLocaleStore: Je
2718
2725
  }, Symbol.toStringTag, { value: "Module" }));
2719
- function Hn() {
2726
+ function Ya() {
2720
2727
  const t = Je();
2721
2728
  return {
2722
2729
  /** 当前语言代码 */
@@ -2735,24 +2742,24 @@ function Hn() {
2735
2742
  addMessages: t.addMessages
2736
2743
  };
2737
2744
  }
2738
- function Yn() {
2745
+ function Xa() {
2739
2746
  return Je().t;
2740
2747
  }
2741
- function Xn(t) {
2742
- const l = ne(), d = ce();
2748
+ function Ga(t) {
2749
+ const l = le(), d = ue();
2743
2750
  return l.isLoggedIn ? d.hasPermission(t) : !1;
2744
2751
  }
2745
- function Gn(t) {
2746
- return ne().isLoggedIn;
2752
+ function Ja(t) {
2753
+ return le().isLoggedIn;
2747
2754
  }
2748
- function Jn() {
2755
+ function Za() {
2749
2756
  return !0;
2750
2757
  }
2751
2758
  const dt = [
2752
2759
  {
2753
2760
  path: "/login",
2754
2761
  name: "Login",
2755
- component: () => Promise.resolve().then(() => mn),
2762
+ component: () => Promise.resolve().then(() => pa),
2756
2763
  meta: {
2757
2764
  title: "登录",
2758
2765
  hidden: !0
@@ -2761,13 +2768,13 @@ const dt = [
2761
2768
  ], ut = {
2762
2769
  path: "/",
2763
2770
  name: "Layout",
2764
- component: () => Promise.resolve().then(() => Ha),
2771
+ component: () => Promise.resolve().then(() => Xn),
2765
2772
  redirect: "/dashboard",
2766
2773
  children: [
2767
2774
  {
2768
2775
  path: "/dashboard",
2769
2776
  name: "Dashboard",
2770
- component: () => import("./index-B6s_uLJE.js"),
2777
+ component: () => import("./index-DdACCkye.js"),
2771
2778
  meta: {
2772
2779
  title: "仪表盘",
2773
2780
  icon: "dashboard",
@@ -2778,7 +2785,7 @@ const dt = [
2778
2785
  {
2779
2786
  path: "/system/user",
2780
2787
  name: "SystemUser",
2781
- component: () => import("./index-BKj-34y6.js"),
2788
+ component: () => import("./index-BsPaXQak.js"),
2782
2789
  meta: {
2783
2790
  title: "用户管理",
2784
2791
  icon: "user",
@@ -2788,7 +2795,7 @@ const dt = [
2788
2795
  {
2789
2796
  path: "/system/role",
2790
2797
  name: "SystemRole",
2791
- component: () => import("./index-C92NkXAn.js"),
2798
+ component: () => import("./index-BlN5yXBT.js"),
2792
2799
  meta: {
2793
2800
  title: "角色管理",
2794
2801
  icon: "role",
@@ -2798,7 +2805,7 @@ const dt = [
2798
2805
  {
2799
2806
  path: "/system/menu",
2800
2807
  name: "SystemMenu",
2801
- component: () => import("./index-WPWzllES.js"),
2808
+ component: () => import("./index-DEChud2_.js"),
2802
2809
  meta: {
2803
2810
  title: "菜单管理",
2804
2811
  icon: "menu",
@@ -2816,11 +2823,11 @@ const dt = [
2816
2823
  }
2817
2824
  }
2818
2825
  ]
2819
- }, Zn = [
2826
+ }, Qa = [
2820
2827
  {
2821
2828
  path: "/dashboard",
2822
2829
  name: "Dashboard",
2823
- component: () => import("./index-B6s_uLJE.js"),
2830
+ component: () => import("./index-DdACCkye.js"),
2824
2831
  meta: {
2825
2832
  title: "仪表盘",
2826
2833
  icon: "dashboard",
@@ -2840,7 +2847,7 @@ const dt = [
2840
2847
  {
2841
2848
  path: "user",
2842
2849
  name: "SystemUser",
2843
- component: () => import("./index-BKj-34y6.js"),
2850
+ component: () => import("./index-BsPaXQak.js"),
2844
2851
  meta: {
2845
2852
  title: "用户管理",
2846
2853
  icon: "user",
@@ -2850,7 +2857,7 @@ const dt = [
2850
2857
  {
2851
2858
  path: "role",
2852
2859
  name: "SystemRole",
2853
- component: () => import("./index-C92NkXAn.js"),
2860
+ component: () => import("./index-BlN5yXBT.js"),
2854
2861
  meta: {
2855
2862
  title: "角色管理",
2856
2863
  icon: "role",
@@ -2860,7 +2867,7 @@ const dt = [
2860
2867
  {
2861
2868
  path: "menu",
2862
2869
  name: "SystemMenu",
2863
- component: () => import("./index-WPWzllES.js"),
2870
+ component: () => import("./index-DEChud2_.js"),
2864
2871
  meta: {
2865
2872
  title: "菜单管理",
2866
2873
  icon: "menu",
@@ -2869,7 +2876,7 @@ const dt = [
2869
2876
  }
2870
2877
  ]
2871
2878
  }
2872
- ], $n = [
2879
+ ], La = [
2873
2880
  {
2874
2881
  menuCode: "dashboard",
2875
2882
  menuName: "仪表盘",
@@ -2921,15 +2928,15 @@ const dt = [
2921
2928
  history: Ye(),
2922
2929
  routes: [...dt, ut],
2923
2930
  scrollBehavior: () => ({ left: 0, top: 0 })
2924
- }), Mn = ["/login"];
2931
+ }), Ma = ["/login"];
2925
2932
  mt.beforeEach(async (t, l, d) => {
2926
- const i = pe();
2933
+ const i = de();
2927
2934
  if (i.initTheme(), st())
2928
2935
  if (t.path === "/login")
2929
2936
  d({ path: "/" });
2930
2937
  else {
2931
- const o = ne();
2932
- o.isLoggedIn || (o.setUserInfo({
2938
+ const s = le();
2939
+ s.isLoggedIn || (s.setUserInfo({
2933
2940
  appId: Fe(),
2934
2941
  userId: "1",
2935
2942
  userName: "管理员",
@@ -2938,20 +2945,20 @@ mt.beforeEach(async (t, l, d) => {
2938
2945
  mobilePhone: "13800138000",
2939
2946
  positionName: "管理员",
2940
2947
  avatar: ""
2941
- }), ce().setMenuList($n)), t.name && t.meta.keepAlive && i.addCachedView(t.name), d();
2948
+ }), ue().setMenuList(La)), t.name && t.meta.keepAlive && i.addCachedView(t.name), d();
2942
2949
  }
2943
2950
  else
2944
- Mn.includes(t.path) ? d() : d("/login");
2951
+ Ma.includes(t.path) ? d() : d("/login");
2945
2952
  });
2946
- function Qn() {
2953
+ function el() {
2947
2954
  const t = He({
2948
2955
  history: Ye(),
2949
2956
  routes: [...dt, ut]
2950
2957
  });
2951
2958
  mt.matcher = t.matcher;
2952
2959
  }
2953
- function el(t, l = {}) {
2954
- const d = l.indexPath || "/dashboard", i = l.logoSrc || "/vite.svg", o = {
2960
+ function tl(t, l = {}) {
2961
+ const d = l.indexPath || "/dashboard", i = l.logoSrc || "/vite.svg", s = {
2955
2962
  path: "/:pathMatch(.*)*",
2956
2963
  name: "CatchAll",
2957
2964
  component: () => Promise.resolve().then(() => ct),
@@ -2965,68 +2972,68 @@ function el(t, l = {}) {
2965
2972
  component: ae({
2966
2973
  name: "LayoutWrapper",
2967
2974
  render() {
2968
- return kt(it, { logoSrc: i });
2975
+ return bt(it, { logoSrc: i });
2969
2976
  }
2970
2977
  }),
2971
2978
  redirect: d,
2972
- children: [...t, o]
2979
+ children: [...t, s]
2973
2980
  };
2974
2981
  }
2975
- function tl(t, l = {}) {
2982
+ function sl(t, l = {}) {
2976
2983
  return He({
2977
2984
  history: Ye(l.base),
2978
2985
  routes: t,
2979
2986
  scrollBehavior: () => ({ left: 0, top: 0 })
2980
2987
  });
2981
2988
  }
2982
- const Ln = ["/login", "/404", "/403"];
2983
- function sl(t, l = {}) {
2984
- const d = l.whiteList || Ln, i = l.loginPath || "/login", o = l.homePath || "/";
2989
+ const Sa = ["/login", "/404", "/403"];
2990
+ function ol(t, l = {}) {
2991
+ const d = l.whiteList || Sa, i = l.loginPath || "/login", s = l.homePath || "/";
2985
2992
  t.beforeEach(async (r, _, v) => {
2986
- const u = pe(), f = ne(), p = ce();
2993
+ const u = de(), f = le(), h = ue();
2987
2994
  if (u.initTheme(), tt())
2988
2995
  if (r.path === i)
2989
- v({ path: o });
2996
+ v({ path: s });
2990
2997
  else if (f.isLoggedIn)
2991
2998
  r.name && r.meta.keepAlive && u.addCachedView(r.name), v();
2992
2999
  else
2993
3000
  try {
2994
3001
  if (l.fetchUserInfo) {
2995
- const k = await l.fetchUserInfo();
2996
- f.setUserInfo(k);
3002
+ const b = await l.fetchUserInfo();
3003
+ f.setUserInfo(b);
2997
3004
  } else {
2998
- const k = await vt();
2999
- f.setUserInfo(k);
3005
+ const b = await vt();
3006
+ f.setUserInfo(b);
3000
3007
  }
3001
3008
  if (l.fetchMenu) {
3002
- const k = await l.fetchMenu();
3003
- p.setMenuList(k);
3009
+ const b = await l.fetchMenu();
3010
+ h.setMenuList(b);
3004
3011
  } else {
3005
- const k = await ht(l.appId);
3006
- p.setMenuList(k);
3012
+ const b = await ht(l.appId);
3013
+ h.setMenuList(b);
3007
3014
  }
3008
3015
  l.onLoginSuccess && l.onLoginSuccess(), r.name && r.meta.keepAlive && u.addCachedView(r.name), v({ ...r, replace: !0 });
3009
- } catch (k) {
3010
- console.error("获取用户信息失败:", k), f.clearUserInfo(), p.clearMenu(), ot(), v({ path: i, query: { redirect: r.fullPath } });
3016
+ } catch (b) {
3017
+ console.error("获取用户信息失败:", b), f.clearUserInfo(), h.clearMenu(), ot(), v({ path: i, query: { redirect: r.fullPath } });
3011
3018
  }
3012
3019
  else
3013
3020
  d.includes(r.path) ? v() : v({ path: i, query: { redirect: r.fullPath } });
3014
3021
  }), t.afterEach(() => {
3015
3022
  });
3016
3023
  }
3017
- var Sn = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(Sn || {}), In = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(In || {}), Nn = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Nn || {});
3018
- const ol = {
3024
+ var Ia = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(Ia || {}), Na = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(Na || {}), za = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(za || {});
3025
+ const nl = {
3019
3026
  1: "启用",
3020
3027
  0: "禁用"
3021
3028
  }, al = {
3022
3029
  0: "未知",
3023
3030
  1: "男",
3024
3031
  2: "女"
3025
- }, nl = {
3032
+ }, ll = {
3026
3033
  0: "目录",
3027
3034
  1: "菜单",
3028
3035
  2: "按钮"
3029
- }, ll = [
3036
+ }, rl = [
3030
3037
  {
3031
3038
  label: "启用",
3032
3039
  value: 1
@@ -3037,7 +3044,7 @@ const ol = {
3037
3044
  value: 0
3038
3045
  /* DISABLED */
3039
3046
  }
3040
- ], rl = [
3047
+ ], il = [
3041
3048
  {
3042
3049
  label: "未知",
3043
3050
  value: 0
@@ -3053,7 +3060,7 @@ const ol = {
3053
3060
  value: 2
3054
3061
  /* FEMALE */
3055
3062
  }
3056
- ], il = [
3063
+ ], cl = [
3057
3064
  {
3058
3065
  label: "目录",
3059
3066
  value: 0
@@ -3069,30 +3076,33 @@ const ol = {
3069
3076
  value: 2
3070
3077
  /* BUTTON */
3071
3078
  }
3072
- ], cl = {
3079
+ ], dl = {
3073
3080
  mounted(t, l) {
3074
3081
  var _, v;
3075
- const d = ne(), i = ce();
3082
+ const d = le(), i = ue();
3076
3083
  if (!d.isLoggedIn) {
3077
3084
  (_ = t.parentNode) == null || _.removeChild(t);
3078
3085
  return;
3079
3086
  }
3080
- const o = l.value, r = Array.isArray(o) ? o : [o];
3087
+ const s = l.value, r = Array.isArray(s) ? s : [s];
3081
3088
  i.hasPermission(r) || (v = t.parentNode) == null || v.removeChild(t);
3082
3089
  }
3083
3090
  };
3084
- function dl(t) {
3091
+ function ul(t) {
3085
3092
  return _t({
3086
3093
  appId: t.appId,
3087
3094
  clientId: t.clientId,
3088
3095
  apiBaseUrl: t.apiBaseUrl
3089
- }), t.locale && Promise.resolve().then(() => Cn).then(({ useLocaleStore: l }) => {
3096
+ }), Promise.resolve().then(() => It).then(({ useAppStore: l }) => {
3097
+ const d = l();
3098
+ t.appName && d.setAppName(t.appName), t.indexPath && d.setIndexPath(t.indexPath), t.loginPath && d.setLoginPath(t.loginPath);
3099
+ }), t.locale && Promise.resolve().then(() => $a).then(({ useLocaleStore: l }) => {
3090
3100
  l().changeLocale(t.locale);
3091
3101
  }), {
3092
3102
  config: {
3093
3103
  appName: t.appName || "XTO App",
3094
3104
  appId: Fe(),
3095
- clientId: nt(),
3105
+ clientId: at(),
3096
3106
  apiBaseUrl: ft(),
3097
3107
  indexPath: t.indexPath || "/dashboard",
3098
3108
  loginPath: t.loginPath || "/login",
@@ -3101,47 +3111,47 @@ function dl(t) {
3101
3111
  };
3102
3112
  }
3103
3113
  export {
3104
- pe as A,
3105
- jn as B,
3106
- Ue as C,
3107
- Wn as D,
3108
- Hn as E,
3109
- Rn as F,
3110
- In as G,
3111
- Ts as H,
3114
+ de as A,
3115
+ Wa as B,
3116
+ ze as C,
3117
+ qa as D,
3118
+ Ya as E,
3119
+ Fa as F,
3120
+ Na as G,
3121
+ Ps as H,
3112
3122
  Je as I,
3113
- ce as J,
3114
- qn as K,
3123
+ ue as J,
3124
+ Ha as K,
3115
3125
  it as L,
3116
- Nn as M,
3117
- ne as N,
3118
- Sn as S,
3119
- Bn as T,
3120
- le as _,
3121
- ll as a,
3122
- il as b,
3123
- Fn as c,
3124
- rl as d,
3126
+ za as M,
3127
+ le as N,
3128
+ Ia as S,
3129
+ Ra as T,
3130
+ re as _,
3131
+ rl as a,
3132
+ cl as b,
3133
+ Ka as c,
3134
+ il as d,
3125
3135
  al as e,
3126
- nl as f,
3127
- gn as g,
3136
+ ll as f,
3137
+ ya as g,
3128
3138
  et as h,
3129
- un as i,
3130
- ol as j,
3131
- el as k,
3132
- tl as l,
3133
- Yn as m,
3134
- dl as n,
3135
- Zn as o,
3136
- Xn as p,
3137
- Gn as q,
3138
- Jn as r,
3139
+ ma as i,
3140
+ nl as j,
3141
+ tl as k,
3142
+ sl as l,
3143
+ Xa as m,
3144
+ ul as n,
3145
+ Qa as o,
3146
+ Ga as p,
3147
+ Ja as q,
3148
+ Za as r,
3139
3149
  ut as s,
3140
- $n as t,
3141
- cl as u,
3142
- Qn as v,
3150
+ La as t,
3151
+ dl as u,
3152
+ el as v,
3143
3153
  mt as w,
3144
- sl as x,
3154
+ ol as x,
3145
3155
  dt as y,
3146
- Kn as z
3156
+ ja as z
3147
3157
  };