xto-fronted 0.4.69 → 0.4.70

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.
@@ -1,12 +1,12 @@
1
- import { ref as f, computed as b, watch as Ge, defineComponent as le, resolveComponent as pt, openBlock as l, createBlock as V, unref as r, withCtx as E, createElementBlock as u, Fragment as j, renderList as W, createElementVNode as e, toDisplayString as $, createCommentVNode as U, onMounted as Ve, normalizeClass as q, withDirectives as Fe, vShow as Ct, createVNode as y, createTextVNode as ye, onUnmounted as Je, vModelText as Qe, Transition as ke, withModifiers as Be, normalizeStyle as Ee, reactive as Ze, withKeys as $t } from "vue";
1
+ import { ref as _, computed as b, watch as De, defineComponent as ae, resolveComponent as pt, openBlock as l, createBlock as V, unref as r, withCtx as E, createElementBlock as u, Fragment as j, renderList as W, createElementVNode as e, toDisplayString as $, createCommentVNode as U, onMounted as Ve, normalizeClass as q, withDirectives as Fe, vShow as Ct, createVNode as y, createTextVNode as ye, onUnmounted as Ge, vModelText as Je, Transition as ke, withModifiers as Be, normalizeStyle as Ee, reactive as Qe, withKeys as $t } from "vue";
2
2
  import { defineStore as Ke } from "pinia";
3
- import { useRoute as we, useRouter as de, createRouter as et, createWebHistory as tt } from "vue-router";
4
- import { SubMenu as ht, MenuItem as Re, Menu as st, Tabs as Lt, TabPane as Mt } from "@xto/navigation";
3
+ import { useRoute as we, useRouter as de, createRouter as Ze, createWebHistory as et } from "vue-router";
4
+ import { SubMenu as ht, MenuItem as Re, Menu as tt, Tabs as Lt, TabPane as Mt } from "@xto/navigation";
5
5
  import { Icon as I, Button as je } from "@xto/base";
6
- import { Drawer as ot, Message as ae } from "@xto/feedback";
7
- import { Form as It, FormItem as Ne, Input as dt, Checkbox as St } from "@xto/form";
6
+ import { Drawer as st, Message as ne } from "@xto/feedback";
7
+ import { Form as It, FormItem as Ne, Input as ct, Checkbox as St } from "@xto/form";
8
8
  import Et from "axios";
9
- const Pe = f(""), Ae = f(""), Oe = f("");
9
+ const Pe = _(""), Ae = _(""), Oe = _("");
10
10
  function Tt(t) {
11
11
  t.appId && (Pe.value = t.appId), t.clientId && (Ae.value = t.clientId), t.apiBaseUrl && (Oe.value = t.apiBaseUrl);
12
12
  }
@@ -78,42 +78,42 @@ const Ua = {
78
78
  remove: ze.remove,
79
79
  clear: ze.clear
80
80
  }, me = Ke("app", () => {
81
- const t = f(C.get("appName") || "XTO App"), s = f(C.get("indexPath") || "/dashboard"), o = f(C.get("isDark") || !1), i = f(C.get("theme") || "light"), a = f(C.get("layout") || "sidebar"), m = f(C.get("isCollapsed") || !1), M = f(C.get("showTabs") ?? !0), d = f(C.get("showFooter") ?? !0), g = f(C.get("showBreadcrumb") ?? !0), p = f(C.get("primaryColor") || "#409eff"), _ = f([]), v = f([]), L = b(() => o.value ? "dark" : "light"), F = (T) => {
81
+ const t = _(C.get("appName") || "XTO App"), s = _(C.get("indexPath") || "/dashboard"), o = _(C.get("isDark") || !1), i = _(C.get("theme") || "light"), a = _(C.get("layout") || "sidebar"), m = _(C.get("isCollapsed") || !1), M = _(C.get("showTabs") ?? !0), d = _(C.get("showFooter") ?? !0), g = _(C.get("showBreadcrumb") ?? !0), p = _(C.get("primaryColor") || "#409eff"), v = _([]), f = _([]), L = b(() => o.value ? "dark" : "light"), F = (T) => {
82
82
  t.value = T, C.set("appName", T);
83
83
  }, R = (T) => {
84
84
  s.value = T, C.set("indexPath", T);
85
85
  }, B = () => {
86
- o.value = !o.value, i.value = o.value ? "dark" : "light", P();
86
+ o.value = !o.value, i.value = o.value ? "dark" : "light", N();
87
87
  }, z = (T) => {
88
- i.value = T, o.value = T === "dark", P();
89
- }, P = () => {
88
+ i.value = T, o.value = T === "dark", N();
89
+ }, N = () => {
90
90
  const T = document.documentElement;
91
91
  o.value ? T.classList.add("dark") : T.classList.remove("dark"), C.set("isDark", o.value), C.set("theme", i.value);
92
- }, Y = () => {
92
+ }, P = () => {
93
93
  m.value = !m.value, C.set("isCollapsed", m.value);
94
94
  }, D = (T) => {
95
95
  a.value = T, C.set("layout", T);
96
- }, N = () => {
97
- M.value = !M.value, C.set("showTabs", M.value);
98
96
  }, K = () => {
97
+ M.value = !M.value, C.set("showTabs", M.value);
98
+ }, H = () => {
99
99
  d.value = !d.value, C.set("showFooter", d.value);
100
- }, te = () => {
100
+ }, le = () => {
101
101
  g.value = !g.value, C.set("showBreadcrumb", g.value);
102
- }, A = (T) => {
102
+ }, O = (T) => {
103
103
  p.value = T, document.documentElement.style.setProperty("--color-primary", T), C.set("primaryColor", T);
104
104
  }, G = (T) => {
105
- _.value.includes(T) || _.value.push(T);
106
- }, se = (T) => {
107
- const J = _.value.indexOf(T);
108
- J > -1 && _.value.splice(J, 1);
109
- }, oe = () => {
110
- _.value = [];
105
+ v.value.includes(T) || v.value.push(T);
106
+ }, te = (T) => {
107
+ const J = v.value.indexOf(T);
108
+ J > -1 && v.value.splice(J, 1);
109
+ }, se = () => {
110
+ v.value = [];
111
111
  }, ue = (T) => {
112
- v.value = T;
112
+ f.value = T;
113
113
  }, re = () => {
114
- P(), p.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", p.value);
114
+ N(), p.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", p.value);
115
115
  };
116
- return Ge(o, P), {
116
+ return De(o, N), {
117
117
  appName: t,
118
118
  indexPath: s,
119
119
  isDark: o,
@@ -124,22 +124,22 @@ const Ua = {
124
124
  showFooter: d,
125
125
  showBreadcrumb: g,
126
126
  primaryColor: p,
127
- cachedViews: _,
128
- mixSubMenus: v,
127
+ cachedViews: v,
128
+ mixSubMenus: f,
129
129
  themeClass: L,
130
130
  setAppName: F,
131
131
  setIndexPath: R,
132
132
  toggleTheme: B,
133
- toggleCollapse: Y,
133
+ toggleCollapse: P,
134
134
  setTheme: z,
135
135
  setLayout: D,
136
- toggleTabs: N,
137
- toggleFooter: K,
138
- toggleBreadcrumb: te,
139
- setPrimaryColor: A,
136
+ toggleTabs: K,
137
+ toggleFooter: H,
138
+ toggleBreadcrumb: le,
139
+ setPrimaryColor: O,
140
140
  addCachedView: G,
141
- removeCachedView: se,
142
- clearCachedViews: oe,
141
+ removeCachedView: te,
142
+ clearCachedViews: se,
143
143
  setMixSubMenus: ue,
144
144
  initTheme: re
145
145
  };
@@ -152,7 +152,7 @@ const Ua = {
152
152
  isDefault: !1,
153
153
  isOut: !1
154
154
  }, ve = Ke("menu", () => {
155
- const t = f(C.get(Xe) || []), s = b(() => t.value.length > 0);
155
+ const t = _(C.get(Xe) || []), s = b(() => t.value.length > 0);
156
156
  return {
157
157
  menuList: t,
158
158
  hasMenu: s,
@@ -164,27 +164,27 @@ const Ua = {
164
164
  }
165
165
  };
166
166
  }), We = "/vite.svg", He = "user_info", Z = Ke("user", () => {
167
- const t = f(C.get(He)), s = b(() => !!t.value), o = b(() => {
168
- var v;
169
- return ((v = t.value) == null ? void 0 : v.userId) || "";
167
+ const t = _(C.get(He)), s = b(() => !!t.value), o = b(() => {
168
+ var f;
169
+ return ((f = t.value) == null ? void 0 : f.userId) || "";
170
170
  }), i = b(() => {
171
- var v;
172
- return ((v = t.value) == null ? void 0 : v.userName) || "";
171
+ var f;
172
+ return ((f = t.value) == null ? void 0 : f.userName) || "";
173
173
  }), a = b(() => {
174
- var v;
175
- return ((v = t.value) == null ? void 0 : v.departmentName) || "";
174
+ var f;
175
+ return ((f = t.value) == null ? void 0 : f.departmentName) || "";
176
176
  }), m = b(() => {
177
- var v;
178
- return ((v = t.value) == null ? void 0 : v.email) || "";
177
+ var f;
178
+ return ((f = t.value) == null ? void 0 : f.email) || "";
179
179
  }), M = b(() => {
180
- var v;
181
- return ((v = t.value) == null ? void 0 : v.mobilePhone) || "";
180
+ var f;
181
+ return ((f = t.value) == null ? void 0 : f.mobilePhone) || "";
182
182
  }), d = b(() => {
183
- var v;
184
- return ((v = t.value) == null ? void 0 : v.positionName) || "";
183
+ var f;
184
+ return ((f = t.value) == null ? void 0 : f.positionName) || "";
185
185
  }), g = b(() => {
186
- var v;
187
- return ((v = t.value) == null ? void 0 : v.avatar) || "";
186
+ var f;
187
+ return ((f = t.value) == null ? void 0 : f.avatar) || "";
188
188
  });
189
189
  return {
190
190
  userInfo: t,
@@ -196,34 +196,34 @@ const Ua = {
196
196
  mobilePhone: M,
197
197
  positionName: d,
198
198
  avatar: g,
199
- setUserInfo: (v) => {
200
- t.value = v, C.set(He, v);
199
+ setUserInfo: (f) => {
200
+ t.value = f, C.set(He, f);
201
201
  },
202
202
  clearUserInfo: () => {
203
203
  t.value = null, C.remove(He);
204
204
  }
205
205
  };
206
- }), nt = "token", at = "token_type", lt = "refresh_token", rt = "expires_time", it = "refresh_time", ut = "code", Ye = () => C.get(nt), zt = (t) => {
206
+ }), ot = "token", nt = "token_type", at = "refresh_token", lt = "expires_time", rt = "refresh_time", it = "code", Ye = () => C.get(ot), zt = (t) => {
207
+ C.set(ot, t);
208
+ }, Dt = () => C.get(nt), Rt = (t) => {
207
209
  C.set(nt, t);
208
- }, Dt = () => C.get(at), Rt = (t) => {
210
+ }, Da = () => C.get(at), Pt = (t) => {
209
211
  C.set(at, t);
210
- }, Da = () => C.get(lt), Pt = (t) => {
212
+ }, At = () => C.get(lt), Ot = (t) => {
211
213
  C.set(lt, t);
212
- }, At = () => C.get(rt), Ot = (t) => {
214
+ }, Ra = () => C.get(rt), Vt = (t) => {
213
215
  C.set(rt, t);
214
- }, Ra = () => C.get(it), Vt = (t) => {
216
+ }, Pa = () => C.get(it), Ft = (t) => {
215
217
  C.set(it, t);
216
- }, Pa = () => C.get(ut), Ft = (t) => {
217
- C.set(ut, t);
218
218
  }, ft = (t) => {
219
219
  zt(t.access_token), Rt(t.token_type || "Bearer"), Pt(t.refresh_token), Ot(t.expires_time), Vt(t.refresh_time), t.code && Ft(t.code);
220
220
  }, Se = () => {
221
- C.remove(nt), C.remove(at), C.remove(lt), C.remove(rt), C.remove(it), C.remove(ut);
221
+ C.remove(ot), C.remove(nt), C.remove(at), C.remove(lt), C.remove(rt), C.remove(it);
222
222
  }, Bt = () => {
223
223
  const t = At();
224
224
  return t ? Date.now() > t : !0;
225
225
  }, gt = () => !!Ye() && !Bt(), Te = Ke("auth", () => {
226
- const t = f(Ye()), s = b(() => gt()), o = f(""), i = f(""), a = f(""), m = f("/login");
226
+ const t = _(Ye()), s = b(() => gt()), o = _(""), i = _(""), a = _(""), m = _("/login");
227
227
  return {
228
228
  token: t,
229
229
  isLoggedIn: s,
@@ -259,7 +259,7 @@ const Ua = {
259
259
  }, Ht = {
260
260
  key: 1,
261
261
  class: "menu-item__char"
262
- }, Gt = { class: "menu-item__text" }, Jt = /* @__PURE__ */ le({
262
+ }, Gt = { class: "menu-item__text" }, Jt = /* @__PURE__ */ ae({
263
263
  __name: "SidebarMenuItem",
264
264
  props: {
265
265
  menu: {}
@@ -424,9 +424,9 @@ const Ua = {
424
424
  ])
425
425
  ]),
426
426
  default: E(() => [
427
- (l(!0), u(j, null, W(t.menu.children, (_) => (l(), V(p, {
428
- key: _.menuUrl,
429
- menu: _
427
+ (l(!0), u(j, null, W(t.menu.children, (v) => (l(), V(p, {
428
+ key: v.menuUrl,
429
+ menu: v
430
430
  }, null, 8, ["menu"]))), 128))
431
431
  ]),
432
432
  _: 1
@@ -461,7 +461,7 @@ const Ua = {
461
461
  }, es = {
462
462
  key: 1,
463
463
  class: "sidebar__user"
464
- }, ts = { class: "sidebar__user-info" }, ss = { class: "sidebar__user-name" }, os = { class: "sidebar__user-role" }, De = "sidebar_opened_menus", ns = /* @__PURE__ */ le({
464
+ }, ts = { class: "sidebar__user-info" }, ss = { class: "sidebar__user-name" }, os = { class: "sidebar__user-role" }, dt = "sidebar_opened_menus", ns = /* @__PURE__ */ ae({
465
465
  __name: "Sidebar",
466
466
  props: {
467
467
  menuList: { default: () => [] },
@@ -469,29 +469,25 @@ const Ua = {
469
469
  showUser: { type: Boolean, default: !0 }
470
470
  },
471
471
  setup(t) {
472
- const s = t, o = we(), i = de(), a = ve(), m = Z(), M = Te(), d = me(), g = b(() => s.menuList.length > 0 ? s.menuList : a.menuList), p = b(() => d.isCollapsed), _ = b(() => o.path), v = f(C.get(De) || []), L = (D) => {
473
- v.value.includes(D) || (v.value.push(D), C.set(De, v.value));
474
- }, F = (D) => {
475
- const N = v.value.indexOf(D);
476
- N > -1 && (v.value.splice(N, 1), C.set(De, v.value));
477
- };
478
- Ve(() => {
479
- var N;
480
- const D = o.path;
481
- for (const K of g.value)
482
- (N = K.children) != null && N.length && K.children.some((A) => D.startsWith(A.menuUrl)) && !v.value.includes(K.menuUrl) && v.value.push(K.menuUrl);
483
- C.set(De, v.value);
472
+ const s = t, o = we(), i = de(), a = ve(), m = Z(), M = Te(), d = me(), g = b(() => s.menuList.length > 0 ? s.menuList : a.menuList), p = b(() => d.isCollapsed), v = b(() => o.path), f = _(C.get(dt) || []);
473
+ De(f, (N) => {
474
+ C.set(dt, N);
475
+ }, { deep: !0 }), Ve(() => {
476
+ var P;
477
+ const N = o.path;
478
+ for (const D of g.value)
479
+ (P = D.children) != null && P.length && D.children.some((H) => N.startsWith(H.menuUrl)) && !f.value.includes(D.menuUrl) && f.value.push(D.menuUrl);
484
480
  });
485
- const R = b(() => d.isDark ? "#1d1e1f" : "#fff"), B = b(() => d.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = (D) => {
486
- D && D !== o.path && i.push(D);
487
- }, Y = () => {
481
+ const L = b(() => d.isDark ? "#1d1e1f" : "#fff"), F = b(() => d.isDark ? "#cfd3dc" : "#303133"), R = b(() => "#409eff"), B = (N) => {
482
+ N && N !== o.path && i.push(N);
483
+ }, z = () => {
488
484
  M.logout(), m.clearUserInfo(), a.clearMenu(), i.push("/login");
489
485
  };
490
- return (D, N) => (l(), u("div", {
486
+ return (N, P) => (l(), u("div", {
491
487
  class: q(["sidebar", { "sidebar--collapsed": p.value }])
492
488
  }, [
493
489
  s.showLogo ? (l(), u("div", Zt, [
494
- N[0] || (N[0] = e("img", {
490
+ P[2] || (P[2] = e("img", {
495
491
  src: We,
496
492
  alt: "Logo",
497
493
  class: "sidebar__logo-img"
@@ -500,28 +496,28 @@ const Ua = {
500
496
  [Ct, !p.value]
501
497
  ])
502
498
  ])) : U("", !0),
503
- y(r(st), {
504
- "model-value": _.value,
499
+ y(r(tt), {
500
+ modelValue: v.value,
501
+ "onUpdate:modelValue": P[0] || (P[0] = (D) => v.value = D),
502
+ openeds: f.value,
503
+ "onUpdate:openeds": P[1] || (P[1] = (D) => f.value = D),
505
504
  mode: "vertical",
506
505
  collapse: p.value,
507
506
  "collapse-transition": !1,
508
- "background-color": R.value,
509
- "text-color": B.value,
510
- "active-text-color": z.value,
511
- "default-openeds": v.value,
507
+ "background-color": L.value,
508
+ "text-color": F.value,
509
+ "active-text-color": R.value,
512
510
  class: "sidebar__menu",
513
- onSelect: P,
514
- onOpen: L,
515
- onClose: F
511
+ onSelect: B
516
512
  }, {
517
513
  default: E(() => [
518
- (l(!0), u(j, null, W(g.value, (K) => (l(), V(Qt, {
519
- key: K.menuUrl,
520
- menu: K
514
+ (l(!0), u(j, null, W(g.value, (D) => (l(), V(Qt, {
515
+ key: D.menuUrl,
516
+ menu: D
521
517
  }, null, 8, ["menu"]))), 128))
522
518
  ]),
523
519
  _: 1
524
- }, 8, ["model-value", "collapse", "background-color", "text-color", "active-text-color", "default-openeds"]),
520
+ }, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
525
521
  s.showUser && !p.value ? (l(), u("div", es, [
526
522
  e("div", ts, [
527
523
  e("span", ss, $(r(m).userName), 1),
@@ -530,9 +526,9 @@ const Ua = {
530
526
  y(r(je), {
531
527
  type: "text",
532
528
  size: "small",
533
- onClick: Y
529
+ onClick: z
534
530
  }, {
535
- default: E(() => [...N[1] || (N[1] = [
531
+ default: E(() => [...P[3] || (P[3] = [
536
532
  ye("退出", -1)
537
533
  ])]),
538
534
  _: 1
@@ -540,7 +536,7 @@ const Ua = {
540
536
  ])) : U("", !0)
541
537
  ], 2));
542
538
  }
543
- }), mt = /* @__PURE__ */ ee(ns, [["__scopeId", "data-v-bc9f0622"]]), as = { class: "header" }, ls = { class: "header__left" }, rs = {
539
+ }), mt = /* @__PURE__ */ ee(ns, [["__scopeId", "data-v-e916de18"]]), as = { class: "header" }, ls = { class: "header__left" }, rs = {
544
540
  key: 0,
545
541
  class: "header__breadcrumb"
546
542
  }, is = {
@@ -576,10 +572,10 @@ const Ua = {
576
572
  }, Ds = {
577
573
  key: 2,
578
574
  class: "layout-preview-mix"
579
- }, Rs = { class: "layout-option__label" }, Ps = { class: "settings-section" }, As = { class: "settings-color-options" }, Os = ["title", "onClick"], Vs = { class: "settings-section" }, Fs = { class: "settings-switch-list" }, Bs = { class: "settings-switch-item" }, Ks = { class: "settings-switch-item" }, js = /* @__PURE__ */ le({
575
+ }, Rs = { class: "layout-option__label" }, Ps = { class: "settings-section" }, As = { class: "settings-color-options" }, Os = ["title", "onClick"], Vs = { class: "settings-section" }, Fs = { class: "settings-switch-list" }, Bs = { class: "settings-switch-item" }, Ks = { class: "settings-switch-item" }, js = /* @__PURE__ */ ae({
580
576
  __name: "Header",
581
577
  setup(t) {
582
- const s = we(), o = de(), i = me(), a = Z(), m = Te(), M = ve(), d = f(!1), g = f(!1), p = f(null), _ = f(!1), v = f(!1), L = f(""), F = f(null), R = f(!1), B = [
578
+ const s = we(), o = de(), i = me(), a = Z(), m = Te(), M = ve(), d = _(!1), g = _(!1), p = _(null), v = _(!1), f = _(!1), L = _(""), F = _(null), R = _(!1), B = [
583
579
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
584
580
  { value: "top", label: "顶部菜单", icon: "menu" },
585
581
  { value: "mix", label: "混合菜单", icon: "grid" }
@@ -590,14 +586,14 @@ const Ua = {
590
586
  { value: "#faad14", label: "日落橙" },
591
587
  { value: "#f5222d", label: "薄暮红" },
592
588
  { value: "#722ed1", label: "酱紫" }
593
- ], P = b(() => s.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
589
+ ], N = b(() => s.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
594
590
  title: k.meta.title,
595
591
  path: k.path
596
- }))), Y = (S, k = "") => {
597
- const X = [];
592
+ }))), P = (S, k = "") => {
593
+ const Y = [];
598
594
  return S.forEach((c) => {
599
- c.children && c.children.length > 0 ? X.push(...Y(c.children, c.menuName)) : X.push({ ...c, parentTitle: k, title: c.menuName, path: c.menuUrl });
600
- }), X;
595
+ c.children && c.children.length > 0 ? Y.push(...P(c.children, c.menuName)) : Y.push({ ...c, parentTitle: k, title: c.menuName, path: c.menuUrl });
596
+ }), Y;
601
597
  }, D = /* @__PURE__ */ new Set([
602
598
  "arrow-up",
603
599
  "arrow-down",
@@ -700,10 +696,10 @@ const Ua = {
700
696
  "sun",
701
697
  "theme",
702
698
  "skin"
703
- ]), N = (S) => {
699
+ ]), K = (S) => {
704
700
  if (!S || S === "") return "";
705
701
  if (S.startsWith("tineco-icon-")) {
706
- const X = S.replace("tineco-icon-", "");
702
+ const Y = S.replace("tineco-icon-", "");
707
703
  return {
708
704
  home: "home",
709
705
  dashboard: "dashboard",
@@ -717,7 +713,7 @@ const Ua = {
717
713
  chart: "chart",
718
714
  report: "report",
719
715
  analytics: "analytics"
720
- }[X] || X;
716
+ }[Y] || Y;
721
717
  }
722
718
  return {
723
719
  dashboard: "dashboard",
@@ -737,11 +733,11 @@ const Ua = {
737
733
  list: "list",
738
734
  grid: "grid"
739
735
  }[S] || S;
740
- }, K = (S) => S ? S.charAt(0) : "", te = (S) => D.has(S), A = b(() => L.value.trim() ? Y(M.menuList).filter(
736
+ }, H = (S) => S ? S.charAt(0) : "", le = (S) => D.has(S), O = b(() => L.value.trim() ? P(M.menuList).filter(
741
737
  (k) => k.title.toLowerCase().includes(L.value.toLowerCase())
742
- ) : []), G = b(() => i.layout), se = () => {
738
+ ) : []), G = b(() => i.layout), te = () => {
743
739
  i.toggleCollapse();
744
- }, oe = () => {
740
+ }, se = () => {
745
741
  i.toggleTheme();
746
742
  }, ue = () => {
747
743
  g.value = !0;
@@ -757,14 +753,14 @@ const Ua = {
757
753
  i.toggleTheme(), g.value = !1;
758
754
  }, be = () => {
759
755
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
760
- }, ne = () => {
761
- _.value = !!document.fullscreenElement;
756
+ }, oe = () => {
757
+ v.value = !!document.fullscreenElement;
762
758
  }, pe = () => {
763
759
  d.value = !d.value;
764
760
  }, ie = () => {
765
761
  d.value = !1;
766
762
  }, he = () => {
767
- v.value = !1, L.value = "";
763
+ f.value = !1, L.value = "";
768
764
  }, xe = (S) => {
769
765
  o.push(S), he();
770
766
  }, Ce = (S) => {
@@ -781,16 +777,16 @@ const Ua = {
781
777
  S.key === "Escape" && (he(), ie());
782
778
  };
783
779
  return Ve(() => {
784
- document.addEventListener("click", _e), document.addEventListener("fullscreenchange", ne), document.addEventListener("keydown", fe), i.initTheme(), R.value = document.documentElement.classList.contains("grey-mode");
785
- }), Je(() => {
786
- document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange", ne), document.removeEventListener("keydown", fe);
780
+ document.addEventListener("click", _e), document.addEventListener("fullscreenchange", oe), document.addEventListener("keydown", fe), i.initTheme(), R.value = document.documentElement.classList.contains("grey-mode");
781
+ }), Ge(() => {
782
+ document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange", oe), document.removeEventListener("keydown", fe);
787
783
  }), (S, k) => {
788
- var X;
784
+ var Y;
789
785
  return l(), u("div", as, [
790
786
  e("div", ls, [
791
787
  e("div", {
792
788
  class: "header__collapse",
793
- onClick: se
789
+ onClick: te
794
790
  }, [
795
791
  y(r(I), {
796
792
  name: r(i).isCollapsed ? "menu-unfold" : "menu-fold",
@@ -798,12 +794,12 @@ const Ua = {
798
794
  }, null, 8, ["name"])
799
795
  ]),
800
796
  r(i).showBreadcrumb ? (l(), u("div", rs, [
801
- (l(!0), u(j, null, W(P.value, (c, w) => (l(), u("span", {
797
+ (l(!0), u(j, null, W(N.value, (c, w) => (l(), u("span", {
802
798
  key: c.path
803
799
  }, [
804
800
  w > 0 ? (l(), u("span", is, "/")) : U("", !0),
805
801
  e("span", {
806
- class: q({ "is-current": w === P.value.length - 1 })
802
+ class: q({ "is-current": w === N.value.length - 1 })
807
803
  }, $(c.title), 3)
808
804
  ]))), 128))
809
805
  ])) : U("", !0)
@@ -824,25 +820,25 @@ const Ua = {
824
820
  type: "text",
825
821
  class: "header__search-input",
826
822
  placeholder: "搜索菜单...",
827
- onFocus: k[1] || (k[1] = (c) => v.value = !0)
823
+ onFocus: k[1] || (k[1] = (c) => f.value = !0)
828
824
  }, null, 544), [
829
- [Qe, L.value]
825
+ [Je, L.value]
830
826
  ]),
831
827
  y(ke, { name: "search-dropdown" }, {
832
828
  default: E(() => [
833
- v.value && (A.value.length > 0 || L.value) ? (l(), u("div", cs, [
834
- A.value.length > 0 ? (l(), u("div", ds, [
835
- (l(!0), u(j, null, W(A.value, (c) => (l(), u("div", {
829
+ f.value && (O.value.length > 0 || L.value) ? (l(), u("div", cs, [
830
+ O.value.length > 0 ? (l(), u("div", ds, [
831
+ (l(!0), u(j, null, W(O.value, (c) => (l(), u("div", {
836
832
  key: c.path,
837
833
  class: "header__search-item",
838
834
  onClick: (w) => xe(c.path)
839
835
  }, [
840
836
  c.title !== "首页" ? (l(), u("span", ps, [
841
- te(N(c.icon)) ? (l(), V(r(I), {
837
+ le(K(c.icon)) ? (l(), V(r(I), {
842
838
  key: 0,
843
- name: N(c.icon),
839
+ name: K(c.icon),
844
840
  size: 16
845
- }, null, 8, ["name"])) : (l(), u("span", hs, $(K(c.title)), 1))
841
+ }, null, 8, ["name"])) : (l(), u("span", hs, $(H(c.title)), 1))
846
842
  ])) : U("", !0),
847
843
  e("span", vs, $(c.title), 1),
848
844
  c.parentTitle ? (l(), u("span", _s, $(c.parentTitle), 1)) : U("", !0)
@@ -856,10 +852,10 @@ const Ua = {
856
852
  e("div", {
857
853
  class: "header__action",
858
854
  onClick: be,
859
- title: _.value ? "退出全屏" : "全屏"
855
+ title: v.value ? "退出全屏" : "全屏"
860
856
  }, [
861
857
  y(r(I), {
862
- name: _.value ? "fullscreen-exit" : "fullscreen",
858
+ name: v.value ? "fullscreen-exit" : "fullscreen",
863
859
  size: 16
864
860
  }, null, 8, ["name"])
865
861
  ], 8, gs),
@@ -875,7 +871,7 @@ const Ua = {
875
871
  ]),
876
872
  e("div", {
877
873
  class: "header__action",
878
- onClick: oe,
874
+ onClick: se,
879
875
  title: "切换主题"
880
876
  }, [
881
877
  y(r(I), {
@@ -893,7 +889,7 @@ const Ua = {
893
889
  onClick: Be(pe, ["stop"])
894
890
  }, [
895
891
  e("div", ys, [
896
- e("span", null, $(((X = r(a).userName) == null ? void 0 : X.charAt(0)) || "U"), 1)
892
+ e("span", null, $(((Y = r(a).userName) == null ? void 0 : Y.charAt(0)) || "U"), 1)
897
893
  ]),
898
894
  e("span", ks, $(r(a).userName), 1),
899
895
  e("span", {
@@ -955,7 +951,7 @@ const Ua = {
955
951
  })
956
952
  ], 512)
957
953
  ]),
958
- y(r(ot), {
954
+ y(r(st), {
959
955
  modelValue: g.value,
960
956
  "onUpdate:modelValue": k[2] || (k[2] = (c) => g.value = c),
961
957
  title: "换肤设置",
@@ -1090,7 +1086,7 @@ const Ua = {
1090
1086
  }, zo = {
1091
1087
  key: 2,
1092
1088
  class: "layout-preview-mix"
1093
- }, Do = { class: "layout-option__label" }, Ro = { class: "settings-section" }, Po = { class: "settings-color-options" }, Ao = ["title", "onClick"], Oo = { class: "settings-section" }, Vo = { class: "settings-switch-list" }, Fo = { class: "settings-switch-item" }, Bo = { class: "settings-switch-item" }, Ko = /* @__PURE__ */ le({
1089
+ }, Do = { class: "layout-option__label" }, Ro = { class: "settings-section" }, Po = { class: "settings-color-options" }, Ao = ["title", "onClick"], Oo = { class: "settings-section" }, Vo = { class: "settings-switch-list" }, Fo = { class: "settings-switch-item" }, Bo = { class: "settings-switch-item" }, Ko = /* @__PURE__ */ ae({
1094
1090
  __name: "TopMenu",
1095
1091
  setup(t) {
1096
1092
  const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = b(() => s.path), g = (c, w = "") => {
@@ -1100,9 +1096,9 @@ const Ua = {
1100
1096
  }), Q;
1101
1097
  }, p = b(() => D.value.trim() ? g(i.menuList).filter(
1102
1098
  (w) => w.title.toLowerCase().includes(D.value.toLowerCase())
1103
- ) : []), _ = b(() => a.isDark ? "#1d1e1f" : "#fff"), v = b(() => a.isDark ? "#cfd3dc" : "#303133"), L = b(() => "#409eff"), F = f(!1), R = f(null), B = f(!1), z = f(!1), P = f(!1), Y = f(!1), D = f(""), N = f(null), K = (c) => {
1099
+ ) : []), v = b(() => a.isDark ? "#1d1e1f" : "#fff"), f = b(() => a.isDark ? "#cfd3dc" : "#303133"), L = b(() => "#409eff"), F = _(!1), R = _(null), B = _(!1), z = _(!1), N = _(!1), P = _(!1), D = _(""), K = _(null), H = (c) => {
1104
1100
  c && c !== s.path && o.push(c);
1105
- }, te = /* @__PURE__ */ new Set([
1101
+ }, le = /* @__PURE__ */ new Set([
1106
1102
  "arrow-up",
1107
1103
  "arrow-down",
1108
1104
  "arrow-left",
@@ -1204,7 +1200,7 @@ const Ua = {
1204
1200
  "sun",
1205
1201
  "theme",
1206
1202
  "skin"
1207
- ]), A = (c) => {
1203
+ ]), O = (c) => {
1208
1204
  if (!c || c === "") return "";
1209
1205
  if (c.startsWith("tineco-icon-")) {
1210
1206
  const Q = c.replace("tineco-icon-", "");
@@ -1241,7 +1237,7 @@ const Ua = {
1241
1237
  list: "list",
1242
1238
  grid: "grid"
1243
1239
  }[c] || c;
1244
- }, G = (c) => c ? c.charAt(0) : "", se = (c) => te.has(c), oe = () => {
1240
+ }, G = (c) => c ? c.charAt(0) : "", te = (c) => le.has(c), se = () => {
1245
1241
  a.toggleTheme(), z.value = !1;
1246
1242
  }, ue = () => {
1247
1243
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
@@ -1252,17 +1248,17 @@ const Ua = {
1252
1248
  }, J = () => {
1253
1249
  F.value = !1;
1254
1250
  }, ce = () => {
1255
- Y.value = !1, D.value = "";
1251
+ P.value = !1, D.value = "";
1256
1252
  }, be = (c) => {
1257
1253
  o.push(c), ce();
1258
- }, ne = () => {
1254
+ }, oe = () => {
1259
1255
  z.value = !0;
1260
1256
  }, pe = (c) => {
1261
- P.value = c;
1257
+ N.value = c;
1262
1258
  const w = document.documentElement;
1263
1259
  c ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
1264
1260
  }, ie = () => {
1265
- pe(!P.value), z.value = !1;
1261
+ pe(!N.value), z.value = !1;
1266
1262
  }, he = () => {
1267
1263
  a.toggleTheme(), z.value = !1;
1268
1264
  }, xe = [
@@ -1287,14 +1283,14 @@ const Ua = {
1287
1283
  }, S = () => {
1288
1284
  J(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1289
1285
  }, k = (c) => {
1290
- R.value && !R.value.contains(c.target) && J(), N.value && !N.value.contains(c.target) && ce();
1291
- }, X = (c) => {
1286
+ R.value && !R.value.contains(c.target) && J(), K.value && !K.value.contains(c.target) && ce();
1287
+ }, Y = (c) => {
1292
1288
  c.key === "Escape" && (ce(), J());
1293
1289
  };
1294
1290
  return Ve(() => {
1295
- document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown", X), P.value = document.documentElement.classList.contains("grey-mode");
1296
- }), Je(() => {
1297
- document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown", X);
1291
+ document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown", Y), N.value = document.documentElement.classList.contains("grey-mode");
1292
+ }), Ge(() => {
1293
+ document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown", Y);
1298
1294
  }), (c, w) => {
1299
1295
  var Q;
1300
1296
  return l(), u("div", Ws, [
@@ -1306,14 +1302,14 @@ const Ua = {
1306
1302
  }, null, -1)),
1307
1303
  e("span", Xs, $(r(a).appName), 1)
1308
1304
  ]),
1309
- y(r(st), {
1305
+ y(r(tt), {
1310
1306
  "model-value": d.value,
1311
1307
  mode: "horizontal",
1312
- "background-color": _.value,
1313
- "text-color": v.value,
1308
+ "background-color": v.value,
1309
+ "text-color": f.value,
1314
1310
  "active-text-color": L.value,
1315
1311
  class: "top-menu__menu",
1316
- onSelect: K
1312
+ onSelect: H
1317
1313
  }, {
1318
1314
  default: E(() => [
1319
1315
  (l(!0), u(j, null, W(r(i).menuList, (n) => (l(), u(j, {
@@ -1326,9 +1322,9 @@ const Ua = {
1326
1322
  title: E(() => [
1327
1323
  e("span", Hs, [
1328
1324
  n.menuName !== "首页" ? (l(), u("span", Gs, [
1329
- se(A(n.icon)) ? (l(), V(r(I), {
1325
+ te(O(n.icon)) ? (l(), V(r(I), {
1330
1326
  key: 0,
1331
- name: A(n.icon),
1327
+ name: O(n.icon),
1332
1328
  size: 16
1333
1329
  }, null, 8, ["name"])) : (l(), u("span", Js, $(G(n.menuName)), 1))
1334
1330
  ])) : U("", !0),
@@ -1343,9 +1339,9 @@ const Ua = {
1343
1339
  default: E(() => [
1344
1340
  e("span", Zs, [
1345
1341
  e("span", eo, [
1346
- se(A(h.icon)) ? (l(), V(r(I), {
1342
+ te(O(h.icon)) ? (l(), V(r(I), {
1347
1343
  key: 0,
1348
- name: A(h.icon),
1344
+ name: O(h.icon),
1349
1345
  size: 16
1350
1346
  }, null, 8, ["name"])) : (l(), u("span", to, $(G(h.menuName)), 1))
1351
1347
  ]),
@@ -1363,9 +1359,9 @@ const Ua = {
1363
1359
  default: E(() => [
1364
1360
  e("span", oo, [
1365
1361
  n.menuName !== "首页" ? (l(), u("span", no, [
1366
- se(A(n.icon)) ? (l(), V(r(I), {
1362
+ te(O(n.icon)) ? (l(), V(r(I), {
1367
1363
  key: 0,
1368
- name: A(n.icon),
1364
+ name: O(n.icon),
1369
1365
  size: 16
1370
1366
  }, null, 8, ["name"])) : (l(), u("span", ao, $(G(n.menuName)), 1))
1371
1367
  ])) : U("", !0),
@@ -1382,7 +1378,7 @@ const Ua = {
1382
1378
  e("div", {
1383
1379
  class: "top-menu__search",
1384
1380
  ref_key: "searchRef",
1385
- ref: N
1381
+ ref: K
1386
1382
  }, [
1387
1383
  y(r(I), {
1388
1384
  name: "search",
@@ -1394,13 +1390,13 @@ const Ua = {
1394
1390
  type: "text",
1395
1391
  class: "top-menu__search-input",
1396
1392
  placeholder: "搜索菜单...",
1397
- onFocus: w[1] || (w[1] = (n) => Y.value = !0)
1393
+ onFocus: w[1] || (w[1] = (n) => P.value = !0)
1398
1394
  }, null, 544), [
1399
- [Qe, D.value]
1395
+ [Je, D.value]
1400
1396
  ]),
1401
1397
  y(ke, { name: "search-dropdown" }, {
1402
1398
  default: E(() => [
1403
- Y.value && (p.value.length > 0 || D.value) ? (l(), u("div", io, [
1399
+ P.value && (p.value.length > 0 || D.value) ? (l(), u("div", io, [
1404
1400
  p.value.length > 0 ? (l(), u("div", uo, [
1405
1401
  (l(!0), u(j, null, W(p.value, (n) => (l(), u("div", {
1406
1402
  key: n.path,
@@ -1408,9 +1404,9 @@ const Ua = {
1408
1404
  onClick: (h) => be(n.path)
1409
1405
  }, [
1410
1406
  n.title !== "首页" ? (l(), u("span", mo, [
1411
- se(A(n.icon)) ? (l(), V(r(I), {
1407
+ te(O(n.icon)) ? (l(), V(r(I), {
1412
1408
  key: 0,
1413
- name: A(n.icon),
1409
+ name: O(n.icon),
1414
1410
  size: 16
1415
1411
  }, null, 8, ["name"])) : (l(), u("span", po, $(G(n.title)), 1))
1416
1412
  ])) : U("", !0),
@@ -1435,7 +1431,7 @@ const Ua = {
1435
1431
  ], 8, fo),
1436
1432
  e("div", {
1437
1433
  class: "top-menu__action",
1438
- onClick: ne,
1434
+ onClick: oe,
1439
1435
  title: "换肤设置"
1440
1436
  }, [
1441
1437
  y(r(I), {
@@ -1445,7 +1441,7 @@ const Ua = {
1445
1441
  ]),
1446
1442
  e("div", {
1447
1443
  class: "top-menu__action",
1448
- onClick: oe,
1444
+ onClick: se,
1449
1445
  title: "切换主题"
1450
1446
  }, [
1451
1447
  y(r(I), {
@@ -1525,7 +1521,7 @@ const Ua = {
1525
1521
  })
1526
1522
  ], 512)
1527
1523
  ]),
1528
- y(r(ot), {
1524
+ y(r(st), {
1529
1525
  modelValue: z.value,
1530
1526
  "onUpdate:modelValue": w[2] || (w[2] = (n) => z.value = n),
1531
1527
  title: "换肤设置",
@@ -1591,7 +1587,7 @@ const Ua = {
1591
1587
  e("div", Fo, [
1592
1588
  w[15] || (w[15] = e("span", null, "灰色模式", -1)),
1593
1589
  e("div", {
1594
- class: q(["switch-wrapper", { "is-checked": P.value }]),
1590
+ class: q(["switch-wrapper", { "is-checked": N.value }]),
1595
1591
  onClick: ie
1596
1592
  }, [...w[14] || (w[14] = [
1597
1593
  e("span", { class: "switch-core" }, null, -1)
@@ -1651,37 +1647,37 @@ const Ua = {
1651
1647
  }, $n = {
1652
1648
  key: 2,
1653
1649
  class: "layout-preview-mix"
1654
- }, Ln = { class: "layout-option__label" }, Mn = { class: "settings-section" }, In = { class: "settings-color-options" }, Sn = ["title", "onClick"], En = { class: "settings-section" }, Tn = { class: "settings-switch-list" }, Nn = { class: "settings-switch-item" }, Un = { class: "settings-switch-item" }, zn = /* @__PURE__ */ le({
1650
+ }, Ln = { class: "layout-option__label" }, Mn = { class: "settings-section" }, In = { class: "settings-color-options" }, Sn = ["title", "onClick"], En = { class: "settings-section" }, Tn = { class: "settings-switch-list" }, Nn = { class: "settings-switch-item" }, Un = { class: "settings-switch-item" }, zn = /* @__PURE__ */ ae({
1655
1651
  __name: "MixTopMenu",
1656
1652
  setup(t) {
1657
- const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = f(""), g = (n, h = "") => {
1658
- const H = [];
1653
+ const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = _(""), g = (n, h = "") => {
1654
+ const X = [];
1659
1655
  return n.forEach((x) => {
1660
- x.children && x.children.length > 0 ? H.push(...g(x.children, x.menuName)) : H.push({ ...x, parentTitle: h, title: x.menuName, path: x.menuUrl });
1661
- }), H;
1662
- }, p = b(() => A.value.trim() ? g(i.menuList).filter(
1663
- (h) => h.title.toLowerCase().includes(A.value.toLowerCase())
1664
- ) : []), _ = b(() => {
1656
+ x.children && x.children.length > 0 ? X.push(...g(x.children, x.menuName)) : X.push({ ...x, parentTitle: h, title: x.menuName, path: x.menuUrl });
1657
+ }), X;
1658
+ }, p = b(() => O.value.trim() ? g(i.menuList).filter(
1659
+ (h) => h.title.toLowerCase().includes(O.value.toLowerCase())
1660
+ ) : []), v = b(() => {
1665
1661
  const n = i.menuList.find((h) => h.menuUrl === d.value);
1666
1662
  return (n == null ? void 0 : n.children) || [];
1667
- }), v = b(() => i.menuList.find((n) => !!(s.path === n.menuUrl || n.children && n.children.some((h) => s.path.startsWith(h.menuUrl) || s.path === h.menuUrl)))), L = () => {
1668
- v.value ? d.value = v.value.menuUrl : i.menuList.length > 0 && (d.value = i.menuList[0].menuUrl);
1663
+ }), f = b(() => i.menuList.find((n) => !!(s.path === n.menuUrl || n.children && n.children.some((h) => s.path.startsWith(h.menuUrl) || s.path === h.menuUrl)))), L = () => {
1664
+ f.value ? d.value = f.value.menuUrl : i.menuList.length > 0 && (d.value = i.menuList[0].menuUrl);
1669
1665
  }, F = (n) => {
1670
1666
  d.value = n;
1671
- const h = i.menuList.find((H) => H.menuUrl === n);
1667
+ const h = i.menuList.find((X) => X.menuUrl === n);
1672
1668
  if (h)
1673
1669
  if (h.children && h.children.length > 0) {
1674
- const H = h.children[0].menuUrl;
1675
- s.path !== H && o.push(H);
1670
+ const X = h.children[0].menuUrl;
1671
+ s.path !== X && o.push(X);
1676
1672
  } else
1677
1673
  s.path !== n && o.push(n);
1678
- }, R = b(() => a.isDark ? "#1d1e1f" : "#fff"), B = b(() => a.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = f(!1), Y = f(null), D = f(!1), N = f(!1), K = f(!1), te = f(!1), A = f(""), G = f(null);
1679
- Ge(() => s.path, () => {
1680
- L(), a.setMixSubMenus(_.value);
1681
- }), Ge(() => i.menuList, (n) => {
1682
- n && n.length > 0 && (L(), a.setMixSubMenus(_.value));
1674
+ }, R = b(() => a.isDark ? "#1d1e1f" : "#fff"), B = b(() => a.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), N = _(!1), P = _(null), D = _(!1), K = _(!1), H = _(!1), le = _(!1), O = _(""), G = _(null);
1675
+ De(() => s.path, () => {
1676
+ L(), a.setMixSubMenus(v.value);
1677
+ }), De(() => i.menuList, (n) => {
1678
+ n && n.length > 0 && (L(), a.setMixSubMenus(v.value));
1683
1679
  }, { immediate: !0 });
1684
- const se = /* @__PURE__ */ new Set([
1680
+ const te = /* @__PURE__ */ new Set([
1685
1681
  "arrow-up",
1686
1682
  "arrow-down",
1687
1683
  "arrow-left",
@@ -1783,10 +1779,10 @@ const Ua = {
1783
1779
  "sun",
1784
1780
  "theme",
1785
1781
  "skin"
1786
- ]), oe = (n) => {
1782
+ ]), se = (n) => {
1787
1783
  if (!n || n === "") return "";
1788
1784
  if (n.startsWith("tineco-icon-")) {
1789
- const H = n.replace("tineco-icon-", "");
1785
+ const X = n.replace("tineco-icon-", "");
1790
1786
  return {
1791
1787
  home: "home",
1792
1788
  dashboard: "dashboard",
@@ -1800,7 +1796,7 @@ const Ua = {
1800
1796
  chart: "chart",
1801
1797
  report: "report",
1802
1798
  analytics: "analytics"
1803
- }[H] || H;
1799
+ }[X] || X;
1804
1800
  }
1805
1801
  return {
1806
1802
  dashboard: "dashboard",
@@ -1820,36 +1816,36 @@ const Ua = {
1820
1816
  list: "list",
1821
1817
  grid: "grid"
1822
1818
  }[n] || n;
1823
- }, ue = (n) => n ? n.charAt(0) : "", re = (n) => se.has(n), T = () => {
1824
- a.toggleTheme(), N.value = !1;
1819
+ }, ue = (n) => n ? n.charAt(0) : "", re = (n) => te.has(n), T = () => {
1820
+ a.toggleTheme(), K.value = !1;
1825
1821
  }, J = () => {
1826
1822
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1827
1823
  }, ce = () => {
1828
1824
  D.value = !!document.fullscreenElement;
1829
1825
  }, be = () => {
1830
- P.value = !P.value;
1831
- }, ne = () => {
1832
- P.value = !1;
1826
+ N.value = !N.value;
1827
+ }, oe = () => {
1828
+ N.value = !1;
1833
1829
  }, pe = () => {
1834
- te.value = !1, A.value = "";
1830
+ le.value = !1, O.value = "";
1835
1831
  }, ie = (n) => {
1836
1832
  o.push(n), pe();
1837
1833
  }, he = () => {
1838
- N.value = !0;
1834
+ K.value = !0;
1839
1835
  }, xe = (n) => {
1840
- K.value = n;
1836
+ H.value = n;
1841
1837
  const h = document.documentElement;
1842
1838
  n ? h.classList.add("grey-mode") : h.classList.remove("grey-mode");
1843
1839
  }, Ce = () => {
1844
- xe(!K.value), N.value = !1;
1840
+ xe(!H.value), K.value = !1;
1845
1841
  }, $e = () => {
1846
- a.toggleTheme(), N.value = !1;
1842
+ a.toggleTheme(), K.value = !1;
1847
1843
  }, Le = [
1848
1844
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1849
1845
  { value: "top", label: "顶部菜单", icon: "menu" },
1850
1846
  { value: "mix", label: "混合菜单", icon: "grid" }
1851
1847
  ], Me = b(() => a.layout), _e = (n) => {
1852
- a.setLayout(n), N.value = !1;
1848
+ a.setLayout(n), K.value = !1;
1853
1849
  }, fe = [
1854
1850
  { value: "#409eff", label: "默认蓝" },
1855
1851
  { value: "#1890ff", label: "科技蓝" },
@@ -1858,24 +1854,24 @@ const Ua = {
1858
1854
  { value: "#f5222d", label: "薄暮红" },
1859
1855
  { value: "#722ed1", label: "酱紫" }
1860
1856
  ], S = (n) => {
1861
- a.setPrimaryColor(n), N.value = !1;
1857
+ a.setPrimaryColor(n), K.value = !1;
1862
1858
  }, k = () => {
1863
- ne(), o.push("/profile");
1864
- }, X = () => {
1865
- ne(), o.push("/change-password");
1859
+ oe(), o.push("/profile");
1860
+ }, Y = () => {
1861
+ oe(), o.push("/change-password");
1866
1862
  }, c = () => {
1867
- ne(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1863
+ oe(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
1868
1864
  }, w = (n) => {
1869
- Y.value && !Y.value.contains(n.target) && ne(), G.value && !G.value.contains(n.target) && pe();
1865
+ P.value && !P.value.contains(n.target) && oe(), G.value && !G.value.contains(n.target) && pe();
1870
1866
  }, Q = (n) => {
1871
- n.key === "Escape" && (pe(), ne());
1867
+ n.key === "Escape" && (pe(), oe());
1872
1868
  };
1873
1869
  return Ve(() => {
1874
- document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown", Q), K.value = document.documentElement.classList.contains("grey-mode"), L();
1875
- }), Je(() => {
1870
+ document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown", Q), H.value = document.documentElement.classList.contains("grey-mode"), L();
1871
+ }), Ge(() => {
1876
1872
  document.removeEventListener("click", w), document.removeEventListener("fullscreenchange", ce), document.removeEventListener("keydown", Q);
1877
1873
  }), (n, h) => {
1878
- var H;
1874
+ var X;
1879
1875
  return l(), u("div", qo, [
1880
1876
  e("div", Wo, [
1881
1877
  h[3] || (h[3] = e("img", {
@@ -1885,7 +1881,7 @@ const Ua = {
1885
1881
  }, null, -1)),
1886
1882
  e("span", Yo, $(r(a).appName), 1)
1887
1883
  ]),
1888
- y(r(st), {
1884
+ y(r(tt), {
1889
1885
  "model-value": d.value,
1890
1886
  mode: "horizontal",
1891
1887
  "background-color": R.value,
@@ -1902,9 +1898,9 @@ const Ua = {
1902
1898
  default: E(() => [
1903
1899
  e("span", Xo, [
1904
1900
  x.menuName !== "首页" ? (l(), u("span", Ho, [
1905
- re(oe(x.icon)) ? (l(), V(r(I), {
1901
+ re(se(x.icon)) ? (l(), V(r(I), {
1906
1902
  key: 0,
1907
- name: oe(x.icon),
1903
+ name: se(x.icon),
1908
1904
  size: 16
1909
1905
  }, null, 8, ["name"])) : (l(), u("span", Go, $(ue(x.menuName)), 1))
1910
1906
  ])) : U("", !0),
@@ -1928,27 +1924,27 @@ const Ua = {
1928
1924
  class: "mix-top-menu__search-icon"
1929
1925
  }),
1930
1926
  Fe(e("input", {
1931
- "onUpdate:modelValue": h[0] || (h[0] = (x) => A.value = x),
1927
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => O.value = x),
1932
1928
  type: "text",
1933
1929
  class: "mix-top-menu__search-input",
1934
1930
  placeholder: "搜索菜单...",
1935
- onFocus: h[1] || (h[1] = (x) => te.value = !0)
1931
+ onFocus: h[1] || (h[1] = (x) => le.value = !0)
1936
1932
  }, null, 544), [
1937
- [Qe, A.value]
1933
+ [Je, O.value]
1938
1934
  ]),
1939
1935
  y(ke, { name: "search-dropdown" }, {
1940
1936
  default: E(() => [
1941
- te.value && (p.value.length > 0 || A.value) ? (l(), u("div", Zo, [
1937
+ le.value && (p.value.length > 0 || O.value) ? (l(), u("div", Zo, [
1942
1938
  p.value.length > 0 ? (l(), u("div", en, [
1943
1939
  (l(!0), u(j, null, W(p.value, (x) => (l(), u("div", {
1944
1940
  key: x.path,
1945
1941
  class: "mix-top-menu__search-item",
1946
- onClick: (ct) => ie(x.path)
1942
+ onClick: (ut) => ie(x.path)
1947
1943
  }, [
1948
1944
  x.title !== "首页" ? (l(), u("span", sn, [
1949
- re(oe(x.icon)) ? (l(), V(r(I), {
1945
+ re(se(x.icon)) ? (l(), V(r(I), {
1950
1946
  key: 0,
1951
- name: oe(x.icon),
1947
+ name: se(x.icon),
1952
1948
  size: 16
1953
1949
  }, null, 8, ["name"])) : (l(), u("span", on, $(ue(x.title)), 1))
1954
1950
  ])) : U("", !0),
@@ -1994,25 +1990,25 @@ const Ua = {
1994
1990
  e("div", {
1995
1991
  class: "mix-top-menu__user",
1996
1992
  ref_key: "dropdownRef",
1997
- ref: Y
1993
+ ref: P
1998
1994
  }, [
1999
1995
  e("div", {
2000
1996
  class: "mix-top-menu__user-trigger",
2001
1997
  onClick: Be(be, ["stop"])
2002
1998
  }, [
2003
1999
  e("div", un, [
2004
- e("span", null, $(((H = r(m).userName) == null ? void 0 : H.charAt(0)) || "U"), 1)
2000
+ e("span", null, $(((X = r(m).userName) == null ? void 0 : X.charAt(0)) || "U"), 1)
2005
2001
  ]),
2006
2002
  e("span", cn, $(r(m).userName), 1),
2007
2003
  e("span", {
2008
- class: q(["mix-top-menu__user-arrow", { "is-active": P.value }])
2004
+ class: q(["mix-top-menu__user-arrow", { "is-active": N.value }])
2009
2005
  }, "▼", 2)
2010
2006
  ]),
2011
2007
  y(ke, { name: "dropdown" }, {
2012
2008
  default: E(() => {
2013
2009
  var x;
2014
2010
  return [
2015
- P.value ? (l(), u("div", dn, [
2011
+ N.value ? (l(), u("div", dn, [
2016
2012
  e("div", mn, [
2017
2013
  e("div", pn, [
2018
2014
  e("span", null, $(((x = r(m).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
@@ -2036,7 +2032,7 @@ const Ua = {
2036
2032
  ]),
2037
2033
  e("div", {
2038
2034
  class: "mix-top-menu__dropdown-item",
2039
- onClick: X
2035
+ onClick: Y
2040
2036
  }, [
2041
2037
  y(r(I), {
2042
2038
  name: "lock",
@@ -2063,9 +2059,9 @@ const Ua = {
2063
2059
  })
2064
2060
  ], 512)
2065
2061
  ]),
2066
- y(r(ot), {
2067
- modelValue: N.value,
2068
- "onUpdate:modelValue": h[2] || (h[2] = (x) => N.value = x),
2062
+ y(r(st), {
2063
+ modelValue: K.value,
2064
+ "onUpdate:modelValue": h[2] || (h[2] = (x) => K.value = x),
2069
2065
  title: "换肤设置",
2070
2066
  direction: "rtl",
2071
2067
  size: "320px"
@@ -2078,7 +2074,7 @@ const Ua = {
2078
2074
  (l(), u(j, null, W(Le, (x) => e("div", {
2079
2075
  key: x.value,
2080
2076
  class: q(["layout-option", { "is-active": Me.value === x.value }]),
2081
- onClick: (ct) => _e(x.value)
2077
+ onClick: (ut) => _e(x.value)
2082
2078
  }, [
2083
2079
  e("div", bn, [
2084
2080
  x.value === "sidebar" ? (l(), u("div", xn, [...h[9] || (h[9] = [
@@ -2112,7 +2108,7 @@ const Ua = {
2112
2108
  class: q(["color-option", { "is-active": r(a).primaryColor === x.value }]),
2113
2109
  style: Ee({ backgroundColor: x.value }),
2114
2110
  title: x.label,
2115
- onClick: (ct) => S(x.value)
2111
+ onClick: (ut) => S(x.value)
2116
2112
  }, [
2117
2113
  r(a).primaryColor === x.value ? (l(), V(r(I), {
2118
2114
  key: 0,
@@ -2129,7 +2125,7 @@ const Ua = {
2129
2125
  e("div", Nn, [
2130
2126
  h[15] || (h[15] = e("span", null, "灰色模式", -1)),
2131
2127
  e("div", {
2132
- class: q(["switch-wrapper", { "is-checked": K.value }]),
2128
+ class: q(["switch-wrapper", { "is-checked": H.value }]),
2133
2129
  onClick: Ce
2134
2130
  }, [...h[14] || (h[14] = [
2135
2131
  e("span", { class: "switch-core" }, null, -1)
@@ -2162,14 +2158,14 @@ const Ua = {
2162
2158
  }, Fn = { class: "layout__top-menu" }, Bn = { class: "layout__main" }, Kn = { class: "layout__content" }, jn = {
2163
2159
  key: 2,
2164
2160
  class: "layout layout--mix"
2165
- }, qn = { class: "layout__mix-top-menu" }, Wn = { class: "layout__mix-body" }, Yn = { class: "layout__content" }, Xn = /* @__PURE__ */ le({
2161
+ }, qn = { class: "layout__mix-top-menu" }, Wn = { class: "layout__mix-body" }, Yn = { class: "layout__content" }, Xn = /* @__PURE__ */ ae({
2166
2162
  __name: "index",
2167
2163
  setup(t) {
2168
2164
  const s = me(), o = ve(), i = b(
2169
2165
  () => s.isCollapsed ? "64px" : "210px"
2170
2166
  ), a = b(() => s.layout), m = b(() => a.value === "mix"), M = b(() => a.value === "sidebar" ? o.menuList : a.value === "mix" ? s.mixSubMenus : []), d = b(() => m.value ? M.value.length > 0 : !1);
2171
2167
  return (g, p) => {
2172
- const _ = pt("router-view");
2168
+ const v = pt("router-view");
2173
2169
  return l(), u(j, null, [
2174
2170
  a.value === "sidebar" ? (l(), u("div", Rn, [
2175
2171
  e("aside", {
@@ -2187,7 +2183,7 @@ const Ua = {
2187
2183
  y(qs)
2188
2184
  ]),
2189
2185
  e("main", On, [
2190
- y(_)
2186
+ y(v)
2191
2187
  ])
2192
2188
  ])
2193
2189
  ])) : U("", !0),
@@ -2197,7 +2193,7 @@ const Ua = {
2197
2193
  ]),
2198
2194
  e("div", Bn, [
2199
2195
  e("main", Kn, [
2200
- y(_)
2196
+ y(v)
2201
2197
  ])
2202
2198
  ])
2203
2199
  ])) : U("", !0),
@@ -2218,7 +2214,7 @@ const Ua = {
2218
2214
  }, null, 8, ["menu-list"])
2219
2215
  ], 4)) : U("", !0),
2220
2216
  e("main", Yn, [
2221
- y(_)
2217
+ y(v)
2222
2218
  ])
2223
2219
  ])
2224
2220
  ])) : U("", !0)
@@ -2228,7 +2224,7 @@ const Ua = {
2228
2224
  }), yt = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-70b115a5"]]), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2229
2225
  __proto__: null,
2230
2226
  default: yt
2231
- }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Qn = ["onClick"], Zn = /* @__PURE__ */ le({
2227
+ }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Qn = ["onClick"], Zn = /* @__PURE__ */ ae({
2232
2228
  __name: "Tabs",
2233
2229
  setup(t) {
2234
2230
  const s = we(), o = de(), i = b(() => {
@@ -2247,8 +2243,8 @@ const Ua = {
2247
2243
  }, M = (d) => {
2248
2244
  const g = i.value.find((p) => p.path === d);
2249
2245
  if (!(g != null && g.affix) && d === a.value) {
2250
- const p = i.value.findIndex((v) => v.path === d), _ = i.value[p - 1] || i.value[p + 1];
2251
- _ && o.push(_.path);
2246
+ const p = i.value.findIndex((f) => f.path === d), v = i.value[p - 1] || i.value[p + 1];
2247
+ v && o.push(v.path);
2252
2248
  }
2253
2249
  };
2254
2250
  return (d, g) => (l(), u("div", Gn, [
@@ -2271,7 +2267,7 @@ const Ua = {
2271
2267
  p.affix ? U("", !0) : (l(), u("span", {
2272
2268
  key: 0,
2273
2269
  class: "tab-close",
2274
- onClick: Be((_) => M(p.path), ["stop"])
2270
+ onClick: Be((v) => M(p.path), ["stop"])
2275
2271
  }, " ✕ ", 8, Qn))
2276
2272
  ])
2277
2273
  ]),
@@ -2305,7 +2301,7 @@ const Oa = /* @__PURE__ */ ee(ea, [["render", sa], ["__scopeId", "data-v-4852826
2305
2301
  ), t.interceptors.response.use(
2306
2302
  (s) => {
2307
2303
  const { data: o } = s;
2308
- return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(new Error(o.message || "EXPIRED OR INVALID TOKEN"))) : (ae.error(o.message || "请求失败"), Promise.reject(new Error(o.message || "请求失败")));
2304
+ return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(new Error(o.message || "EXPIRED OR INVALID TOKEN"))) : (ne.error(o.message || "请求失败"), Promise.reject(new Error(o.message || "请求失败")));
2309
2305
  },
2310
2306
  (s) => {
2311
2307
  var i;
@@ -2313,29 +2309,29 @@ const Oa = /* @__PURE__ */ ee(ea, [["render", sa], ["__scopeId", "data-v-4852826
2313
2309
  if (o) {
2314
2310
  const { data: a } = o;
2315
2311
  if ((a == null ? void 0 : a.code) === 9121)
2316
- return ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(s);
2312
+ return ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(s);
2317
2313
  switch (o.status) {
2318
2314
  case 401:
2319
- ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login";
2315
+ ne.error("登录已过期,请重新登录"), Se(), window.location.href = "/login";
2320
2316
  break;
2321
2317
  case 403:
2322
- ae.error("没有权限访问");
2318
+ ne.error("没有权限访问");
2323
2319
  break;
2324
2320
  case 404:
2325
- ae.error("请求资源不存在");
2321
+ ne.error("请求资源不存在");
2326
2322
  break;
2327
2323
  case 500:
2328
- ae.error("服务器错误");
2324
+ ne.error("服务器错误");
2329
2325
  break;
2330
2326
  default:
2331
- ae.error(((i = o.data) == null ? void 0 : i.message) || "请求失败");
2327
+ ne.error(((i = o.data) == null ? void 0 : i.message) || "请求失败");
2332
2328
  }
2333
2329
  } else
2334
- ae.error("网络连接失败");
2330
+ ne.error("网络连接失败");
2335
2331
  return Promise.reject(s);
2336
2332
  }
2337
2333
  ), t;
2338
- }, ge = oa(), O = {
2334
+ }, ge = oa(), A = {
2339
2335
  get(t, s) {
2340
2336
  return ge.get(t, s);
2341
2337
  },
@@ -2357,21 +2353,21 @@ const Oa = /* @__PURE__ */ ee(ea, [["render", sa], ["__scopeId", "data-v-4852826
2357
2353
  }
2358
2354
  };
2359
2355
  function na(t) {
2360
- return O.post("/user/v1.0/login/by-domain", t);
2356
+ return A.post("/user/v1.0/login/by-domain", t);
2361
2357
  }
2362
2358
  function Va() {
2363
- return O.put("/user/v1.0/user/logout");
2359
+ return A.put("/user/v1.0/user/logout");
2364
2360
  }
2365
2361
  function aa() {
2366
- return O.get("/user/v1.0/user/get-me");
2362
+ return A.get("/user/v1.0/user/get-me");
2367
2363
  }
2368
2364
  function Fa(t) {
2369
- return O.post("/user/v1.0/refresh", { refreshToken: t });
2365
+ return A.post("/user/v1.0/refresh", { refreshToken: t });
2370
2366
  }
2371
- const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PURE__ */ le({
2367
+ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PURE__ */ ae({
2372
2368
  __name: "index",
2373
2369
  setup(t) {
2374
- const s = de(), o = we(), i = f(!1), a = f(!1), m = Ze({
2370
+ const s = de(), o = we(), i = _(!1), a = _(!1), m = Qe({
2375
2371
  uid: "",
2376
2372
  password: ""
2377
2373
  }), M = {
@@ -2382,29 +2378,29 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2382
2378
  { required: !0, message: "请输入密码", trigger: "blur" },
2383
2379
  { min: 6, message: "密码长度至少6位", trigger: "blur" }
2384
2380
  ]
2385
- }, d = f(), g = async () => {
2381
+ }, d = _(), g = async () => {
2386
2382
  var p;
2387
2383
  try {
2388
2384
  await ((p = d.value) == null ? void 0 : p.validate()), i.value = !0;
2389
- const _ = await na({
2385
+ const v = await na({
2390
2386
  appId: qe(),
2391
2387
  clientId: vt(),
2392
2388
  uid: m.uid,
2393
2389
  password: m.password,
2394
2390
  code: !0
2395
2391
  });
2396
- ft(_), ae.success("登录成功");
2397
- const v = o.query.redirect || "/";
2398
- s.push(v);
2399
- } catch (_) {
2400
- console.error("登录失败:", _);
2392
+ ft(v), ne.success("登录成功");
2393
+ const f = o.query.redirect || "/";
2394
+ s.push(f);
2395
+ } catch (v) {
2396
+ console.error("登录失败:", v);
2401
2397
  } finally {
2402
2398
  i.value = !1;
2403
2399
  }
2404
2400
  };
2405
- return (p, _) => (l(), u("div", la, [
2401
+ return (p, v) => (l(), u("div", la, [
2406
2402
  e("div", ra, [
2407
- _[5] || (_[5] = e("div", { class: "login__header" }, [
2403
+ v[5] || (v[5] = e("div", { class: "login__header" }, [
2408
2404
  e("img", {
2409
2405
  src: We,
2410
2406
  alt: "Logo",
@@ -2424,9 +2420,9 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2424
2420
  default: E(() => [
2425
2421
  y(r(Ne), { prop: "uid" }, {
2426
2422
  default: E(() => [
2427
- y(r(dt), {
2423
+ y(r(ct), {
2428
2424
  modelValue: m.uid,
2429
- "onUpdate:modelValue": _[0] || (_[0] = (v) => m.uid = v),
2425
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => m.uid = f),
2430
2426
  placeholder: "用户名",
2431
2427
  size: "large"
2432
2428
  }, {
@@ -2443,9 +2439,9 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2443
2439
  }),
2444
2440
  y(r(Ne), { prop: "password" }, {
2445
2441
  default: E(() => [
2446
- y(r(dt), {
2442
+ y(r(ct), {
2447
2443
  modelValue: m.password,
2448
- "onUpdate:modelValue": _[1] || (_[1] = (v) => m.password = v),
2444
+ "onUpdate:modelValue": v[1] || (v[1] = (f) => m.password = f),
2449
2445
  type: "password",
2450
2446
  placeholder: "密码",
2451
2447
  size: "large",
@@ -2467,9 +2463,9 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2467
2463
  default: E(() => [
2468
2464
  y(r(St), {
2469
2465
  modelValue: a.value,
2470
- "onUpdate:modelValue": _[2] || (_[2] = (v) => a.value = v)
2466
+ "onUpdate:modelValue": v[2] || (v[2] = (f) => a.value = f)
2471
2467
  }, {
2472
- default: E(() => [..._[3] || (_[3] = [
2468
+ default: E(() => [...v[3] || (v[3] = [
2473
2469
  ye("记住我", -1)
2474
2470
  ])]),
2475
2471
  _: 1
@@ -2486,7 +2482,7 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2486
2482
  class: "login__submit",
2487
2483
  onClick: g
2488
2484
  }, {
2489
- default: E(() => [..._[4] || (_[4] = [
2485
+ default: E(() => [...v[4] || (v[4] = [
2490
2486
  ye(" 登录 ", -1)
2491
2487
  ])]),
2492
2488
  _: 1
@@ -2497,7 +2493,7 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2497
2493
  ]),
2498
2494
  _: 1
2499
2495
  }, 8, ["model"]),
2500
- _[6] || (_[6] = e("div", { class: "login__footer" }, [
2496
+ v[6] || (v[6] = e("div", { class: "login__footer" }, [
2501
2497
  e("p", null, "请输入您的用户名和密码")
2502
2498
  ], -1))
2503
2499
  ])
@@ -2506,7 +2502,7 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2506
2502
  }), ua = /* @__PURE__ */ ee(ia, [["__scopeId", "data-v-f3e724b6"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2507
2503
  __proto__: null,
2508
2504
  default: ua
2509
- }, Symbol.toStringTag, { value: "Module" })), da = { class: "error-page" }, ma = { class: "error-page__content" }, pa = /* @__PURE__ */ le({
2505
+ }, Symbol.toStringTag, { value: "Module" })), da = { class: "error-page" }, ma = { class: "error-page__content" }, pa = /* @__PURE__ */ ae({
2510
2506
  __name: "404",
2511
2507
  setup(t) {
2512
2508
  const s = de(), o = () => {
@@ -2532,7 +2528,7 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2532
2528
  }), ha = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-3b47f5bc"]]), kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2533
2529
  __proto__: null,
2534
2530
  default: ha
2535
- }, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, _a = { class: "error-page__content" }, fa = /* @__PURE__ */ le({
2531
+ }, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, _a = { class: "error-page__content" }, fa = /* @__PURE__ */ ae({
2536
2532
  __name: "403",
2537
2533
  setup(t) {
2538
2534
  const s = de(), o = () => {
@@ -2557,7 +2553,7 @@ const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PU
2557
2553
  }
2558
2554
  }), Ba = /* @__PURE__ */ ee(fa, [["__scopeId", "data-v-3081df6c"]]);
2559
2555
  function Ka() {
2560
- const t = me(), s = Z(), o = Te(), i = b(() => s.userName || ""), a = b(() => s.userInfo), m = b(() => t.appName), M = b(() => o.isLoggedIn), d = b(() => t.isDark), g = b(() => t.theme), p = b(() => t.isCollapsed), _ = b(() => t.layout);
2556
+ const t = me(), s = Z(), o = Te(), i = b(() => s.userName || ""), a = b(() => s.userInfo), m = b(() => t.appName), M = b(() => o.isLoggedIn), d = b(() => t.isDark), g = b(() => t.theme), p = b(() => t.isCollapsed), v = b(() => t.layout);
2561
2557
  return {
2562
2558
  userName: i,
2563
2559
  userInfo: a,
@@ -2566,7 +2562,7 @@ function Ka() {
2566
2562
  isDark: d,
2567
2563
  theme: g,
2568
2564
  isCollapsed: p,
2569
- layout: _,
2565
+ layout: v,
2570
2566
  toggleTheme: () => {
2571
2567
  t.toggleTheme();
2572
2568
  },
@@ -2582,11 +2578,11 @@ function ja() {
2582
2578
  };
2583
2579
  }
2584
2580
  function qa(t, s = {}) {
2585
- const { rules: o, onSubmit: i } = s, a = f(), m = Ze({ ...t }), M = f(!1), d = f(!1), g = f(!1), p = () => {
2581
+ const { rules: o, onSubmit: i } = s, a = _(), m = Qe({ ...t }), M = _(!1), d = _(!1), g = _(!1), p = () => {
2586
2582
  L(), g.value = !1, d.value = !0;
2587
- }, _ = (R) => {
2583
+ }, v = (R) => {
2588
2584
  Object.assign(m, R), g.value = !0, d.value = !0;
2589
- }, v = () => {
2585
+ }, f = () => {
2590
2586
  d.value = !1, L();
2591
2587
  }, L = () => {
2592
2588
  var R;
@@ -2602,13 +2598,13 @@ function qa(t, s = {}) {
2602
2598
  visible: d,
2603
2599
  isEdit: g,
2604
2600
  openAdd: p,
2605
- openEdit: _,
2606
- close: v,
2601
+ openEdit: v,
2602
+ close: f,
2607
2603
  resetForm: L,
2608
2604
  handleSubmit: async () => {
2609
2605
  var R;
2610
2606
  try {
2611
- await ((R = a.value) == null ? void 0 : R.validate()), M.value = !0, await (i == null ? void 0 : i(m)), v();
2607
+ await ((R = a.value) == null ? void 0 : R.validate()), M.value = !0, await (i == null ? void 0 : i(m)), f();
2612
2608
  } catch (B) {
2613
2609
  console.error(B);
2614
2610
  } finally {
@@ -2618,23 +2614,23 @@ function qa(t, s = {}) {
2618
2614
  };
2619
2615
  }
2620
2616
  function Wa(t) {
2621
- const { fetchData: s, defaultPageSize: o = 10 } = t, i = f(!1), a = f([]), m = f(0), M = f(1), d = f(o), g = Ze({}), p = async () => {
2617
+ const { fetchData: s, defaultPageSize: o = 10 } = t, i = _(!1), a = _([]), m = _(0), M = _(1), d = _(o), g = Qe({}), p = async () => {
2622
2618
  i.value = !0;
2623
2619
  try {
2624
2620
  const z = {
2625
2621
  ...g,
2626
2622
  page: M.value,
2627
2623
  pageSize: d.value
2628
- }, P = await s(z);
2629
- a.value = P.list, m.value = P.total;
2624
+ }, N = await s(z);
2625
+ a.value = N.list, m.value = N.total;
2630
2626
  } catch (z) {
2631
2627
  console.error(z);
2632
2628
  } finally {
2633
2629
  i.value = !1;
2634
2630
  }
2635
- }, _ = () => {
2636
- M.value = 1, p();
2637
2631
  }, v = () => {
2632
+ M.value = 1, p();
2633
+ }, f = () => {
2638
2634
  Object.keys(g).forEach((z) => {
2639
2635
  g[z] = void 0;
2640
2636
  }), M.value = 1, p();
@@ -2658,8 +2654,8 @@ function Wa(t) {
2658
2654
  searchParams: g,
2659
2655
  pagination: B,
2660
2656
  getData: p,
2661
- handleSearch: _,
2662
- handleReset: v,
2657
+ handleSearch: v,
2658
+ handleReset: f,
2663
2659
  handlePageChange: L,
2664
2660
  handleSizeChange: F,
2665
2661
  refresh: R
@@ -2693,7 +2689,7 @@ const wt = [
2693
2689
  {
2694
2690
  path: "/dashboard",
2695
2691
  name: "Dashboard",
2696
- component: () => import("./index-BvMcnGze.js"),
2692
+ component: () => import("./index-By874kXD.js"),
2697
2693
  meta: {
2698
2694
  title: "仪表盘",
2699
2695
  icon: "dashboard",
@@ -2704,7 +2700,7 @@ const wt = [
2704
2700
  {
2705
2701
  path: "/system/user",
2706
2702
  name: "SystemUser",
2707
- component: () => import("./index-D0JXJmlJ.js"),
2703
+ component: () => import("./index-BgbSp2mz.js"),
2708
2704
  meta: {
2709
2705
  title: "用户管理",
2710
2706
  icon: "user",
@@ -2714,7 +2710,7 @@ const wt = [
2714
2710
  {
2715
2711
  path: "/system/role",
2716
2712
  name: "SystemRole",
2717
- component: () => import("./index-Df8leAO9.js"),
2713
+ component: () => import("./index-COz0Cbj7.js"),
2718
2714
  meta: {
2719
2715
  title: "角色管理",
2720
2716
  icon: "role",
@@ -2724,7 +2720,7 @@ const wt = [
2724
2720
  {
2725
2721
  path: "/system/menu",
2726
2722
  name: "SystemMenu",
2727
- component: () => import("./index-DZEVfuKk.js"),
2723
+ component: () => import("./index-CzOd0mGb.js"),
2728
2724
  meta: {
2729
2725
  title: "菜单管理",
2730
2726
  icon: "menu",
@@ -2746,7 +2742,7 @@ const wt = [
2746
2742
  {
2747
2743
  path: "/dashboard",
2748
2744
  name: "Dashboard",
2749
- component: () => import("./index-BvMcnGze.js"),
2745
+ component: () => import("./index-By874kXD.js"),
2750
2746
  meta: {
2751
2747
  title: "仪表盘",
2752
2748
  icon: "dashboard",
@@ -2766,7 +2762,7 @@ const wt = [
2766
2762
  {
2767
2763
  path: "user",
2768
2764
  name: "SystemUser",
2769
- component: () => import("./index-D0JXJmlJ.js"),
2765
+ component: () => import("./index-BgbSp2mz.js"),
2770
2766
  meta: {
2771
2767
  title: "用户管理",
2772
2768
  icon: "user",
@@ -2776,7 +2772,7 @@ const wt = [
2776
2772
  {
2777
2773
  path: "role",
2778
2774
  name: "SystemRole",
2779
- component: () => import("./index-Df8leAO9.js"),
2775
+ component: () => import("./index-COz0Cbj7.js"),
2780
2776
  meta: {
2781
2777
  title: "角色管理",
2782
2778
  icon: "role",
@@ -2786,7 +2782,7 @@ const wt = [
2786
2782
  {
2787
2783
  path: "menu",
2788
2784
  name: "SystemMenu",
2789
- component: () => import("./index-DZEVfuKk.js"),
2785
+ component: () => import("./index-CzOd0mGb.js"),
2790
2786
  meta: {
2791
2787
  title: "菜单管理",
2792
2788
  icon: "menu",
@@ -2843,8 +2839,8 @@ const wt = [
2843
2839
  }
2844
2840
  ]
2845
2841
  }
2846
- ], xt = et({
2847
- history: tt(),
2842
+ ], xt = Ze({
2843
+ history: et(),
2848
2844
  routes: [...wt, bt],
2849
2845
  scrollBehavior: () => ({ left: 0, top: 0 })
2850
2846
  }), ya = ["/login"];
@@ -2870,8 +2866,8 @@ xt.beforeEach(async (t, s, o) => {
2870
2866
  ya.includes(t.path) ? o() : o("/login");
2871
2867
  });
2872
2868
  function Ja() {
2873
- const t = et({
2874
- history: tt(),
2869
+ const t = Ze({
2870
+ history: et(),
2875
2871
  routes: [...wt, bt]
2876
2872
  });
2877
2873
  xt.matcher = t.matcher;
@@ -2894,51 +2890,51 @@ function Qa(t, s = {}) {
2894
2890
  };
2895
2891
  }
2896
2892
  function Za(t) {
2897
- return et({
2898
- history: tt(),
2893
+ return Ze({
2894
+ history: et(),
2899
2895
  routes: t,
2900
2896
  scrollBehavior: () => ({ left: 0, top: 0 })
2901
2897
  });
2902
2898
  }
2903
2899
  function el(t) {
2904
- return O.get("/role/list", { params: t });
2900
+ return A.get("/role/list", { params: t });
2905
2901
  }
2906
2902
  function tl(t) {
2907
- return O.get(`/role/${t}`);
2903
+ return A.get(`/role/${t}`);
2908
2904
  }
2909
2905
  function sl(t) {
2910
- return O.post("/role", t);
2906
+ return A.post("/role", t);
2911
2907
  }
2912
2908
  function ol(t, s) {
2913
- return O.put(`/role/${t}`, s);
2909
+ return A.put(`/role/${t}`, s);
2914
2910
  }
2915
2911
  function nl(t) {
2916
- return O.delete(`/role/${t}`);
2912
+ return A.delete(`/role/${t}`);
2917
2913
  }
2918
2914
  function al(t, s) {
2919
- return O.patch(`/role/${t}/status`, { status: s });
2915
+ return A.patch(`/role/${t}/status`, { status: s });
2920
2916
  }
2921
2917
  function ll() {
2922
- return O.get("/user/v1.0/menu/list");
2918
+ return A.get("/user/v1.0/menu/list");
2923
2919
  }
2924
2920
  function ka(t) {
2925
2921
  const s = t || qe();
2926
- return O.get(`/user/v1.0/menu/get-menu?appId=${s}`);
2922
+ return A.get(`/user/v1.0/menu/get-menu?appId=${s}`);
2927
2923
  }
2928
2924
  function rl(t) {
2929
- return O.post("/menu", t);
2925
+ return A.post("/menu", t);
2930
2926
  }
2931
2927
  function il(t, s) {
2932
- return O.put(`/menu/${t}`, s);
2928
+ return A.put(`/menu/${t}`, s);
2933
2929
  }
2934
2930
  function ul(t) {
2935
- return O.delete(`/menu/${t}`);
2931
+ return A.delete(`/menu/${t}`);
2936
2932
  }
2937
2933
  const wa = ["/login", "/404", "/403"];
2938
2934
  function cl(t, s = {}) {
2939
2935
  const o = s.whiteList || wa, i = s.loginPath || "/login", a = s.homePath || "/";
2940
2936
  t.beforeEach(async (m, M, d) => {
2941
- const g = me(), p = Z(), _ = ve();
2937
+ const g = me(), p = Z(), v = ve();
2942
2938
  if (g.initTheme(), Ye())
2943
2939
  if (m.path === i)
2944
2940
  d({ path: a });
@@ -2955,14 +2951,14 @@ function cl(t, s = {}) {
2955
2951
  }
2956
2952
  if (s.fetchMenu) {
2957
2953
  const L = await s.fetchMenu();
2958
- _.setMenuList(L);
2954
+ v.setMenuList(L);
2959
2955
  } else {
2960
2956
  const L = await ka(s.appId);
2961
- _.setMenuList(L);
2957
+ v.setMenuList(L);
2962
2958
  }
2963
2959
  s.onLoginSuccess && s.onLoginSuccess(), m.name && m.meta.keepAlive && g.addCachedView(m.name), d({ ...m, replace: !0 });
2964
2960
  } catch (L) {
2965
- console.error("获取用户信息失败:", L), p.clearUserInfo(), _.clearMenu(), Se(), d({ path: i, query: { redirect: m.fullPath } });
2961
+ console.error("获取用户信息失败:", L), p.clearUserInfo(), v.clearMenu(), Se(), d({ path: i, query: { redirect: m.fullPath } });
2966
2962
  }
2967
2963
  else
2968
2964
  o.includes(m.path) ? d() : d({ path: i, query: { redirect: m.fullPath } });
@@ -2970,28 +2966,28 @@ function cl(t, s = {}) {
2970
2966
  });
2971
2967
  }
2972
2968
  function dl(t) {
2973
- return O.get("/user/list", { params: t });
2969
+ return A.get("/user/list", { params: t });
2974
2970
  }
2975
2971
  function ml(t) {
2976
- return O.get(`/user/${t}`);
2972
+ return A.get(`/user/${t}`);
2977
2973
  }
2978
2974
  function pl(t) {
2979
- return O.post("/user", t);
2975
+ return A.post("/user", t);
2980
2976
  }
2981
2977
  function hl(t, s) {
2982
- return O.put(`/user/${t}`, s);
2978
+ return A.put(`/user/${t}`, s);
2983
2979
  }
2984
2980
  function vl(t) {
2985
- return O.delete(`/user/${t}`);
2981
+ return A.delete(`/user/${t}`);
2986
2982
  }
2987
2983
  function _l(t) {
2988
- return O.post("/user/batch-delete", { ids: t });
2984
+ return A.post("/user/batch-delete", { ids: t });
2989
2985
  }
2990
2986
  function fl(t, s) {
2991
- return O.patch(`/user/${t}/status`, { status: s });
2987
+ return A.patch(`/user/${t}/status`, { status: s });
2992
2988
  }
2993
2989
  function gl(t) {
2994
- return O.post(`/user/${t}/reset-password`);
2990
+ return A.post(`/user/${t}/reset-password`);
2995
2991
  }
2996
2992
  var ba = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(ba || {}), xa = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(xa || {}), Ca = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Ca || {});
2997
2993
  const yl = {
@@ -3095,7 +3091,7 @@ export {
3095
3091
  Ya as U,
3096
3092
  Xa as V,
3097
3093
  gt as W,
3098
- O as X,
3094
+ A as X,
3099
3095
  Tt as Y,
3100
3096
  Ha as Z,
3101
3097
  ee as _,