xto-fronted 0.4.103 → 0.4.104

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,5 +1,5 @@
1
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";
2
+ import { ref as g, computed as w, watch as ye, defineComponent as ae, resolveComponent as lt, openBlock as s, 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
4
  import { useRoute as we, useRouter as me, createRouter as He, createWebHistory as Ye } from "vue-router";
5
5
  import { SubMenu as Re, MenuItem as Se, Menu as Xe, Tabs as kt, TabPane as wt } from "@xto/navigation";
@@ -8,31 +8,31 @@ import { Drawer as Ge, Message as xt } from "@xto/feedback";
8
8
  import { Form as Ct, FormItem as Pe, Input as Qe, Checkbox as $t } from "@xto/form";
9
9
  import { createLocaleProvider as Lt, getSupportedLocales as Mt, useLocale as St } from "@xto/core/locale";
10
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) => {
11
+ const t = g(N.get("appName") || "XTO App"), r = g(N.get("indexPath") || "/dashboard"), d = g(N.get("loginPath") || "/login"), l = g(N.get("isDark") || !1), o = g(N.get("theme") || "light"), i = g(N.get("layout") || "sidebar"), v = g(N.get("isCollapsed") || !1), h = g(N.get("showTabs") ?? !0), u = g(N.get("showFooter") ?? !0), f = g(N.get("showBreadcrumb") ?? !0), _ = g(N.get("primaryColor") || "#409eff"), m = g([]), b = g([]), j = w(() => l.value ? "dark" : "light"), D = (z) => {
12
12
  t.value = z, N.set("appName", z);
13
13
  }, W = (z) => {
14
- l.value = z, N.set("indexPath", z);
14
+ r.value = z, N.set("indexPath", z);
15
15
  }, V = (z) => {
16
16
  d.value = z, N.set("loginPath", z);
17
17
  }, B = () => {
18
- i.value = !i.value, s.value = i.value ? "dark" : "light", Z();
18
+ l.value = !l.value, o.value = l.value ? "dark" : "light", Z();
19
19
  }, H = (z) => {
20
- s.value = z, i.value = z === "dark", Z();
20
+ o.value = z, l.value = z === "dark", Z();
21
21
  }, Z = () => {
22
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);
23
+ l.value ? z.classList.add("dark") : z.classList.remove("dark"), N.set("isDark", l.value), N.set("theme", o.value);
24
24
  }, Y = () => {
25
- _.value = !_.value, N.set("isCollapsed", _.value);
25
+ v.value = !v.value, N.set("isCollapsed", v.value);
26
26
  }, q = (z) => {
27
- r.value = z, N.set("layout", z);
27
+ i.value = z, N.set("layout", z);
28
28
  }, ee = () => {
29
- v.value = !v.value, N.set("showTabs", v.value);
29
+ h.value = !h.value, N.set("showTabs", h.value);
30
30
  }, E = () => {
31
31
  u.value = !u.value, N.set("showFooter", u.value);
32
32
  }, I = () => {
33
33
  f.value = !f.value, N.set("showBreadcrumb", f.value);
34
34
  }, A = (z) => {
35
- h.value = z, document.documentElement.style.setProperty("--color-primary", z), N.set("primaryColor", z);
35
+ _.value = z, document.documentElement.style.setProperty("--color-primary", z), N.set("primaryColor", z);
36
36
  }, X = (z) => {
37
37
  m.value.includes(z) || m.value.push(z);
38
38
  }, F = (z) => {
@@ -43,20 +43,20 @@ const de = Ne("app", () => {
43
43
  }, ie = (z) => {
44
44
  b.value = z;
45
45
  }, pe = () => {
46
- Z(), h.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", h.value);
46
+ Z(), _.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", _.value);
47
47
  };
48
- return ye(i, Z), {
48
+ return ye(l, Z), {
49
49
  appName: t,
50
- indexPath: l,
50
+ indexPath: r,
51
51
  loginPath: d,
52
- isDark: i,
53
- theme: s,
54
- layout: r,
55
- isCollapsed: _,
56
- showTabs: v,
52
+ isDark: l,
53
+ theme: o,
54
+ layout: i,
55
+ isCollapsed: v,
56
+ showTabs: h,
57
57
  showFooter: u,
58
58
  showBreadcrumb: f,
59
- primaryColor: h,
59
+ primaryColor: _,
60
60
  cachedViews: m,
61
61
  mixSubMenus: b,
62
62
  themeClass: j,
@@ -90,53 +90,53 @@ const de = Ne("app", () => {
90
90
  isOut: !1
91
91
  };
92
92
  function rt(t) {
93
- return t.filter((l) => l.type !== 1).map((l) => ({
94
- ...l,
95
- children: l.children ? rt(l.children) : void 0
93
+ return t.filter((r) => r.type !== 1).map((r) => ({
94
+ ...r,
95
+ children: r.children ? rt(r.children) : void 0
96
96
  }));
97
97
  }
98
98
  function zt(t) {
99
- const l = [];
100
- function d(i) {
101
- i.forEach((s) => {
102
- s.type === 1 && s.menuCode && l.push(s.menuCode), s.children && d(s.children);
99
+ const r = [];
100
+ function d(l) {
101
+ l.forEach((o) => {
102
+ o.type === 1 && o.menuCode && r.push(o.menuCode), o.children && d(o.children);
103
103
  });
104
104
  }
105
- return d(t), l;
105
+ return d(t), r;
106
106
  }
107
107
  const ue = Ne("menu", () => {
108
- const t = g(N.get(Ae) || []), l = g(N.get(De) || []), d = w(() => t.value.length > 0);
108
+ const t = g(N.get(Ae) || []), r = g(N.get(De) || []), d = w(() => t.value.length > 0);
109
109
  return {
110
110
  menuList: t,
111
- permissions: l,
111
+ permissions: r,
112
112
  hasMenu: d,
113
- setMenuList: (_) => {
114
- l.value = zt(_), N.set(De, l.value);
115
- const v = rt(_);
116
- t.value = [Nt, ...v], N.set(Ae, t.value);
113
+ setMenuList: (v) => {
114
+ r.value = zt(v), N.set(De, r.value);
115
+ const h = rt(v);
116
+ t.value = [Nt, ...h], N.set(Ae, t.value);
117
117
  },
118
118
  clearMenu: () => {
119
- t.value = [], l.value = [], N.remove(Ae), N.remove(De);
119
+ t.value = [], r.value = [], N.remove(Ae), N.remove(De);
120
120
  },
121
- hasPermission: (_) => Array.isArray(_) ? _.some((v) => l.value.includes(v)) : l.value.includes(_)
121
+ hasPermission: (v) => Array.isArray(v) ? v.some((h) => r.value.includes(h)) : r.value.includes(v)
122
122
  };
123
123
  }), Ve = "user_info", le = Ne("user", () => {
124
- const t = g(N.get(Ve)), l = w(() => !!t.value), d = w(() => {
124
+ const t = g(N.get(Ve)), r = w(() => !!t.value), d = w(() => {
125
125
  var m;
126
126
  return ((m = t.value) == null ? void 0 : m.userId) || "";
127
- }), i = w(() => {
127
+ }), l = w(() => {
128
128
  var m;
129
129
  return ((m = t.value) == null ? void 0 : m.userName) || "";
130
- }), s = w(() => {
130
+ }), o = w(() => {
131
131
  var m;
132
132
  return ((m = t.value) == null ? void 0 : m.departmentName) || "";
133
- }), r = w(() => {
133
+ }), i = w(() => {
134
134
  var m;
135
135
  return ((m = t.value) == null ? void 0 : m.email) || "";
136
- }), _ = w(() => {
136
+ }), v = w(() => {
137
137
  var m;
138
138
  return ((m = t.value) == null ? void 0 : m.mobilePhone) || "";
139
- }), v = w(() => {
139
+ }), h = w(() => {
140
140
  var m;
141
141
  return ((m = t.value) == null ? void 0 : m.positionName) || "";
142
142
  }), u = w(() => {
@@ -145,13 +145,13 @@ const ue = Ne("menu", () => {
145
145
  });
146
146
  return {
147
147
  userInfo: t,
148
- isLoggedIn: l,
148
+ isLoggedIn: r,
149
149
  userId: d,
150
- userName: i,
151
- departmentName: s,
152
- email: r,
153
- mobilePhone: _,
154
- positionName: v,
150
+ userName: l,
151
+ departmentName: o,
152
+ email: i,
153
+ mobilePhone: v,
154
+ positionName: h,
155
155
  avatar: u,
156
156
  setUserInfo: (m) => {
157
157
  t.value = m, N.set(Ve, m);
@@ -161,14 +161,14 @@ const ue = Ne("menu", () => {
161
161
  }
162
162
  };
163
163
  }), ze = Ne("auth", () => {
164
- const t = g(tt()), l = w(() => st()), d = g(""), i = g(""), s = g(""), r = g("/login");
164
+ const t = g(tt()), r = w(() => st()), d = g(""), l = g(""), o = g(""), i = g("/login");
165
165
  return {
166
166
  token: t,
167
- isLoggedIn: l,
167
+ isLoggedIn: r,
168
168
  baseUrl: d,
169
- appId: i,
170
- clientId: s,
171
- loginPath: r,
169
+ appId: l,
170
+ clientId: o,
171
+ loginPath: i,
172
172
  login: (b) => {
173
173
  t.value = b.access_token, nt(b);
174
174
  },
@@ -179,13 +179,13 @@ const ue = Ne("menu", () => {
179
179
  d.value = b;
180
180
  },
181
181
  setAppId: (b) => {
182
- i.value = b;
182
+ l.value = b;
183
183
  },
184
184
  setClientId: (b) => {
185
- s.value = b;
185
+ o.value = b;
186
186
  },
187
187
  setLoginPath: (b) => {
188
- r.value = b;
188
+ i.value = b;
189
189
  }
190
190
  };
191
191
  }), Ut = { class: "menu-item__content" }, Tt = { class: "menu-item__icon" }, Et = {
@@ -203,7 +203,7 @@ const ue = Ne("menu", () => {
203
203
  menu: {}
204
204
  },
205
205
  setup(t) {
206
- const l = t, d = /* @__PURE__ */ new Set([
206
+ const r = t, d = /* @__PURE__ */ new Set([
207
207
  "arrow-up",
208
208
  "arrow-down",
209
209
  "arrow-left",
@@ -305,10 +305,10 @@ const ue = Ne("menu", () => {
305
305
  "sun",
306
306
  "theme",
307
307
  "skin"
308
- ]), i = (u) => {
308
+ ]), l = (u) => {
309
309
  if (!u || u === "") return "";
310
310
  if (u.startsWith("tineco-icon-")) {
311
- const h = u.replace("tineco-icon-", "");
311
+ const _ = u.replace("tineco-icon-", "");
312
312
  return {
313
313
  home: "home",
314
314
  dashboard: "dashboard",
@@ -322,7 +322,7 @@ const ue = Ne("menu", () => {
322
322
  chart: "chart",
323
323
  report: "report",
324
324
  analytics: "analytics"
325
- }[h] || h;
325
+ }[_] || _;
326
326
  }
327
327
  return {
328
328
  dashboard: "dashboard",
@@ -342,44 +342,44 @@ const ue = Ne("menu", () => {
342
342
  list: "list",
343
343
  grid: "grid"
344
344
  }[u] || u;
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);
345
+ }, o = (u) => u ? u.charAt(0) : "", i = (u) => d.has(u), v = w(() => r.menu.menuId || r.menu.menuCode || r.menu.menuUrl || ""), h = w(() => r.menu.children && r.menu.children.length > 0);
346
346
  return (u, f) => {
347
- const h = lt("SidebarMenuItem", !0);
348
- return v.value ? (o(), O(n(Re), {
347
+ const _ = lt("SidebarMenuItem", !0);
348
+ return h.value ? (s(), O(n(Re), {
349
349
  key: 0,
350
- index: _.value
350
+ index: v.value
351
351
  }, {
352
352
  title: M(() => [
353
353
  e("span", Ut, [
354
354
  e("span", Tt, [
355
- r(i(t.menu.icon)) ? (o(), O(n(U), {
355
+ i(l(t.menu.icon)) ? (s(), O(n(U), {
356
356
  key: 0,
357
- name: i(t.menu.icon),
357
+ name: l(t.menu.icon),
358
358
  size: 16
359
- }, null, 8, ["name"])) : (o(), c("span", Et, x(s(t.menu.menuName)), 1))
359
+ }, null, 8, ["name"])) : (s(), c("span", Et, x(o(t.menu.menuName)), 1))
360
360
  ]),
361
361
  e("span", Pt, x(t.menu.menuName), 1)
362
362
  ])
363
363
  ]),
364
364
  default: M(() => [
365
- (o(!0), c(K, null, G(t.menu.children, (m) => (o(), O(h, {
365
+ (s(!0), c(K, null, G(t.menu.children, (m) => (s(), O(_, {
366
366
  key: m.menuId || m.menuCode || m.menuUrl,
367
367
  menu: m
368
368
  }, null, 8, ["menu"]))), 128))
369
369
  ]),
370
370
  _: 1
371
- }, 8, ["index"])) : (o(), O(n(Se), {
371
+ }, 8, ["index"])) : (s(), O(n(Se), {
372
372
  key: 1,
373
- index: t.menu.menuUrl || _.value
373
+ index: t.menu.menuUrl || v.value
374
374
  }, {
375
375
  default: M(() => [
376
376
  e("span", At, [
377
- t.menu.menuName !== "首页" ? (o(), c("span", Dt, [
378
- r(i(t.menu.icon)) ? (o(), O(n(U), {
377
+ t.menu.menuName !== "首页" ? (s(), c("span", Dt, [
378
+ i(l(t.menu.icon)) ? (s(), O(n(U), {
379
379
  key: 0,
380
- name: i(t.menu.icon),
380
+ name: l(t.menu.icon),
381
381
  size: 16
382
- }, null, 8, ["name"])) : (o(), c("span", Vt, x(s(t.menu.menuName)), 1))
382
+ }, null, 8, ["name"])) : (s(), c("span", Vt, x(o(t.menu.menuName)), 1))
383
383
  ])) : P("", !0),
384
384
  e("span", Ot, x(t.menu.menuName), 1)
385
385
  ])
@@ -388,10 +388,10 @@ const ue = Ne("menu", () => {
388
388
  }, 8, ["index"]));
389
389
  };
390
390
  }
391
- }), re = (t, l) => {
391
+ }), re = (t, r) => {
392
392
  const d = t.__vccOpts || t;
393
- for (const [i, s] of l)
394
- d[i] = s;
393
+ for (const [l, o] of r)
394
+ d[l] = o;
395
395
  return d;
396
396
  }, Rt = /* @__PURE__ */ re(Bt, [["__scopeId", "data-v-f5865e28"]]), Ft = {
397
397
  key: 0,
@@ -408,7 +408,7 @@ const ue = Ne("menu", () => {
408
408
  logoSrc: { default: "/vite.svg" }
409
409
  },
410
410
  setup(t) {
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);
411
+ const r = t, d = we(), l = me(), o = ue(), i = le(), v = ze(), h = de(), u = w(() => r.menuList.length > 0 ? r.menuList : o.menuList), f = w(() => h.isCollapsed), _ = 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
412
  ye(V, (E) => {
413
413
  N.set(Oe, E), N.set(Be, b());
414
414
  }, { deep: !0 });
@@ -435,27 +435,27 @@ const ue = Ne("menu", () => {
435
435
  }, { immediate: !0 }), ye(u, (E, I) => {
436
436
  E !== I && (V.value = [], N.set(Oe, []), N.set(Be, b()));
437
437
  }, { immediate: !1 });
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);
438
+ const H = w(() => h.isDark ? "#1d1e1f" : "#fff"), Z = w(() => h.isDark ? "#cfd3dc" : "#303133"), Y = w(() => "#409eff"), q = (E) => {
439
+ E && E !== d.path && l.push(E);
440
440
  }, ee = () => {
441
- _.logout(), r.clearUserInfo(), s.clearMenu(), i.push(v.loginPath);
441
+ v.logout(), i.clearUserInfo(), o.clearMenu(), l.push(h.loginPath);
442
442
  };
443
- return (E, I) => (o(), c("div", {
443
+ return (E, I) => (s(), c("div", {
444
444
  class: J(["sidebar", { "sidebar--collapsed": f.value }])
445
445
  }, [
446
- l.showLogo ? (o(), c("div", Ft, [
446
+ r.showLogo ? (s(), c("div", Ft, [
447
447
  e("img", {
448
- src: l.logoSrc,
448
+ src: r.logoSrc,
449
449
  alt: "Logo",
450
450
  class: "sidebar__logo-img"
451
451
  }, null, 8, Kt),
452
- Te(e("span", { class: "sidebar__logo-text" }, x(n(v).appName), 513), [
452
+ Te(e("span", { class: "sidebar__logo-text" }, x(n(h).appName), 513), [
453
453
  [gt, !f.value]
454
454
  ])
455
455
  ])) : P("", !0),
456
456
  y(n(Xe), {
457
- modelValue: h.value,
458
- "onUpdate:modelValue": I[0] || (I[0] = (A) => h.value = A),
457
+ modelValue: _.value,
458
+ "onUpdate:modelValue": I[0] || (I[0] = (A) => _.value = A),
459
459
  openeds: V.value,
460
460
  "onUpdate:openeds": I[1] || (I[1] = (A) => V.value = A),
461
461
  mode: "vertical",
@@ -468,17 +468,17 @@ const ue = Ne("menu", () => {
468
468
  onSelect: q
469
469
  }, {
470
470
  default: M(() => [
471
- (o(!0), c(K, null, G(u.value, (A) => (o(), O(Rt, {
471
+ (s(!0), c(K, null, G(u.value, (A) => (s(), O(Rt, {
472
472
  key: m(A),
473
473
  menu: A
474
474
  }, null, 8, ["menu"]))), 128))
475
475
  ]),
476
476
  _: 1
477
477
  }, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
478
- l.showUser && !f.value ? (o(), c("div", jt, [
478
+ r.showUser && !f.value ? (s(), c("div", jt, [
479
479
  e("div", Wt, [
480
- e("span", qt, x(n(r).userName), 1),
481
- e("span", Ht, x(n(r).departmentName), 1)
480
+ e("span", qt, x(n(i).userName), 1),
481
+ e("span", Ht, x(n(i).departmentName), 1)
482
482
  ]),
483
483
  y(n(ke), {
484
484
  type: "text",
@@ -532,7 +532,7 @@ const ue = Ne("menu", () => {
532
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({
533
533
  __name: "Header",
534
534
  setup(t) {
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 = [
535
+ const r = we(), d = me(), l = de(), o = le(), i = ze(), v = ue(), h = g(!1), u = g(!1), f = g(null), _ = g(!1), m = g(!1), b = g(""), j = g(null), D = g(!1), W = [
536
536
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
537
537
  { value: "top", label: "顶部菜单", icon: "menu" },
538
538
  { value: "mix", label: "混合菜单", icon: "grid" }
@@ -543,7 +543,7 @@ const ue = Ne("menu", () => {
543
543
  { value: "#faad14", label: "日落橙" },
544
544
  { value: "#f5222d", label: "薄暮红" },
545
545
  { value: "#722ed1", label: "酱紫" }
546
- ], B = w(() => l.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
546
+ ], B = w(() => r.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
547
547
  title: k.meta.title,
548
548
  path: k.path
549
549
  }))), H = (T, k = "") => {
@@ -690,16 +690,16 @@ const ue = Ne("menu", () => {
690
690
  list: "list",
691
691
  grid: "grid"
692
692
  }[T] || T;
693
- }, q = (T) => T ? T.charAt(0) : "", ee = (T) => Z.has(T), E = w(() => b.value.trim() ? H(_.menuList).filter(
693
+ }, q = (T) => T ? T.charAt(0) : "", ee = (T) => Z.has(T), E = w(() => b.value.trim() ? H(v.menuList).filter(
694
694
  (k) => k.title.toLowerCase().includes(b.value.toLowerCase())
695
- ) : []), I = w(() => i.layout), A = () => {
696
- i.toggleCollapse();
695
+ ) : []), I = w(() => l.layout), A = () => {
696
+ l.toggleCollapse();
697
697
  }, X = () => {
698
- i.toggleTheme();
698
+ l.toggleTheme();
699
699
  }, F = () => {
700
700
  u.value = !0;
701
701
  }, se = (T) => {
702
- i.setLayout(T), u.value = !1;
702
+ l.setLayout(T), u.value = !1;
703
703
  }, ie = (T) => {
704
704
  D.value = T;
705
705
  const k = document.documentElement;
@@ -707,54 +707,54 @@ const ue = Ne("menu", () => {
707
707
  }, pe = () => {
708
708
  ie(!D.value), u.value = !1;
709
709
  }, z = () => {
710
- i.toggleTheme(), u.value = !1;
710
+ l.toggleTheme(), u.value = !1;
711
711
  }, oe = () => {
712
712
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
713
713
  }, _e = () => {
714
- h.value = !!document.fullscreenElement;
714
+ _.value = !!document.fullscreenElement;
715
715
  }, ce = () => {
716
- v.value = !v.value;
716
+ h.value = !h.value;
717
717
  }, ne = () => {
718
- v.value = !1;
718
+ h.value = !1;
719
719
  }, ve = () => {
720
720
  m.value = !1, b.value = "";
721
721
  }, xe = (T) => {
722
722
  d.push(T), ve();
723
723
  }, Ce = (T) => {
724
- i.setPrimaryColor(T), u.value = !1;
724
+ l.setPrimaryColor(T), u.value = !1;
725
725
  }, $e = () => {
726
726
  ne(), d.push("/profile");
727
727
  }, Le = () => {
728
728
  ne(), d.push("/change-password");
729
729
  }, Me = () => {
730
- ne(), r.logout(), s.clearUserInfo(), _.clearMenu(), d.push(i.loginPath);
730
+ ne(), i.logout(), o.clearUserInfo(), v.clearMenu(), d.push(l.loginPath);
731
731
  }, fe = (T) => {
732
732
  f.value && !f.value.contains(T.target) && ne(), j.value && !j.value.contains(T.target) && ve();
733
733
  }, ge = (T) => {
734
734
  T.key === "Escape" && (ve(), ne());
735
735
  };
736
736
  return Ke(() => {
737
- document.addEventListener("click", fe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", ge), i.initTheme(), D.value = document.documentElement.classList.contains("grey-mode");
737
+ document.addEventListener("click", fe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", ge), l.initTheme(), D.value = document.documentElement.classList.contains("grey-mode");
738
738
  }), je(() => {
739
739
  document.removeEventListener("click", fe), document.removeEventListener("fullscreenchange", _e), document.removeEventListener("keydown", ge);
740
740
  }), (T, k) => {
741
741
  var Q;
742
- return o(), c("div", Xt, [
742
+ return s(), c("div", Xt, [
743
743
  e("div", Gt, [
744
744
  e("div", {
745
745
  class: "header__collapse",
746
746
  onClick: A
747
747
  }, [
748
748
  y(n(U), {
749
- name: n(i).isCollapsed ? "menu-unfold" : "menu-fold",
749
+ name: n(l).isCollapsed ? "menu-unfold" : "menu-fold",
750
750
  size: 18
751
751
  }, null, 8, ["name"])
752
752
  ]),
753
- n(i).showBreadcrumb ? (o(), c("div", Jt, [
754
- (o(!0), c(K, null, G(B.value, (C, S) => (o(), c("span", {
753
+ n(l).showBreadcrumb ? (s(), c("div", Jt, [
754
+ (s(!0), c(K, null, G(B.value, (C, S) => (s(), c("span", {
755
755
  key: C.path
756
756
  }, [
757
- S > 0 ? (o(), c("span", Zt, "/")) : P("", !0),
757
+ S > 0 ? (s(), c("span", Zt, "/")) : P("", !0),
758
758
  e("span", {
759
759
  class: J({ "is-current": S === B.value.length - 1 })
760
760
  }, x(C.title), 3)
@@ -783,24 +783,24 @@ const ue = Ne("menu", () => {
783
783
  ]),
784
784
  y(be, { name: "search-dropdown" }, {
785
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", {
786
+ m.value && (E.value.length > 0 || b.value) ? (s(), c("div", es, [
787
+ E.value.length > 0 ? (s(), c("div", ts, [
788
+ (s(!0), c(K, null, G(E.value, (C) => (s(), c("div", {
789
789
  key: C.path,
790
790
  class: "header__search-item",
791
791
  onClick: (S) => xe(C.path)
792
792
  }, [
793
- C.title !== "首页" ? (o(), c("span", os, [
794
- ee(Y(C.icon)) ? (o(), O(n(U), {
793
+ C.title !== "首页" ? (s(), c("span", os, [
794
+ ee(Y(C.icon)) ? (s(), O(n(U), {
795
795
  key: 0,
796
796
  name: Y(C.icon),
797
797
  size: 16
798
- }, null, 8, ["name"])) : (o(), c("span", ns, x(q(C.title)), 1))
798
+ }, null, 8, ["name"])) : (s(), c("span", ns, x(q(C.title)), 1))
799
799
  ])) : P("", !0),
800
800
  e("span", as, x(C.title), 1),
801
- C.parentTitle ? (o(), c("span", ls, x(C.parentTitle), 1)) : P("", !0)
801
+ C.parentTitle ? (s(), c("span", ls, x(C.parentTitle), 1)) : P("", !0)
802
802
  ], 8, ss))), 128))
803
- ])) : (o(), c("div", rs, " 未找到匹配的菜单 "))
803
+ ])) : (s(), c("div", rs, " 未找到匹配的菜单 "))
804
804
  ])) : P("", !0)
805
805
  ]),
806
806
  _: 1
@@ -809,10 +809,10 @@ const ue = Ne("menu", () => {
809
809
  e("div", {
810
810
  class: "header__action",
811
811
  onClick: oe,
812
- title: h.value ? "退出全屏" : "全屏"
812
+ title: _.value ? "退出全屏" : "全屏"
813
813
  }, [
814
814
  y(n(U), {
815
- name: h.value ? "fullscreen-exit" : "fullscreen",
815
+ name: _.value ? "fullscreen-exit" : "fullscreen",
816
816
  size: 16
817
817
  }, null, 8, ["name"])
818
818
  ], 8, is),
@@ -832,7 +832,7 @@ const ue = Ne("menu", () => {
832
832
  title: "切换主题"
833
833
  }, [
834
834
  y(n(U), {
835
- name: n(i).isDark ? "sun" : "moon",
835
+ name: n(l).isDark ? "sun" : "moon",
836
836
  size: 16
837
837
  }, null, 8, ["name"])
838
838
  ]),
@@ -846,25 +846,25 @@ const ue = Ne("menu", () => {
846
846
  onClick: Ee(ce, ["stop"])
847
847
  }, [
848
848
  e("div", cs, [
849
- e("span", null, x(((Q = n(s).userName) == null ? void 0 : Q.charAt(0)) || "U"), 1)
849
+ e("span", null, x(((Q = n(o).userName) == null ? void 0 : Q.charAt(0)) || "U"), 1)
850
850
  ]),
851
- e("span", ds, x(n(s).userName), 1),
851
+ e("span", ds, x(n(o).userName), 1),
852
852
  e("span", {
853
- class: J(["header__user-arrow", { "is-active": v.value }])
853
+ class: J(["header__user-arrow", { "is-active": h.value }])
854
854
  }, "▼", 2)
855
855
  ]),
856
856
  y(be, { name: "dropdown" }, {
857
857
  default: M(() => {
858
858
  var C;
859
859
  return [
860
- v.value ? (o(), c("div", us, [
860
+ h.value ? (s(), c("div", us, [
861
861
  e("div", ms, [
862
862
  e("div", ps, [
863
- e("span", null, x(((C = n(s).userName) == null ? void 0 : C.charAt(0)) || "U"), 1)
863
+ e("span", null, x(((C = n(o).userName) == null ? void 0 : C.charAt(0)) || "U"), 1)
864
864
  ]),
865
865
  e("div", vs, [
866
- e("div", hs, x(n(s).userName), 1),
867
- e("div", _s, x(n(s).departmentName), 1)
866
+ e("div", hs, x(n(o).userName), 1),
867
+ e("div", _s, x(n(o).departmentName), 1)
868
868
  ])
869
869
  ]),
870
870
  k[7] || (k[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
@@ -920,22 +920,22 @@ const ue = Ne("menu", () => {
920
920
  e("div", ys, [
921
921
  k[11] || (k[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
922
922
  e("div", bs, [
923
- (o(), c(K, null, G(W, (C) => e("div", {
923
+ (s(), c(K, null, G(W, (C) => e("div", {
924
924
  key: C.value,
925
925
  class: J(["layout-option", { "is-active": I.value === C.value }]),
926
926
  onClick: (S) => se(C.value)
927
927
  }, [
928
928
  e("div", ws, [
929
- C.value === "sidebar" ? (o(), c("div", xs, [...k[8] || (k[8] = [
929
+ C.value === "sidebar" ? (s(), c("div", xs, [...k[8] || (k[8] = [
930
930
  e("div", { class: "preview-aside" }, null, -1),
931
931
  e("div", { class: "preview-main" }, [
932
932
  e("div", { class: "preview-header" }),
933
933
  e("div", { class: "preview-content" })
934
934
  ], -1)
935
- ])])) : C.value === "top" ? (o(), c("div", Cs, [...k[9] || (k[9] = [
935
+ ])])) : C.value === "top" ? (s(), c("div", Cs, [...k[9] || (k[9] = [
936
936
  e("div", { class: "preview-header-full" }, null, -1),
937
937
  e("div", { class: "preview-content-full" }, null, -1)
938
- ])])) : (o(), c("div", $s, [...k[10] || (k[10] = [
938
+ ])])) : (s(), c("div", $s, [...k[10] || (k[10] = [
939
939
  e("div", { class: "preview-header-mix" }, [
940
940
  e("div", { class: "preview-mix-left" })
941
941
  ], -1),
@@ -952,14 +952,14 @@ const ue = Ne("menu", () => {
952
952
  e("div", Ms, [
953
953
  k[12] || (k[12] = e("div", { class: "settings-title" }, "主题色", -1)),
954
954
  e("div", Ss, [
955
- (o(), c(K, null, G(V, (C) => e("div", {
955
+ (s(), c(K, null, G(V, (C) => e("div", {
956
956
  key: C.value,
957
- class: J(["color-option", { "is-active": n(i).primaryColor === C.value }]),
957
+ class: J(["color-option", { "is-active": n(l).primaryColor === C.value }]),
958
958
  style: Ie({ backgroundColor: C.value }),
959
959
  title: C.label,
960
960
  onClick: (S) => Ce(C.value)
961
961
  }, [
962
- n(i).primaryColor === C.value ? (o(), O(n(U), {
962
+ n(l).primaryColor === C.value ? (s(), O(n(U), {
963
963
  key: 0,
964
964
  name: "check",
965
965
  size: 12,
@@ -983,7 +983,7 @@ const ue = Ne("menu", () => {
983
983
  e("div", Ts, [
984
984
  k[16] || (k[16] = e("span", null, "暗黑模式", -1)),
985
985
  e("div", {
986
- class: J(["switch-wrapper", { "is-checked": n(i).isDark }]),
986
+ class: J(["switch-wrapper", { "is-checked": n(l).isDark }]),
987
987
  onClick: z
988
988
  }, [...k[15] || (k[15] = [
989
989
  e("span", { class: "switch-core" }, null, -1)
@@ -1055,15 +1055,15 @@ const ue = Ne("menu", () => {
1055
1055
  logoSrc: { default: "/vite.svg" }
1056
1056
  },
1057
1057
  setup(t) {
1058
- const l = t, d = we(), i = me(), s = ue(), r = de(), _ = le(), v = ze(), u = w(() => d.path), f = (S, L = "") => {
1058
+ const r = t, d = we(), l = me(), o = ue(), i = de(), v = le(), h = ze(), u = w(() => d.path), f = (S, L = "") => {
1059
1059
  const te = [];
1060
1060
  return S.forEach((a) => {
1061
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 });
1062
1062
  }), te;
1063
- }, h = w(() => Y.value.trim() ? f(s.menuList).filter(
1063
+ }, _ = w(() => Y.value.trim() ? f(o.menuList).filter(
1064
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) => {
1066
- S && S !== d.path && i.push(S);
1065
+ ) : []), m = w(() => i.isDark ? "#1d1e1f" : "#fff"), b = w(() => i.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) => {
1066
+ S && S !== d.path && l.push(S);
1067
1067
  }, E = /* @__PURE__ */ new Set([
1068
1068
  "arrow-up",
1069
1069
  "arrow-down",
@@ -1204,7 +1204,7 @@ const ue = Ne("menu", () => {
1204
1204
  grid: "grid"
1205
1205
  }[S] || S;
1206
1206
  }, A = (S) => S ? S.charAt(0) : "", X = (S) => E.has(S), F = () => {
1207
- r.toggleTheme(), B.value = !1;
1207
+ i.toggleTheme(), B.value = !1;
1208
1208
  }, se = () => {
1209
1209
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1210
1210
  }, ie = () => {
@@ -1216,7 +1216,7 @@ const ue = Ne("menu", () => {
1216
1216
  }, oe = () => {
1217
1217
  Z.value = !1, Y.value = "";
1218
1218
  }, _e = (S) => {
1219
- i.push(S), oe();
1219
+ l.push(S), oe();
1220
1220
  }, ce = () => {
1221
1221
  B.value = !0;
1222
1222
  }, ne = (S) => {
@@ -1226,13 +1226,13 @@ const ue = Ne("menu", () => {
1226
1226
  }, ve = () => {
1227
1227
  ne(!H.value), B.value = !1;
1228
1228
  }, xe = () => {
1229
- r.toggleTheme(), B.value = !1;
1229
+ i.toggleTheme(), B.value = !1;
1230
1230
  }, Ce = [
1231
1231
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1232
1232
  { value: "top", label: "顶部菜单", icon: "menu" },
1233
1233
  { value: "mix", label: "混合菜单", icon: "grid" }
1234
- ], $e = w(() => r.layout), Le = (S) => {
1235
- r.setLayout(S), B.value = !1;
1234
+ ], $e = w(() => i.layout), Le = (S) => {
1235
+ i.setLayout(S), B.value = !1;
1236
1236
  }, Me = [
1237
1237
  { value: "#409eff", label: "默认蓝" },
1238
1238
  { value: "#1890ff", label: "科技蓝" },
@@ -1241,13 +1241,13 @@ const ue = Ne("menu", () => {
1241
1241
  { value: "#f5222d", label: "薄暮红" },
1242
1242
  { value: "#722ed1", label: "酱紫" }
1243
1243
  ], fe = (S) => {
1244
- r.setPrimaryColor(S), B.value = !1;
1244
+ i.setPrimaryColor(S), B.value = !1;
1245
1245
  }, ge = () => {
1246
- z(), i.push("/profile");
1246
+ z(), l.push("/profile");
1247
1247
  }, T = () => {
1248
- z(), i.push("/change-password");
1248
+ z(), l.push("/change-password");
1249
1249
  }, k = () => {
1250
- z(), v.logout(), _.clearUserInfo(), s.clearMenu(), i.push(r.loginPath);
1250
+ z(), h.logout(), v.clearUserInfo(), o.clearMenu(), l.push(i.loginPath);
1251
1251
  }, Q = (S) => {
1252
1252
  W.value && !W.value.contains(S.target) && z(), q.value && !q.value.contains(S.target) && oe();
1253
1253
  }, C = (S) => {
@@ -1259,14 +1259,14 @@ const ue = Ne("menu", () => {
1259
1259
  document.removeEventListener("click", Q), document.removeEventListener("fullscreenchange", ie), document.removeEventListener("keydown", C);
1260
1260
  }), (S, L) => {
1261
1261
  var te;
1262
- return o(), c("div", As, [
1262
+ return s(), c("div", As, [
1263
1263
  e("div", Ds, [
1264
1264
  e("img", {
1265
- src: l.logoSrc,
1265
+ src: r.logoSrc,
1266
1266
  alt: "Logo",
1267
1267
  class: "top-menu__logo-img"
1268
1268
  }, null, 8, Vs),
1269
- e("span", Os, x(n(r).appName), 1)
1269
+ e("span", Os, x(n(i).appName), 1)
1270
1270
  ]),
1271
1271
  y(n(Xe), {
1272
1272
  "model-value": u.value,
@@ -1278,58 +1278,58 @@ const ue = Ne("menu", () => {
1278
1278
  onSelect: ee
1279
1279
  }, {
1280
1280
  default: M(() => [
1281
- (o(!0), c(K, null, G(n(s).menuList, (a) => (o(), c(K, {
1281
+ (s(!0), c(K, null, G(n(o).menuList, (a) => (s(), c(K, {
1282
1282
  key: a.menuUrl
1283
1283
  }, [
1284
- a.children && a.children.length > 0 ? (o(), O(n(Re), {
1284
+ a.children && a.children.length > 0 ? (s(), O(n(Re), {
1285
1285
  key: 0,
1286
1286
  index: a.menuUrl
1287
1287
  }, {
1288
1288
  title: M(() => [
1289
1289
  e("span", Bs, [
1290
- a.menuName !== "首页" ? (o(), c("span", Rs, [
1291
- X(I(a.icon)) ? (o(), O(n(U), {
1290
+ a.menuName !== "首页" ? (s(), c("span", Rs, [
1291
+ X(I(a.icon)) ? (s(), O(n(U), {
1292
1292
  key: 0,
1293
1293
  name: I(a.icon),
1294
1294
  size: 16
1295
- }, null, 8, ["name"])) : (o(), c("span", Fs, x(A(a.menuName)), 1))
1295
+ }, null, 8, ["name"])) : (s(), c("span", Fs, x(A(a.menuName)), 1))
1296
1296
  ])) : P("", !0),
1297
1297
  e("span", Ks, x(a.menuName), 1)
1298
1298
  ])
1299
1299
  ]),
1300
1300
  default: M(() => [
1301
- (o(!0), c(K, null, G(a.children, (p) => (o(), c(K, {
1301
+ (s(!0), c(K, null, G(a.children, (p) => (s(), c(K, {
1302
1302
  key: p.menuUrl
1303
1303
  }, [
1304
- p.children && p.children.length > 0 ? (o(), O(n(Re), {
1304
+ p.children && p.children.length > 0 ? (s(), O(n(Re), {
1305
1305
  key: 0,
1306
1306
  index: p.menuUrl
1307
1307
  }, {
1308
1308
  title: M(() => [
1309
1309
  e("span", js, [
1310
1310
  e("span", Ws, [
1311
- X(I(p.icon)) ? (o(), O(n(U), {
1311
+ X(I(p.icon)) ? (s(), O(n(U), {
1312
1312
  key: 0,
1313
1313
  name: I(p.icon),
1314
1314
  size: 16
1315
- }, null, 8, ["name"])) : (o(), c("span", qs, x(A(p.menuName)), 1))
1315
+ }, null, 8, ["name"])) : (s(), c("span", qs, x(A(p.menuName)), 1))
1316
1316
  ]),
1317
1317
  e("span", Hs, x(p.menuName), 1)
1318
1318
  ])
1319
1319
  ]),
1320
1320
  default: M(() => [
1321
- (o(!0), c(K, null, G(p.children, (R) => (o(), O(n(Se), {
1321
+ (s(!0), c(K, null, G(p.children, (R) => (s(), O(n(Se), {
1322
1322
  key: R.menuUrl,
1323
1323
  index: R.menuUrl
1324
1324
  }, {
1325
1325
  default: M(() => [
1326
1326
  e("span", Ys, [
1327
1327
  e("span", Xs, [
1328
- X(I(R.icon)) ? (o(), O(n(U), {
1328
+ X(I(R.icon)) ? (s(), O(n(U), {
1329
1329
  key: 0,
1330
1330
  name: I(R.icon),
1331
1331
  size: 16
1332
- }, null, 8, ["name"])) : (o(), c("span", Gs, x(A(R.menuName)), 1))
1332
+ }, null, 8, ["name"])) : (s(), c("span", Gs, x(A(R.menuName)), 1))
1333
1333
  ]),
1334
1334
  e("span", Js, x(R.menuName), 1)
1335
1335
  ])
@@ -1338,18 +1338,18 @@ const ue = Ne("menu", () => {
1338
1338
  }, 1032, ["index"]))), 128))
1339
1339
  ]),
1340
1340
  _: 2
1341
- }, 1032, ["index"])) : (o(), O(n(Se), {
1341
+ }, 1032, ["index"])) : (s(), O(n(Se), {
1342
1342
  key: 1,
1343
1343
  index: p.menuUrl
1344
1344
  }, {
1345
1345
  default: M(() => [
1346
1346
  e("span", Zs, [
1347
1347
  e("span", Qs, [
1348
- X(I(p.icon)) ? (o(), O(n(U), {
1348
+ X(I(p.icon)) ? (s(), O(n(U), {
1349
1349
  key: 0,
1350
1350
  name: I(p.icon),
1351
1351
  size: 16
1352
- }, null, 8, ["name"])) : (o(), c("span", eo, x(A(p.menuName)), 1))
1352
+ }, null, 8, ["name"])) : (s(), c("span", eo, x(A(p.menuName)), 1))
1353
1353
  ]),
1354
1354
  e("span", to, x(p.menuName), 1)
1355
1355
  ])
@@ -1359,18 +1359,18 @@ const ue = Ne("menu", () => {
1359
1359
  ], 64))), 128))
1360
1360
  ]),
1361
1361
  _: 2
1362
- }, 1032, ["index"])) : (o(), O(n(Se), {
1362
+ }, 1032, ["index"])) : (s(), O(n(Se), {
1363
1363
  key: 1,
1364
1364
  index: a.menuUrl
1365
1365
  }, {
1366
1366
  default: M(() => [
1367
1367
  e("span", so, [
1368
- a.menuName !== "首页" ? (o(), c("span", oo, [
1369
- X(I(a.icon)) ? (o(), O(n(U), {
1368
+ a.menuName !== "首页" ? (s(), c("span", oo, [
1369
+ X(I(a.icon)) ? (s(), O(n(U), {
1370
1370
  key: 0,
1371
1371
  name: I(a.icon),
1372
1372
  size: 16
1373
- }, null, 8, ["name"])) : (o(), c("span", no, x(A(a.menuName)), 1))
1373
+ }, null, 8, ["name"])) : (s(), c("span", no, x(A(a.menuName)), 1))
1374
1374
  ])) : P("", !0),
1375
1375
  e("span", ao, x(a.menuName), 1)
1376
1376
  ])
@@ -1403,24 +1403,24 @@ const ue = Ne("menu", () => {
1403
1403
  ]),
1404
1404
  y(be, { name: "search-dropdown" }, {
1405
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", {
1406
+ Z.value && (_.value.length > 0 || Y.value) ? (s(), c("div", ro, [
1407
+ _.value.length > 0 ? (s(), c("div", io, [
1408
+ (s(!0), c(K, null, G(_.value, (a) => (s(), c("div", {
1409
1409
  key: a.path,
1410
1410
  class: "top-menu__search-item",
1411
1411
  onClick: (p) => _e(a.path)
1412
1412
  }, [
1413
- a.title !== "首页" ? (o(), c("span", uo, [
1414
- X(I(a.icon)) ? (o(), O(n(U), {
1413
+ a.title !== "首页" ? (s(), c("span", uo, [
1414
+ X(I(a.icon)) ? (s(), O(n(U), {
1415
1415
  key: 0,
1416
1416
  name: I(a.icon),
1417
1417
  size: 16
1418
- }, null, 8, ["name"])) : (o(), c("span", mo, x(A(a.title)), 1))
1418
+ }, null, 8, ["name"])) : (s(), c("span", mo, x(A(a.title)), 1))
1419
1419
  ])) : P("", !0),
1420
1420
  e("span", po, x(a.title), 1),
1421
- a.parentTitle ? (o(), c("span", vo, x(a.parentTitle), 1)) : P("", !0)
1421
+ a.parentTitle ? (s(), c("span", vo, x(a.parentTitle), 1)) : P("", !0)
1422
1422
  ], 8, co))), 128))
1423
- ])) : (o(), c("div", ho, " 未找到匹配的菜单 "))
1423
+ ])) : (s(), c("div", ho, " 未找到匹配的菜单 "))
1424
1424
  ])) : P("", !0)
1425
1425
  ]),
1426
1426
  _: 1
@@ -1452,7 +1452,7 @@ const ue = Ne("menu", () => {
1452
1452
  title: "切换主题"
1453
1453
  }, [
1454
1454
  y(n(U), {
1455
- name: n(r).isDark ? "sun" : "moon",
1455
+ name: n(i).isDark ? "sun" : "moon",
1456
1456
  size: 16
1457
1457
  }, null, 8, ["name"])
1458
1458
  ]),
@@ -1466,9 +1466,9 @@ const ue = Ne("menu", () => {
1466
1466
  onClick: Ee(pe, ["stop"])
1467
1467
  }, [
1468
1468
  e("div", fo, [
1469
- e("span", null, x(((te = n(_).userName) == null ? void 0 : te.charAt(0)) || "U"), 1)
1469
+ e("span", null, x(((te = n(v).userName) == null ? void 0 : te.charAt(0)) || "U"), 1)
1470
1470
  ]),
1471
- e("span", go, x(n(_).userName), 1),
1471
+ e("span", go, x(n(v).userName), 1),
1472
1472
  e("span", {
1473
1473
  class: J(["top-menu__user-arrow", { "is-active": D.value }])
1474
1474
  }, "▼", 2)
@@ -1477,14 +1477,14 @@ const ue = Ne("menu", () => {
1477
1477
  default: M(() => {
1478
1478
  var a;
1479
1479
  return [
1480
- D.value ? (o(), c("div", yo, [
1480
+ D.value ? (s(), c("div", yo, [
1481
1481
  e("div", bo, [
1482
1482
  e("div", ko, [
1483
- e("span", null, x(((a = n(_).userName) == null ? void 0 : a.charAt(0)) || "U"), 1)
1483
+ e("span", null, x(((a = n(v).userName) == null ? void 0 : a.charAt(0)) || "U"), 1)
1484
1484
  ]),
1485
1485
  e("div", wo, [
1486
- e("div", xo, x(n(_).userName), 1),
1487
- e("div", Co, x(n(_).departmentName), 1)
1486
+ e("div", xo, x(n(v).userName), 1),
1487
+ e("div", Co, x(n(v).departmentName), 1)
1488
1488
  ])
1489
1489
  ]),
1490
1490
  L[7] || (L[7] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
@@ -1540,22 +1540,22 @@ const ue = Ne("menu", () => {
1540
1540
  e("div", Mo, [
1541
1541
  L[11] || (L[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
1542
1542
  e("div", So, [
1543
- (o(), c(K, null, G(Ce, (a) => e("div", {
1543
+ (s(), c(K, null, G(Ce, (a) => e("div", {
1544
1544
  key: a.value,
1545
1545
  class: J(["layout-option", { "is-active": $e.value === a.value }]),
1546
1546
  onClick: (p) => Le(a.value)
1547
1547
  }, [
1548
1548
  e("div", No, [
1549
- a.value === "sidebar" ? (o(), c("div", zo, [...L[8] || (L[8] = [
1549
+ a.value === "sidebar" ? (s(), c("div", zo, [...L[8] || (L[8] = [
1550
1550
  e("div", { class: "preview-aside" }, null, -1),
1551
1551
  e("div", { class: "preview-main" }, [
1552
1552
  e("div", { class: "preview-header" }),
1553
1553
  e("div", { class: "preview-content" })
1554
1554
  ], -1)
1555
- ])])) : a.value === "top" ? (o(), c("div", Uo, [...L[9] || (L[9] = [
1555
+ ])])) : a.value === "top" ? (s(), c("div", Uo, [...L[9] || (L[9] = [
1556
1556
  e("div", { class: "preview-header-full" }, null, -1),
1557
1557
  e("div", { class: "preview-content-full" }, null, -1)
1558
- ])])) : (o(), c("div", To, [...L[10] || (L[10] = [
1558
+ ])])) : (s(), c("div", To, [...L[10] || (L[10] = [
1559
1559
  e("div", { class: "preview-header-mix" }, [
1560
1560
  e("div", { class: "preview-mix-left" })
1561
1561
  ], -1),
@@ -1572,14 +1572,14 @@ const ue = Ne("menu", () => {
1572
1572
  e("div", Po, [
1573
1573
  L[12] || (L[12] = e("div", { class: "settings-title" }, "主题色", -1)),
1574
1574
  e("div", Ao, [
1575
- (o(), c(K, null, G(Me, (a) => e("div", {
1575
+ (s(), c(K, null, G(Me, (a) => e("div", {
1576
1576
  key: a.value,
1577
- class: J(["color-option", { "is-active": n(r).primaryColor === a.value }]),
1577
+ class: J(["color-option", { "is-active": n(i).primaryColor === a.value }]),
1578
1578
  style: Ie({ backgroundColor: a.value }),
1579
1579
  title: a.label,
1580
1580
  onClick: (p) => fe(a.value)
1581
1581
  }, [
1582
- n(r).primaryColor === a.value ? (o(), O(n(U), {
1582
+ n(i).primaryColor === a.value ? (s(), O(n(U), {
1583
1583
  key: 0,
1584
1584
  name: "check",
1585
1585
  size: 12,
@@ -1603,7 +1603,7 @@ const ue = Ne("menu", () => {
1603
1603
  e("div", Ro, [
1604
1604
  L[16] || (L[16] = e("span", null, "暗黑模式", -1)),
1605
1605
  e("div", {
1606
- class: J(["switch-wrapper", { "is-checked": n(r).isDark }]),
1606
+ class: J(["switch-wrapper", { "is-checked": n(i).isDark }]),
1607
1607
  onClick: xe
1608
1608
  }, [...L[15] || (L[15] = [
1609
1609
  e("span", { class: "switch-core" }, null, -1)
@@ -1660,32 +1660,32 @@ const ue = Ne("menu", () => {
1660
1660
  logoSrc: { default: "/vite.svg" }
1661
1661
  },
1662
1662
  setup(t) {
1663
- const l = t, d = we(), i = me(), s = ue(), r = de(), _ = le(), v = ze(), u = g(""), f = (a, p = "") => {
1663
+ const r = t, d = we(), l = me(), o = ue(), i = de(), v = le(), h = ze(), u = g(""), f = (a, p = "") => {
1664
1664
  const R = [];
1665
1665
  return a.forEach(($) => {
1666
1666
  $.children && $.children.length > 0 ? R.push(...f($.children, $.menuName)) : R.push({ ...$, parentTitle: p, title: $.menuName, path: $.menuUrl });
1667
1667
  }), R;
1668
- }, h = w(() => I.value.trim() ? f(s.menuList).filter(
1668
+ }, _ = w(() => I.value.trim() ? f(o.menuList).filter(
1669
1669
  (p) => p.title.toLowerCase().includes(I.value.toLowerCase())
1670
1670
  ) : []), m = w(() => {
1671
- const a = s.menuList.find((p) => p.menuUrl === u.value);
1671
+ const a = o.menuList.find((p) => p.menuUrl === u.value);
1672
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);
1673
+ }), b = w(() => o.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 : o.menuList.length > 0 && (u.value = o.menuList[0].menuUrl);
1675
1675
  }, D = (a) => {
1676
1676
  u.value = a;
1677
- const p = s.menuList.find((R) => R.menuUrl === a);
1677
+ const p = o.menuList.find((R) => R.menuUrl === a);
1678
1678
  if (p)
1679
1679
  if (p.children && p.children.length > 0) {
1680
1680
  const R = p.children[0].menuUrl;
1681
- d.path !== R && i.push(R);
1681
+ d.path !== R && l.push(R);
1682
1682
  } else
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);
1683
+ d.path !== a && l.push(a);
1684
+ }, W = w(() => i.isDark ? "#1d1e1f" : "#fff"), V = w(() => i.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);
1685
1685
  ye(() => d.path, () => {
1686
- j(), r.setMixSubMenus(m.value);
1687
- }), ye(() => s.menuList, (a) => {
1688
- a && a.length > 0 && (j(), r.setMixSubMenus(m.value));
1686
+ j(), i.setMixSubMenus(m.value);
1687
+ }), ye(() => o.menuList, (a) => {
1688
+ a && a.length > 0 && (j(), i.setMixSubMenus(m.value));
1689
1689
  }, { immediate: !0 });
1690
1690
  const X = /* @__PURE__ */ new Set([
1691
1691
  "arrow-up",
@@ -1827,7 +1827,7 @@ const ue = Ne("menu", () => {
1827
1827
  grid: "grid"
1828
1828
  }[a] || a;
1829
1829
  }, se = (a) => a ? a.charAt(0) : "", ie = (a) => X.has(a), pe = () => {
1830
- r.toggleTheme(), q.value = !1;
1830
+ i.toggleTheme(), q.value = !1;
1831
1831
  }, z = () => {
1832
1832
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1833
1833
  }, oe = () => {
@@ -1839,7 +1839,7 @@ const ue = Ne("menu", () => {
1839
1839
  }, ne = () => {
1840
1840
  E.value = !1, I.value = "";
1841
1841
  }, ve = (a) => {
1842
- i.push(a), ne();
1842
+ l.push(a), ne();
1843
1843
  }, xe = () => {
1844
1844
  q.value = !0;
1845
1845
  }, Ce = (a) => {
@@ -1849,13 +1849,13 @@ const ue = Ne("menu", () => {
1849
1849
  }, $e = () => {
1850
1850
  Ce(!ee.value), q.value = !1;
1851
1851
  }, Le = () => {
1852
- r.toggleTheme(), q.value = !1;
1852
+ i.toggleTheme(), q.value = !1;
1853
1853
  }, Me = [
1854
1854
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1855
1855
  { value: "top", label: "顶部菜单", icon: "menu" },
1856
1856
  { value: "mix", label: "混合菜单", icon: "grid" }
1857
- ], fe = w(() => r.layout), ge = (a) => {
1858
- r.setLayout(a), q.value = !1;
1857
+ ], fe = w(() => i.layout), ge = (a) => {
1858
+ i.setLayout(a), q.value = !1;
1859
1859
  }, T = [
1860
1860
  { value: "#409eff", label: "默认蓝" },
1861
1861
  { value: "#1890ff", label: "科技蓝" },
@@ -1864,13 +1864,13 @@ const ue = Ne("menu", () => {
1864
1864
  { value: "#f5222d", label: "薄暮红" },
1865
1865
  { value: "#722ed1", label: "酱紫" }
1866
1866
  ], k = (a) => {
1867
- r.setPrimaryColor(a), q.value = !1;
1867
+ i.setPrimaryColor(a), q.value = !1;
1868
1868
  }, Q = () => {
1869
- ce(), i.push("/profile");
1869
+ ce(), l.push("/profile");
1870
1870
  }, C = () => {
1871
- ce(), i.push("/change-password");
1871
+ ce(), l.push("/change-password");
1872
1872
  }, S = () => {
1873
- ce(), v.logout(), _.clearUserInfo(), s.clearMenu(), i.push(r.loginPath);
1873
+ ce(), h.logout(), v.clearUserInfo(), o.clearMenu(), l.push(i.loginPath);
1874
1874
  }, L = (a) => {
1875
1875
  Z.value && !Z.value.contains(a.target) && ce(), A.value && !A.value.contains(a.target) && ne();
1876
1876
  }, te = (a) => {
@@ -1882,14 +1882,14 @@ const ue = Ne("menu", () => {
1882
1882
  document.removeEventListener("click", L), document.removeEventListener("fullscreenchange", oe), document.removeEventListener("keydown", te);
1883
1883
  }), (a, p) => {
1884
1884
  var R;
1885
- return o(), c("div", jo, [
1885
+ return s(), c("div", jo, [
1886
1886
  e("div", Wo, [
1887
1887
  e("img", {
1888
- src: l.logoSrc,
1888
+ src: r.logoSrc,
1889
1889
  alt: "Logo",
1890
1890
  class: "mix-top-menu__logo-img"
1891
1891
  }, null, 8, qo),
1892
- e("span", Ho, x(n(r).appName), 1)
1892
+ e("span", Ho, x(n(i).appName), 1)
1893
1893
  ]),
1894
1894
  y(n(Xe), {
1895
1895
  "model-value": u.value,
@@ -1901,18 +1901,18 @@ const ue = Ne("menu", () => {
1901
1901
  onSelect: D
1902
1902
  }, {
1903
1903
  default: M(() => [
1904
- (o(!0), c(K, null, G(n(s).menuList, ($) => (o(), O(n(Se), {
1904
+ (s(!0), c(K, null, G(n(o).menuList, ($) => (s(), O(n(Se), {
1905
1905
  key: $.menuUrl,
1906
1906
  index: $.menuUrl
1907
1907
  }, {
1908
1908
  default: M(() => [
1909
1909
  e("span", Yo, [
1910
- $.menuName !== "首页" ? (o(), c("span", Xo, [
1911
- ie(F($.icon)) ? (o(), O(n(U), {
1910
+ $.menuName !== "首页" ? (s(), c("span", Xo, [
1911
+ ie(F($.icon)) ? (s(), O(n(U), {
1912
1912
  key: 0,
1913
1913
  name: F($.icon),
1914
1914
  size: 16
1915
- }, null, 8, ["name"])) : (o(), c("span", Go, x(se($.menuName)), 1))
1915
+ }, null, 8, ["name"])) : (s(), c("span", Go, x(se($.menuName)), 1))
1916
1916
  ])) : P("", !0),
1917
1917
  e("span", Jo, x($.menuName), 1)
1918
1918
  ])
@@ -1944,24 +1944,24 @@ const ue = Ne("menu", () => {
1944
1944
  ]),
1945
1945
  y(be, { name: "search-dropdown" }, {
1946
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", {
1947
+ E.value && (_.value.length > 0 || I.value) ? (s(), c("div", Qo, [
1948
+ _.value.length > 0 ? (s(), c("div", en, [
1949
+ (s(!0), c(K, null, G(_.value, ($) => (s(), c("div", {
1950
1950
  key: $.path,
1951
1951
  class: "mix-top-menu__search-item",
1952
1952
  onClick: (Ze) => ve($.path)
1953
1953
  }, [
1954
- $.title !== "首页" ? (o(), c("span", sn, [
1955
- ie(F($.icon)) ? (o(), O(n(U), {
1954
+ $.title !== "首页" ? (s(), c("span", sn, [
1955
+ ie(F($.icon)) ? (s(), O(n(U), {
1956
1956
  key: 0,
1957
1957
  name: F($.icon),
1958
1958
  size: 16
1959
- }, null, 8, ["name"])) : (o(), c("span", on, x(se($.title)), 1))
1959
+ }, null, 8, ["name"])) : (s(), c("span", on, x(se($.title)), 1))
1960
1960
  ])) : P("", !0),
1961
1961
  e("span", nn, x($.title), 1),
1962
- $.parentTitle ? (o(), c("span", an, x($.parentTitle), 1)) : P("", !0)
1962
+ $.parentTitle ? (s(), c("span", an, x($.parentTitle), 1)) : P("", !0)
1963
1963
  ], 8, tn))), 128))
1964
- ])) : (o(), c("div", ln, " 未找到匹配的菜单 "))
1964
+ ])) : (s(), c("div", ln, " 未找到匹配的菜单 "))
1965
1965
  ])) : P("", !0)
1966
1966
  ]),
1967
1967
  _: 1
@@ -1993,7 +1993,7 @@ const ue = Ne("menu", () => {
1993
1993
  title: "切换主题"
1994
1994
  }, [
1995
1995
  y(n(U), {
1996
- name: n(r).isDark ? "sun" : "moon",
1996
+ name: n(i).isDark ? "sun" : "moon",
1997
1997
  size: 16
1998
1998
  }, null, 8, ["name"])
1999
1999
  ]),
@@ -2007,9 +2007,9 @@ const ue = Ne("menu", () => {
2007
2007
  onClick: Ee(_e, ["stop"])
2008
2008
  }, [
2009
2009
  e("div", cn, [
2010
- e("span", null, x(((R = n(_).userName) == null ? void 0 : R.charAt(0)) || "U"), 1)
2010
+ e("span", null, x(((R = n(v).userName) == null ? void 0 : R.charAt(0)) || "U"), 1)
2011
2011
  ]),
2012
- e("span", dn, x(n(_).userName), 1),
2012
+ e("span", dn, x(n(v).userName), 1),
2013
2013
  e("span", {
2014
2014
  class: J(["mix-top-menu__user-arrow", { "is-active": H.value }])
2015
2015
  }, "▼", 2)
@@ -2018,14 +2018,14 @@ const ue = Ne("menu", () => {
2018
2018
  default: M(() => {
2019
2019
  var $;
2020
2020
  return [
2021
- H.value ? (o(), c("div", un, [
2021
+ H.value ? (s(), c("div", un, [
2022
2022
  e("div", mn, [
2023
2023
  e("div", pn, [
2024
- e("span", null, x((($ = n(_).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2024
+ e("span", null, x((($ = n(v).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2025
2025
  ]),
2026
2026
  e("div", vn, [
2027
- e("div", hn, x(n(_).userName), 1),
2028
- e("div", _n, x(n(_).departmentName), 1)
2027
+ e("div", hn, x(n(v).userName), 1),
2028
+ e("div", _n, x(n(v).departmentName), 1)
2029
2029
  ])
2030
2030
  ]),
2031
2031
  p[7] || (p[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
@@ -2081,22 +2081,22 @@ const ue = Ne("menu", () => {
2081
2081
  e("div", yn, [
2082
2082
  p[11] || (p[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
2083
2083
  e("div", bn, [
2084
- (o(), c(K, null, G(Me, ($) => e("div", {
2084
+ (s(), c(K, null, G(Me, ($) => e("div", {
2085
2085
  key: $.value,
2086
2086
  class: J(["layout-option", { "is-active": fe.value === $.value }]),
2087
2087
  onClick: (Ze) => ge($.value)
2088
2088
  }, [
2089
2089
  e("div", wn, [
2090
- $.value === "sidebar" ? (o(), c("div", xn, [...p[8] || (p[8] = [
2090
+ $.value === "sidebar" ? (s(), c("div", xn, [...p[8] || (p[8] = [
2091
2091
  e("div", { class: "preview-aside" }, null, -1),
2092
2092
  e("div", { class: "preview-main" }, [
2093
2093
  e("div", { class: "preview-header" }),
2094
2094
  e("div", { class: "preview-content" })
2095
2095
  ], -1)
2096
- ])])) : $.value === "top" ? (o(), c("div", Cn, [...p[9] || (p[9] = [
2096
+ ])])) : $.value === "top" ? (s(), c("div", Cn, [...p[9] || (p[9] = [
2097
2097
  e("div", { class: "preview-header-full" }, null, -1),
2098
2098
  e("div", { class: "preview-content-full" }, null, -1)
2099
- ])])) : (o(), c("div", $n, [...p[10] || (p[10] = [
2099
+ ])])) : (s(), c("div", $n, [...p[10] || (p[10] = [
2100
2100
  e("div", { class: "preview-header-mix" }, [
2101
2101
  e("div", { class: "preview-mix-left" })
2102
2102
  ], -1),
@@ -2113,14 +2113,14 @@ const ue = Ne("menu", () => {
2113
2113
  e("div", Mn, [
2114
2114
  p[12] || (p[12] = e("div", { class: "settings-title" }, "主题色", -1)),
2115
2115
  e("div", Sn, [
2116
- (o(), c(K, null, G(T, ($) => e("div", {
2116
+ (s(), c(K, null, G(T, ($) => e("div", {
2117
2117
  key: $.value,
2118
- class: J(["color-option", { "is-active": n(r).primaryColor === $.value }]),
2118
+ class: J(["color-option", { "is-active": n(i).primaryColor === $.value }]),
2119
2119
  style: Ie({ backgroundColor: $.value }),
2120
2120
  title: $.label,
2121
2121
  onClick: (Ze) => k($.value)
2122
2122
  }, [
2123
- n(r).primaryColor === $.value ? (o(), O(n(U), {
2123
+ n(i).primaryColor === $.value ? (s(), O(n(U), {
2124
2124
  key: 0,
2125
2125
  name: "check",
2126
2126
  size: 12,
@@ -2144,7 +2144,7 @@ const ue = Ne("menu", () => {
2144
2144
  e("div", Tn, [
2145
2145
  p[16] || (p[16] = e("span", null, "暗黑模式", -1)),
2146
2146
  e("div", {
2147
- class: J(["switch-wrapper", { "is-checked": n(r).isDark }]),
2147
+ class: J(["switch-wrapper", { "is-checked": n(i).isDark }]),
2148
2148
  onClick: Le
2149
2149
  }, [...p[15] || (p[15] = [
2150
2150
  e("span", { class: "switch-core" }, null, -1)
@@ -2174,22 +2174,22 @@ const ue = Ne("menu", () => {
2174
2174
  logoSrc: { default: "/vite.svg" }
2175
2175
  },
2176
2176
  setup(t) {
2177
- const l = t, d = de(), i = ue(), s = w(
2177
+ const r = t, d = de(), l = ue(), o = w(
2178
2178
  () => d.isCollapsed ? "64px" : "210px"
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) => {
2179
+ ), i = w(() => d.layout), v = w(() => i.value === "mix"), h = w(() => i.value === "sidebar" ? l.menuList : i.value === "mix" ? d.mixSubMenus : []), u = w(() => v.value ? h.value.length > 0 : !1);
2180
+ return (f, _) => {
2181
2181
  const m = lt("router-view");
2182
- return o(), c(K, null, [
2183
- r.value === "sidebar" ? (o(), c("div", An, [
2182
+ return s(), c(K, null, [
2183
+ i.value === "sidebar" ? (s(), c("div", An, [
2184
2184
  e("aside", {
2185
2185
  class: "layout__aside",
2186
- style: Ie({ width: s.value })
2186
+ style: Ie({ width: o.value })
2187
2187
  }, [
2188
2188
  y(et, {
2189
- "menu-list": v.value,
2189
+ "menu-list": h.value,
2190
2190
  "show-logo": !0,
2191
2191
  "show-user": !0,
2192
- "logo-src": l.logoSrc
2192
+ "logo-src": r.logoSrc
2193
2193
  }, null, 8, ["menu-list", "logo-src"])
2194
2194
  ], 4),
2195
2195
  e("div", Dn, [
@@ -2201,10 +2201,10 @@ const ue = Ne("menu", () => {
2201
2201
  ])
2202
2202
  ])
2203
2203
  ])) : P("", !0),
2204
- r.value === "top" ? (o(), c("div", Bn, [
2204
+ i.value === "top" ? (s(), c("div", Bn, [
2205
2205
  e("div", Rn, [
2206
2206
  y(Ko, {
2207
- "logo-src": l.logoSrc
2207
+ "logo-src": r.logoSrc
2208
2208
  }, null, 8, ["logo-src"])
2209
2209
  ]),
2210
2210
  e("div", Fn, [
@@ -2213,20 +2213,20 @@ const ue = Ne("menu", () => {
2213
2213
  ])
2214
2214
  ])
2215
2215
  ])) : P("", !0),
2216
- r.value === "mix" ? (o(), c("div", jn, [
2216
+ i.value === "mix" ? (s(), c("div", jn, [
2217
2217
  e("div", Wn, [
2218
2218
  y(Pn, {
2219
- "logo-src": l.logoSrc
2219
+ "logo-src": r.logoSrc
2220
2220
  }, null, 8, ["logo-src"])
2221
2221
  ]),
2222
2222
  e("div", qn, [
2223
- u.value ? (o(), c("aside", {
2223
+ u.value ? (s(), c("aside", {
2224
2224
  key: 0,
2225
2225
  class: "layout__aside",
2226
- style: Ie({ width: s.value })
2226
+ style: Ie({ width: o.value })
2227
2227
  }, [
2228
2228
  y(et, {
2229
- "menu-list": v.value,
2229
+ "menu-list": h.value,
2230
2230
  "show-logo": !1,
2231
2231
  "show-user": !1
2232
2232
  }, null, 8, ["menu-list"])
@@ -2245,35 +2245,35 @@ const ue = Ne("menu", () => {
2245
2245
  }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Zn = ["onClick"], Qn = /* @__PURE__ */ ae({
2246
2246
  __name: "Tabs",
2247
2247
  setup(t) {
2248
- const l = we(), d = me(), i = w(() => {
2249
- const v = [];
2250
- return l.matched.forEach((u) => {
2248
+ const r = we(), d = me(), l = w(() => {
2249
+ const h = [];
2250
+ return r.matched.forEach((u) => {
2251
2251
  var f;
2252
- (f = u.meta) != null && f.affix && v.push({
2252
+ (f = u.meta) != null && f.affix && h.push({
2253
2253
  name: u.name,
2254
2254
  title: u.meta.title,
2255
2255
  path: u.path,
2256
2256
  affix: !0
2257
2257
  });
2258
- }), v;
2259
- }), s = w(() => l.path), r = (v) => {
2260
- d.push(v);
2261
- }, _ = (v) => {
2262
- const u = i.value.find((f) => f.path === v);
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);
2258
+ }), h;
2259
+ }), o = w(() => r.path), i = (h) => {
2260
+ d.push(h);
2261
+ }, v = (h) => {
2262
+ const u = l.value.find((f) => f.path === h);
2263
+ if (!(u != null && u.affix) && h === o.value) {
2264
+ const f = l.value.findIndex((m) => m.path === h), _ = l.value[f - 1] || l.value[f + 1];
2265
+ _ && d.push(_.path);
2266
2266
  }
2267
2267
  };
2268
- return (v, u) => (o(), c("div", Gn, [
2268
+ return (h, u) => (s(), c("div", Gn, [
2269
2269
  y(n(kt), {
2270
- modelValue: s.value,
2271
- "onUpdate:modelValue": u[0] || (u[0] = (f) => s.value = f),
2270
+ modelValue: o.value,
2271
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => o.value = f),
2272
2272
  type: "card",
2273
- onTabClick: r
2273
+ onTabClick: i
2274
2274
  }, {
2275
2275
  default: M(() => [
2276
- (o(!0), c(K, null, G(i.value, (f) => (o(), O(n(wt), {
2276
+ (s(!0), c(K, null, G(l.value, (f) => (s(), O(n(wt), {
2277
2277
  key: f.path,
2278
2278
  name: f.path,
2279
2279
  label: f.title,
@@ -2282,10 +2282,10 @@ const ue = Ne("menu", () => {
2282
2282
  label: M(() => [
2283
2283
  e("span", Jn, [
2284
2284
  he(x(f.title) + " ", 1),
2285
- f.affix ? P("", !0) : (o(), c("span", {
2285
+ f.affix ? P("", !0) : (s(), c("span", {
2286
2286
  key: 0,
2287
2287
  class: "tab-close",
2288
- onClick: Ee((h) => _(f.path), ["stop"])
2288
+ onClick: Ee((_) => v(f.path), ["stop"])
2289
2289
  }, " ✕ ", 8, Zn))
2290
2290
  ])
2291
2291
  ]),
@@ -2297,18 +2297,18 @@ const ue = Ne("menu", () => {
2297
2297
  ]));
2298
2298
  }
2299
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] = [
2300
+ function sa(t, r) {
2301
+ return s(), c("div", ta, [...r[0] || (r[0] = [
2302
2302
  e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2303
2303
  ])]);
2304
2304
  }
2305
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({
2306
2306
  __name: "index",
2307
2307
  setup(t) {
2308
- const l = me(), d = we(), i = g(!1), s = g(!1), r = qe({
2308
+ const r = me(), d = we(), l = g(!1), o = g(!1), i = qe({
2309
2309
  uid: "",
2310
2310
  password: ""
2311
- }), _ = {
2311
+ }), v = {
2312
2312
  uid: [
2313
2313
  { required: !0, message: "请输入用户名", trigger: "blur" }
2314
2314
  ],
@@ -2316,39 +2316,39 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2316
2316
  { required: !0, message: "请输入密码", trigger: "blur" },
2317
2317
  { min: 6, message: "密码长度至少6位", trigger: "blur" }
2318
2318
  ]
2319
- }, v = g(), u = async () => {
2319
+ }, h = g(), u = async () => {
2320
2320
  var f;
2321
2321
  try {
2322
- await ((f = v.value) == null ? void 0 : f.validate()), i.value = !0;
2323
- const h = await pt({
2322
+ await ((f = h.value) == null ? void 0 : f.validate()), l.value = !0;
2323
+ const _ = await pt({
2324
2324
  appId: Fe(),
2325
2325
  clientId: at(),
2326
- uid: r.uid,
2327
- password: r.password,
2326
+ uid: i.uid,
2327
+ password: i.password,
2328
2328
  code: !0
2329
2329
  });
2330
- nt(h), xt.success("登录成功");
2330
+ nt(_), xt.success("登录成功");
2331
2331
  const m = d.query.redirect || "/";
2332
- l.push(m);
2333
- } catch (h) {
2334
- console.error("登录失败:", h);
2332
+ r.push(m);
2333
+ } catch (_) {
2334
+ console.error("登录失败:", _);
2335
2335
  } finally {
2336
- i.value = !1;
2336
+ l.value = !1;
2337
2337
  }
2338
2338
  };
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)),
2339
+ return (f, _) => (s(), c("div", oa, [
2340
+ _[10] || (_[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
2341
  e("div", na, [
2342
2342
  e("div", aa, [
2343
- h[7] || (h[7] = e("div", { class: "form-header" }, [
2343
+ _[7] || (_[7] = e("div", { class: "form-header" }, [
2344
2344
  e("h2", null, "欢迎登录"),
2345
2345
  e("p", null, "请输入您的账户信息")
2346
2346
  ], -1)),
2347
2347
  y(n(Ct), {
2348
2348
  ref_key: "formRef",
2349
- ref: v,
2350
- model: r,
2351
- rules: _,
2349
+ ref: h,
2350
+ model: i,
2351
+ rules: v,
2352
2352
  class: "login-form",
2353
2353
  "label-width": "0"
2354
2354
  }, {
@@ -2356,10 +2356,10 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2356
2356
  y(n(Pe), { prop: "uid" }, {
2357
2357
  default: M(() => [
2358
2358
  e("div", la, [
2359
- h[3] || (h[3] = e("label", { class: "input-label" }, "用户名", -1)),
2359
+ _[3] || (_[3] = e("label", { class: "input-label" }, "用户名", -1)),
2360
2360
  y(n(Qe), {
2361
- modelValue: r.uid,
2362
- "onUpdate:modelValue": h[0] || (h[0] = (m) => r.uid = m),
2361
+ modelValue: i.uid,
2362
+ "onUpdate:modelValue": _[0] || (_[0] = (m) => i.uid = m),
2363
2363
  placeholder: "请输入用户名",
2364
2364
  size: "large"
2365
2365
  }, {
@@ -2378,10 +2378,10 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2378
2378
  y(n(Pe), { prop: "password" }, {
2379
2379
  default: M(() => [
2380
2380
  e("div", ra, [
2381
- h[4] || (h[4] = e("label", { class: "input-label" }, "密码", -1)),
2381
+ _[4] || (_[4] = e("label", { class: "input-label" }, "密码", -1)),
2382
2382
  y(n(Qe), {
2383
- modelValue: r.password,
2384
- "onUpdate:modelValue": h[1] || (h[1] = (m) => r.password = m),
2383
+ modelValue: i.password,
2384
+ "onUpdate:modelValue": _[1] || (_[1] = (m) => i.password = m),
2385
2385
  type: "password",
2386
2386
  placeholder: "请输入密码",
2387
2387
  size: "large",
@@ -2402,15 +2402,15 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2402
2402
  }),
2403
2403
  e("div", ia, [
2404
2404
  y(n($t), {
2405
- modelValue: s.value,
2406
- "onUpdate:modelValue": h[2] || (h[2] = (m) => s.value = m)
2405
+ modelValue: o.value,
2406
+ "onUpdate:modelValue": _[2] || (_[2] = (m) => o.value = m)
2407
2407
  }, {
2408
- default: M(() => [...h[5] || (h[5] = [
2408
+ default: M(() => [..._[5] || (_[5] = [
2409
2409
  he("记住我", -1)
2410
2410
  ])]),
2411
2411
  _: 1
2412
2412
  }, 8, ["modelValue"]),
2413
- h[6] || (h[6] = e("a", {
2413
+ _[6] || (_[6] = e("a", {
2414
2414
  href: "#",
2415
2415
  class: "forgot-link"
2416
2416
  }, "忘记密码?", -1))
@@ -2420,12 +2420,12 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2420
2420
  y(n(ke), {
2421
2421
  type: "primary",
2422
2422
  size: "large",
2423
- loading: i.value,
2423
+ loading: l.value,
2424
2424
  class: "login-btn",
2425
2425
  onClick: u
2426
2426
  }, {
2427
2427
  default: M(() => [
2428
- i.value ? (o(), c("span", da, "登录中...")) : (o(), c("span", ca, "登 录"))
2428
+ l.value ? (s(), c("span", da, "登录中...")) : (s(), c("span", ca, "登 录"))
2429
2429
  ]),
2430
2430
  _: 1
2431
2431
  }, 8, ["loading"])
@@ -2435,9 +2435,9 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2435
2435
  ]),
2436
2436
  _: 1
2437
2437
  }, 8, ["model"]),
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))
2438
+ _[8] || (_[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))
2439
2439
  ]),
2440
- h[9] || (h[9] = e("div", { class: "copyright" }, [
2440
+ _[9] || (_[9] = e("div", { class: "copyright" }, [
2441
2441
  e("p", null, "© 2024 XTO Team. All rights reserved.")
2442
2442
  ], -1))
2443
2443
  ])
@@ -2449,25 +2449,25 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2449
2449
  }, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, ha = { class: "error-container" }, _a = { class: "error-content" }, fa = { class: "error-actions" }, ga = /* @__PURE__ */ ae({
2450
2450
  __name: "404",
2451
2451
  setup(t) {
2452
- const l = me(), d = () => {
2453
- l.push("/");
2452
+ const r = me(), d = () => {
2453
+ r.push("/");
2454
2454
  };
2455
- return (i, s) => (o(), c("div", va, [
2455
+ return (l, o) => (s(), c("div", va, [
2456
2456
  e("div", ha, [
2457
- s[7] || (s[7] = e("div", { class: "error-bg" }, [
2457
+ o[7] || (o[7] = e("div", { class: "error-bg" }, [
2458
2458
  e("div", { class: "bg-circle circle-1" }),
2459
2459
  e("div", { class: "bg-circle circle-2" }),
2460
2460
  e("div", { class: "bg-circle circle-3" })
2461
2461
  ], -1)),
2462
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)),
2463
+ o[5] || (o[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
2464
  e("div", fa, [
2465
2465
  y(n(ke), {
2466
2466
  type: "primary",
2467
2467
  size: "large",
2468
2468
  onClick: d
2469
2469
  }, {
2470
- icon: M(() => [...s[1] || (s[1] = [
2470
+ icon: M(() => [...o[1] || (o[1] = [
2471
2471
  e("svg", {
2472
2472
  viewBox: "0 0 24 24",
2473
2473
  fill: "none",
@@ -2479,15 +2479,15 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2479
2479
  ], -1)
2480
2480
  ])]),
2481
2481
  default: M(() => [
2482
- s[2] || (s[2] = he(" 返回首页 ", -1))
2482
+ o[2] || (o[2] = he(" 返回首页 ", -1))
2483
2483
  ]),
2484
2484
  _: 1
2485
2485
  }),
2486
2486
  y(n(ke), {
2487
2487
  size: "large",
2488
- onClick: s[0] || (s[0] = (r) => n(l).go(-1))
2488
+ onClick: o[0] || (o[0] = (i) => n(r).go(-1))
2489
2489
  }, {
2490
- icon: M(() => [...s[3] || (s[3] = [
2490
+ icon: M(() => [...o[3] || (o[3] = [
2491
2491
  e("svg", {
2492
2492
  viewBox: "0 0 24 24",
2493
2493
  fill: "none",
@@ -2498,12 +2498,12 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2498
2498
  ], -1)
2499
2499
  ])]),
2500
2500
  default: M(() => [
2501
- s[4] || (s[4] = he(" 返回上一页 ", -1))
2501
+ o[4] || (o[4] = he(" 返回上一页 ", -1))
2502
2502
  ]),
2503
2503
  _: 1
2504
2504
  })
2505
2505
  ]),
2506
- s[6] || (s[6] = e("div", { class: "error-tip" }, [
2506
+ o[6] || (o[6] = e("div", { class: "error-tip" }, [
2507
2507
  e("p", null, "您可以尝试:"),
2508
2508
  e("ul", null, [
2509
2509
  e("li", null, "检查您输入的网址是否正确"),
@@ -2521,25 +2521,25 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2521
2521
  }, Symbol.toStringTag, { value: "Module" })), ba = { class: "error-page" }, ka = { class: "error-container" }, wa = { class: "error-content" }, xa = { class: "error-actions" }, Ca = /* @__PURE__ */ ae({
2522
2522
  __name: "403",
2523
2523
  setup(t) {
2524
- const l = me(), d = () => {
2525
- l.push("/");
2524
+ const r = me(), d = () => {
2525
+ r.push("/");
2526
2526
  };
2527
- return (i, s) => (o(), c("div", ba, [
2527
+ return (l, o) => (s(), c("div", ba, [
2528
2528
  e("div", ka, [
2529
- s[7] || (s[7] = e("div", { class: "error-bg" }, [
2529
+ o[7] || (o[7] = e("div", { class: "error-bg" }, [
2530
2530
  e("div", { class: "bg-circle circle-1" }),
2531
2531
  e("div", { class: "bg-circle circle-2" }),
2532
2532
  e("div", { class: "bg-circle circle-3" })
2533
2533
  ], -1)),
2534
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)),
2535
+ o[5] || (o[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
2536
  e("div", xa, [
2537
2537
  y(n(ke), {
2538
2538
  type: "primary",
2539
2539
  size: "large",
2540
2540
  onClick: d
2541
2541
  }, {
2542
- icon: M(() => [...s[1] || (s[1] = [
2542
+ icon: M(() => [...o[1] || (o[1] = [
2543
2543
  e("svg", {
2544
2544
  viewBox: "0 0 24 24",
2545
2545
  fill: "none",
@@ -2551,15 +2551,15 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2551
2551
  ], -1)
2552
2552
  ])]),
2553
2553
  default: M(() => [
2554
- s[2] || (s[2] = he(" 返回首页 ", -1))
2554
+ o[2] || (o[2] = he(" 返回首页 ", -1))
2555
2555
  ]),
2556
2556
  _: 1
2557
2557
  }),
2558
2558
  y(n(ke), {
2559
2559
  size: "large",
2560
- onClick: s[0] || (s[0] = (r) => n(l).go(-1))
2560
+ onClick: o[0] || (o[0] = (i) => n(r).go(-1))
2561
2561
  }, {
2562
- icon: M(() => [...s[3] || (s[3] = [
2562
+ icon: M(() => [...o[3] || (o[3] = [
2563
2563
  e("svg", {
2564
2564
  viewBox: "0 0 24 24",
2565
2565
  fill: "none",
@@ -2570,12 +2570,12 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2570
2570
  ], -1)
2571
2571
  ])]),
2572
2572
  default: M(() => [
2573
- s[4] || (s[4] = he(" 返回上一页 ", -1))
2573
+ o[4] || (o[4] = he(" 返回上一页 ", -1))
2574
2574
  ]),
2575
2575
  _: 1
2576
2576
  })
2577
2577
  ]),
2578
- s[6] || (s[6] = e("div", { class: "error-tip" }, [
2578
+ o[6] || (o[6] = e("div", { class: "error-tip" }, [
2579
2579
  e("p", null, "可能的原因:"),
2580
2580
  e("ul", null, [
2581
2581
  e("li", null, "您的账号权限不足"),
@@ -2589,16 +2589,16 @@ const Fa = /* @__PURE__ */ re(ea, [["render", sa], ["__scopeId", "data-v-4852826
2589
2589
  }
2590
2590
  }), Ka = /* @__PURE__ */ re(Ca, [["__scopeId", "data-v-d167f981"]]);
2591
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);
2592
+ const t = de(), r = le(), d = ze(), l = w(() => r.userName || ""), o = w(() => r.userInfo), i = w(() => t.appName), v = w(() => d.isLoggedIn), h = w(() => t.isDark), u = w(() => t.theme), f = w(() => t.isCollapsed), _ = w(() => t.layout);
2593
2593
  return {
2594
- userName: i,
2595
- userInfo: s,
2596
- appName: r,
2597
- isLoggedIn: _,
2598
- isDark: v,
2594
+ userName: l,
2595
+ userInfo: o,
2596
+ appName: i,
2597
+ isLoggedIn: v,
2598
+ isDark: h,
2599
2599
  theme: u,
2600
2600
  isCollapsed: f,
2601
- layout: h,
2601
+ layout: _,
2602
2602
  toggleTheme: () => {
2603
2603
  t.toggleTheme();
2604
2604
  },
@@ -2613,84 +2613,84 @@ function Wa() {
2613
2613
  isLoggedIn: w(() => t.isLoggedIn)
2614
2614
  };
2615
2615
  }
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) => {
2620
- Object.assign(r, D), u.value = !0, v.value = !0;
2616
+ function qa(t, r = {}) {
2617
+ const { rules: d, onSubmit: l } = r, o = g(), i = qe({ ...t }), v = g(!1), h = g(!1), u = g(!1), f = () => {
2618
+ b(), u.value = !1, h.value = !0;
2619
+ }, _ = (D) => {
2620
+ Object.assign(i, D), u.value = !0, h.value = !0;
2621
2621
  }, m = () => {
2622
- v.value = !1, b();
2622
+ h.value = !1, b();
2623
2623
  }, b = () => {
2624
2624
  var D;
2625
2625
  Object.keys(t).forEach((W) => {
2626
- r[W] = t[W];
2627
- }), (D = s.value) == null || D.resetFields();
2626
+ i[W] = t[W];
2627
+ }), (D = o.value) == null || D.resetFields();
2628
2628
  };
2629
2629
  return {
2630
- formRef: s,
2631
- formData: r,
2630
+ formRef: o,
2631
+ formData: i,
2632
2632
  rules: d,
2633
- loading: _,
2634
- visible: v,
2633
+ loading: v,
2634
+ visible: h,
2635
2635
  isEdit: u,
2636
2636
  openAdd: f,
2637
- openEdit: h,
2637
+ openEdit: _,
2638
2638
  close: m,
2639
2639
  resetForm: b,
2640
2640
  handleSubmit: async () => {
2641
2641
  var D;
2642
2642
  try {
2643
- await ((D = s.value) == null ? void 0 : D.validate()), _.value = !0, await (i == null ? void 0 : i(r)), m();
2643
+ await ((D = o.value) == null ? void 0 : D.validate()), v.value = !0, await (l == null ? void 0 : l(i)), m();
2644
2644
  } catch (W) {
2645
2645
  console.error(W);
2646
2646
  } finally {
2647
- _.value = !1;
2647
+ v.value = !1;
2648
2648
  }
2649
2649
  }
2650
2650
  };
2651
2651
  }
2652
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 () => {
2654
- i.value = !0;
2653
+ const { fetchData: r, defaultPageSize: d = 10 } = t, l = g(!1), o = g([]), i = g(0), v = g(1), h = g(d), u = qe({}), f = async () => {
2654
+ l.value = !0;
2655
2655
  try {
2656
2656
  const V = {
2657
2657
  ...u,
2658
- page: _.value,
2659
- pageSize: v.value
2660
- }, B = await l(V);
2661
- s.value = B.list, r.value = B.total;
2658
+ page: v.value,
2659
+ pageSize: h.value
2660
+ }, B = await r(V);
2661
+ o.value = B.list, i.value = B.total;
2662
2662
  } catch (V) {
2663
2663
  console.error(V);
2664
2664
  } finally {
2665
- i.value = !1;
2665
+ l.value = !1;
2666
2666
  }
2667
- }, h = () => {
2668
- _.value = 1, f();
2667
+ }, _ = () => {
2668
+ v.value = 1, f();
2669
2669
  }, m = () => {
2670
2670
  Object.keys(u).forEach((V) => {
2671
2671
  u[V] = void 0;
2672
- }), _.value = 1, f();
2672
+ }), v.value = 1, f();
2673
2673
  }, b = (V) => {
2674
- _.value = V, f();
2674
+ v.value = V, f();
2675
2675
  }, j = (V) => {
2676
- v.value = V, _.value = 1, f();
2676
+ h.value = V, v.value = 1, f();
2677
2677
  }, D = () => {
2678
2678
  f();
2679
2679
  }, W = w(() => ({
2680
- current: _.value,
2681
- pageSize: v.value,
2682
- total: r.value
2680
+ current: v.value,
2681
+ pageSize: h.value,
2682
+ total: i.value
2683
2683
  }));
2684
2684
  return {
2685
- loading: i,
2686
- data: s,
2687
- total: r,
2688
- currentPage: _,
2689
- pageSize: v,
2685
+ loading: l,
2686
+ data: o,
2687
+ total: i,
2688
+ currentPage: v,
2689
+ pageSize: h,
2690
2690
  searchParams: u,
2691
2691
  pagination: W,
2692
2692
  getData: f,
2693
- handleSearch: h,
2693
+ handleSearch: _,
2694
2694
  handleReset: m,
2695
2695
  handlePageChange: b,
2696
2696
  handleSizeChange: j,
@@ -2698,26 +2698,26 @@ function Ha(t) {
2698
2698
  };
2699
2699
  }
2700
2700
  const Je = Ne("locale", () => {
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);
2701
+ const t = N.get("locale") || "zh-CN", r = Lt(t), d = g(t), l = Mt(), { t: o, messages: i, setLocale: v, mergeMessages: h } = St(), u = w(() => {
2702
+ const b = l.find((j) => j.code === d.value);
2703
2703
  return (b == null ? void 0 : b.name) || d.value;
2704
2704
  });
2705
2705
  return {
2706
2706
  locale: d,
2707
2707
  localeName: u,
2708
- locales: i,
2709
- messages: r,
2710
- t: s,
2708
+ locales: l,
2709
+ messages: i,
2710
+ t: o,
2711
2711
  changeLocale: (b) => {
2712
- d.value = b, _(b), N.set("locale", b), l.setLocale(b);
2712
+ d.value = b, v(b), N.set("locale", b), r.setLocale(b);
2713
2713
  },
2714
2714
  addMessages: (b) => {
2715
- v(b);
2715
+ h(b);
2716
2716
  },
2717
2717
  initLocale: () => {
2718
- _(t);
2718
+ v(t);
2719
2719
  },
2720
- provider: l
2720
+ provider: r
2721
2721
  };
2722
2722
  }), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2723
2723
  __proto__: null,
@@ -2746,8 +2746,8 @@ function Xa() {
2746
2746
  return Je().t;
2747
2747
  }
2748
2748
  function Ga(t) {
2749
- const l = le(), d = ue();
2750
- return l.isLoggedIn ? d.hasPermission(t) : !1;
2749
+ const r = le(), d = ue();
2750
+ return r.isLoggedIn ? d.hasPermission(t) : !1;
2751
2751
  }
2752
2752
  function Ja(t) {
2753
2753
  return le().isLoggedIn;
@@ -2774,7 +2774,7 @@ const dt = [
2774
2774
  {
2775
2775
  path: "/dashboard",
2776
2776
  name: "Dashboard",
2777
- component: () => import("./index-DdACCkye.js"),
2777
+ component: () => import("./index-x7bKZmey.js"),
2778
2778
  meta: {
2779
2779
  title: "仪表盘",
2780
2780
  icon: "dashboard",
@@ -2785,7 +2785,7 @@ const dt = [
2785
2785
  {
2786
2786
  path: "/system/user",
2787
2787
  name: "SystemUser",
2788
- component: () => import("./index-BsPaXQak.js"),
2788
+ component: () => import("./index-Ci9SM-gg.js"),
2789
2789
  meta: {
2790
2790
  title: "用户管理",
2791
2791
  icon: "user",
@@ -2795,7 +2795,7 @@ const dt = [
2795
2795
  {
2796
2796
  path: "/system/role",
2797
2797
  name: "SystemRole",
2798
- component: () => import("./index-BlN5yXBT.js"),
2798
+ component: () => import("./index-j1GPEQjY.js"),
2799
2799
  meta: {
2800
2800
  title: "角色管理",
2801
2801
  icon: "role",
@@ -2805,7 +2805,7 @@ const dt = [
2805
2805
  {
2806
2806
  path: "/system/menu",
2807
2807
  name: "SystemMenu",
2808
- component: () => import("./index-DEChud2_.js"),
2808
+ component: () => import("./index-HtulbTHk.js"),
2809
2809
  meta: {
2810
2810
  title: "菜单管理",
2811
2811
  icon: "menu",
@@ -2827,7 +2827,7 @@ const dt = [
2827
2827
  {
2828
2828
  path: "/dashboard",
2829
2829
  name: "Dashboard",
2830
- component: () => import("./index-DdACCkye.js"),
2830
+ component: () => import("./index-x7bKZmey.js"),
2831
2831
  meta: {
2832
2832
  title: "仪表盘",
2833
2833
  icon: "dashboard",
@@ -2847,7 +2847,7 @@ const dt = [
2847
2847
  {
2848
2848
  path: "user",
2849
2849
  name: "SystemUser",
2850
- component: () => import("./index-BsPaXQak.js"),
2850
+ component: () => import("./index-Ci9SM-gg.js"),
2851
2851
  meta: {
2852
2852
  title: "用户管理",
2853
2853
  icon: "user",
@@ -2857,7 +2857,7 @@ const dt = [
2857
2857
  {
2858
2858
  path: "role",
2859
2859
  name: "SystemRole",
2860
- component: () => import("./index-BlN5yXBT.js"),
2860
+ component: () => import("./index-j1GPEQjY.js"),
2861
2861
  meta: {
2862
2862
  title: "角色管理",
2863
2863
  icon: "role",
@@ -2867,7 +2867,7 @@ const dt = [
2867
2867
  {
2868
2868
  path: "menu",
2869
2869
  name: "SystemMenu",
2870
- component: () => import("./index-DEChud2_.js"),
2870
+ component: () => import("./index-HtulbTHk.js"),
2871
2871
  meta: {
2872
2872
  title: "菜单管理",
2873
2873
  icon: "menu",
@@ -2929,14 +2929,14 @@ const dt = [
2929
2929
  routes: [...dt, ut],
2930
2930
  scrollBehavior: () => ({ left: 0, top: 0 })
2931
2931
  }), Ma = ["/login"];
2932
- mt.beforeEach(async (t, l, d) => {
2933
- const i = de();
2934
- if (i.initTheme(), st())
2932
+ mt.beforeEach(async (t, r, d) => {
2933
+ const l = de();
2934
+ if (l.initTheme(), st())
2935
2935
  if (t.path === "/login")
2936
2936
  d({ path: "/" });
2937
2937
  else {
2938
- const s = le();
2939
- s.isLoggedIn || (s.setUserInfo({
2938
+ const o = le();
2939
+ o.isLoggedIn || (o.setUserInfo({
2940
2940
  appId: Fe(),
2941
2941
  userId: "1",
2942
2942
  userName: "管理员",
@@ -2945,7 +2945,7 @@ mt.beforeEach(async (t, l, d) => {
2945
2945
  mobilePhone: "13800138000",
2946
2946
  positionName: "管理员",
2947
2947
  avatar: ""
2948
- }), ue().setMenuList(La)), t.name && t.meta.keepAlive && i.addCachedView(t.name), d();
2948
+ }), ue().setMenuList(La)), t.name && t.meta.keepAlive && l.addCachedView(t.name), d();
2949
2949
  }
2950
2950
  else
2951
2951
  Ma.includes(t.path) ? d() : d("/login");
@@ -2957,8 +2957,8 @@ function el() {
2957
2957
  });
2958
2958
  mt.matcher = t.matcher;
2959
2959
  }
2960
- function tl(t, l = {}) {
2961
- const d = l.indexPath || "/dashboard", i = l.logoSrc || "/vite.svg", s = {
2960
+ function tl(t, r = {}) {
2961
+ const d = r.indexPath || "/dashboard", l = r.logoSrc || "/vite.svg", o = {
2962
2962
  path: "/:pathMatch(.*)*",
2963
2963
  name: "CatchAll",
2964
2964
  component: () => Promise.resolve().then(() => ct),
@@ -2972,52 +2972,52 @@ function tl(t, l = {}) {
2972
2972
  component: ae({
2973
2973
  name: "LayoutWrapper",
2974
2974
  render() {
2975
- return bt(it, { logoSrc: i });
2975
+ return bt(it, { logoSrc: l });
2976
2976
  }
2977
2977
  }),
2978
2978
  redirect: d,
2979
- children: [...t, s]
2979
+ children: [...t, o]
2980
2980
  };
2981
2981
  }
2982
- function sl(t, l = {}) {
2982
+ function sl(t, r = {}) {
2983
2983
  return He({
2984
- history: Ye(l.base),
2984
+ history: Ye(r.base),
2985
2985
  routes: t,
2986
2986
  scrollBehavior: () => ({ left: 0, top: 0 })
2987
2987
  });
2988
2988
  }
2989
2989
  const Sa = ["/login", "/404", "/403"];
2990
- function ol(t, l = {}) {
2991
- const d = l.whiteList || Sa, i = l.loginPath || "/login", s = l.homePath || "/";
2992
- t.beforeEach(async (r, _, v) => {
2993
- const u = de(), f = le(), h = ue();
2994
- if (u.initTheme(), tt())
2995
- if (r.path === i)
2996
- v({ path: s });
2997
- else if (f.isLoggedIn)
2998
- r.name && r.meta.keepAlive && u.addCachedView(r.name), v();
2990
+ function ol(t, r = {}) {
2991
+ const d = r.whiteList || Sa;
2992
+ t.beforeEach(async (l, o, i) => {
2993
+ const v = de(), h = le(), u = ue(), f = v.loginPath || r.loginPath || "/login", _ = v.indexPath || r.homePath || "/dashboard";
2994
+ if (v.initTheme(), tt())
2995
+ if (l.path === f)
2996
+ i({ path: _ });
2997
+ else if (h.isLoggedIn)
2998
+ l.name && l.meta.keepAlive && v.addCachedView(l.name), i();
2999
2999
  else
3000
3000
  try {
3001
- if (l.fetchUserInfo) {
3002
- const b = await l.fetchUserInfo();
3003
- f.setUserInfo(b);
3001
+ if (r.fetchUserInfo) {
3002
+ const b = await r.fetchUserInfo();
3003
+ h.setUserInfo(b);
3004
3004
  } else {
3005
3005
  const b = await vt();
3006
- f.setUserInfo(b);
3006
+ h.setUserInfo(b);
3007
3007
  }
3008
- if (l.fetchMenu) {
3009
- const b = await l.fetchMenu();
3010
- h.setMenuList(b);
3008
+ if (r.fetchMenu) {
3009
+ const b = await r.fetchMenu();
3010
+ u.setMenuList(b);
3011
3011
  } else {
3012
- const b = await ht(l.appId);
3013
- h.setMenuList(b);
3012
+ const b = await ht(r.appId);
3013
+ u.setMenuList(b);
3014
3014
  }
3015
- l.onLoginSuccess && l.onLoginSuccess(), r.name && r.meta.keepAlive && u.addCachedView(r.name), v({ ...r, replace: !0 });
3015
+ r.onLoginSuccess && r.onLoginSuccess(), l.name && l.meta.keepAlive && v.addCachedView(l.name), i({ ...l, replace: !0 });
3016
3016
  } catch (b) {
3017
- console.error("获取用户信息失败:", b), f.clearUserInfo(), h.clearMenu(), ot(), v({ path: i, query: { redirect: r.fullPath } });
3017
+ console.error("获取用户信息失败:", b), h.clearUserInfo(), u.clearMenu(), ot(), i({ path: f, query: { redirect: l.fullPath } });
3018
3018
  }
3019
3019
  else
3020
- d.includes(r.path) ? v() : v({ path: i, query: { redirect: r.fullPath } });
3020
+ d.includes(l.path) ? i() : i({ path: f, query: { redirect: l.fullPath } });
3021
3021
  }), t.afterEach(() => {
3022
3022
  });
3023
3023
  }
@@ -3077,15 +3077,15 @@ const nl = {
3077
3077
  /* BUTTON */
3078
3078
  }
3079
3079
  ], dl = {
3080
- mounted(t, l) {
3081
- var _, v;
3082
- const d = le(), i = ue();
3080
+ mounted(t, r) {
3081
+ var v, h;
3082
+ const d = le(), l = ue();
3083
3083
  if (!d.isLoggedIn) {
3084
- (_ = t.parentNode) == null || _.removeChild(t);
3084
+ (v = t.parentNode) == null || v.removeChild(t);
3085
3085
  return;
3086
3086
  }
3087
- const s = l.value, r = Array.isArray(s) ? s : [s];
3088
- i.hasPermission(r) || (v = t.parentNode) == null || v.removeChild(t);
3087
+ const o = r.value, i = Array.isArray(o) ? o : [o];
3088
+ l.hasPermission(i) || (h = t.parentNode) == null || h.removeChild(t);
3089
3089
  }
3090
3090
  };
3091
3091
  function ul(t) {
@@ -3093,11 +3093,11 @@ function ul(t) {
3093
3093
  appId: t.appId,
3094
3094
  clientId: t.clientId,
3095
3095
  apiBaseUrl: t.apiBaseUrl
3096
- }), Promise.resolve().then(() => It).then(({ useAppStore: l }) => {
3097
- const d = l();
3096
+ }), Promise.resolve().then(() => It).then(({ useAppStore: r }) => {
3097
+ const d = r();
3098
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 }) => {
3100
- l().changeLocale(t.locale);
3099
+ }), t.locale && Promise.resolve().then(() => $a).then(({ useLocaleStore: r }) => {
3100
+ r().changeLocale(t.locale);
3101
3101
  }), {
3102
3102
  config: {
3103
3103
  appName: t.appName || "XTO App",