xto-fronted 0.6.3 → 0.7.0

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,14 +1,14 @@
1
- import { x as I, y as Ie, z as ot, A as at, B as nt, C as lt, o as ht, D as rt, E as _t, i as Qe, m as ft, F as gt, G as et, H as yt, I as bt, J as kt } from "./user-77I_qZ8j.js";
2
- import { ref as y, computed as w, watch as ye, defineComponent as ne, resolveComponent as it, openBlock as a, createBlock as B, unref as n, withCtx as M, createElementBlock as c, Fragment as K, renderList as X, createElementVNode as e, toDisplayString as x, createCommentVNode as P, normalizeClass as J, withDirectives as Te, vShow as wt, createVNode as b, createTextVNode as he, onMounted as Ke, onUnmounted as je, vModelText as We, Transition as be, withModifiers as Pe, normalizeStyle as Ne, reactive as qe, createStaticVNode as ze, withKeys as xt, h as Ct } from "vue";
1
+ import { x as I, y as Ie, z as ot, A as at, B as nt, C as lt, o as ht, D as rt, E as _t, i as Qe, m as ft, F as gt, G as et, H as yt, I as kt, J as wt } from "./user-77I_qZ8j.js";
2
+ import { ref as y, computed as b, watch as ye, defineComponent as ne, resolveComponent as it, openBlock as a, createBlock as B, unref as n, withCtx as M, createElementBlock as c, Fragment as K, renderList as X, createElementVNode as e, toDisplayString as x, createCommentVNode as P, normalizeClass as J, withDirectives as Te, vShow as bt, createVNode as k, createTextVNode as he, onMounted as Ke, onUnmounted as je, vModelText as We, Transition as ke, withModifiers as Pe, normalizeStyle as Ne, reactive as qe, createStaticVNode as ze, withKeys as xt, h as Ct } from "vue";
3
3
  import { defineStore as Ee } from "pinia";
4
- import { useRoute as we, useRouter as me, createRouter as He, createWebHistory as Ye } from "vue-router";
4
+ import { useRoute as be, useRouter as me, createRouter as He, createWebHistory as Ye } from "vue-router";
5
5
  import { SubMenu as Re, MenuItem as Se, Menu as Ge, Tabs as $t, TabPane as Lt } from "@xto/navigation";
6
- import { Icon as U, Button as ke } from "@xto/base";
6
+ import { Icon as U, Button as we } from "@xto/base";
7
7
  import { Drawer as Xe, Message as Mt } from "@xto/feedback";
8
- import { Form as St, FormItem as De, Input as tt, Checkbox as Nt } from "@xto/form";
8
+ import { Form as St, FormItem as Ae, Input as tt, Checkbox as Nt } from "@xto/form";
9
9
  import { createLocaleProvider as It, getSupportedLocales as Et, useLocale as Ut } from "@xto/core/locale";
10
10
  const ue = Ee("app", () => {
11
- const t = y(I.get("appName") || "XTO App"), l = y(I.get("indexPath") || "/dashboard"), u = y(I.get("loginPath") || "/login"), s = y(I.get("isDark") || !1), o = y(I.get("theme") || "light"), i = y(I.get("layout") || "sidebar"), h = y(I.get("isCollapsed") || !1), v = y(I.get("showTabs") ?? !0), d = y(I.get("showFooter") ?? !0), g = y(I.get("showBreadcrumb") ?? !0), _ = y(I.get("primaryColor") || "#4F46E5"), f = y([]), m = y([]), j = w(() => s.value ? "dark" : "light"), A = (E) => {
11
+ const t = y(I.get("appName") || "XTO App"), l = y(I.get("indexPath") || "/dashboard"), u = y(I.get("loginPath") || "/login"), s = y(I.get("isDark") || !1), o = y(I.get("theme") || "light"), i = y(I.get("layout") || "sidebar"), h = y(I.get("isCollapsed") || !1), v = y(I.get("showTabs") ?? !0), d = y(I.get("showFooter") ?? !0), g = y(I.get("showBreadcrumb") ?? !0), _ = y(I.get("primaryColor") || "#12B6AF"), f = y([]), m = y([]), j = b(() => s.value ? "dark" : "light"), D = (E) => {
12
12
  t.value = E, I.set("appName", E);
13
13
  }, W = (E) => {
14
14
  l.value = E, I.set("indexPath", E);
@@ -31,7 +31,7 @@ const ue = Ee("app", () => {
31
31
  d.value = !d.value, I.set("showFooter", d.value);
32
32
  }, N = () => {
33
33
  g.value = !g.value, I.set("showBreadcrumb", g.value);
34
- }, D = (E) => {
34
+ }, A = (E) => {
35
35
  _.value = E, document.documentElement.style.setProperty("--xto-color-primary", E), I.set("primaryColor", E);
36
36
  }, G = (E) => {
37
37
  f.value.includes(E) || f.value.push(E);
@@ -43,7 +43,7 @@ const ue = Ee("app", () => {
43
43
  }, ie = (E) => {
44
44
  m.value = E;
45
45
  }, pe = () => {
46
- Z(), _.value !== "#4F46E5" && document.documentElement.style.setProperty("--xto-color-primary", _.value);
46
+ Z(), _.value !== "#12B6AF" && document.documentElement.style.setProperty("--xto-color-primary", _.value);
47
47
  };
48
48
  return ye(s, Z), {
49
49
  appName: t,
@@ -60,7 +60,7 @@ const ue = Ee("app", () => {
60
60
  cachedViews: f,
61
61
  mixSubMenus: m,
62
62
  themeClass: j,
63
- setAppName: A,
63
+ setAppName: D,
64
64
  setIndexPath: W,
65
65
  setLoginPath: F,
66
66
  toggleTheme: V,
@@ -70,7 +70,7 @@ const ue = Ee("app", () => {
70
70
  toggleTabs: ee,
71
71
  toggleFooter: T,
72
72
  toggleBreadcrumb: N,
73
- setPrimaryColor: D,
73
+ setPrimaryColor: A,
74
74
  addCachedView: G,
75
75
  removeCachedView: R,
76
76
  clearCachedViews: se,
@@ -80,7 +80,7 @@ const ue = Ee("app", () => {
80
80
  }), zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81
81
  __proto__: null,
82
82
  useAppStore: ue
83
- }, Symbol.toStringTag, { value: "Module" })), Tt = "menu_list", Pt = "permission_list", Ae = () => `${Tt}_${Ie()}`, Fe = () => `${Pt}_${Ie()}`, Dt = {
83
+ }, Symbol.toStringTag, { value: "Module" })), Tt = "menu_list", Pt = "permission_list", De = () => `${Tt}_${Ie()}`, Fe = () => `${Pt}_${Ie()}`, At = {
84
84
  menuCode: "home",
85
85
  menuName: "首页",
86
86
  menuUrl: "/dashboard",
@@ -95,7 +95,7 @@ function ct(t) {
95
95
  children: l.children ? ct(l.children) : void 0
96
96
  }));
97
97
  }
98
- function At(t) {
98
+ function Dt(t) {
99
99
  const l = [];
100
100
  function u(s) {
101
101
  s.forEach((o) => {
@@ -105,44 +105,44 @@ function At(t) {
105
105
  return u(t), l;
106
106
  }
107
107
  const de = Ee("menu", () => {
108
- const t = y(I.get(Ae()) || []), l = y(I.get(Fe()) || []), u = w(() => t.value.length > 0);
108
+ const t = y(I.get(De()) || []), l = y(I.get(Fe()) || []), u = b(() => t.value.length > 0);
109
109
  return {
110
110
  menuList: t,
111
111
  permissions: l,
112
112
  hasMenu: u,
113
113
  setMenuList: (h) => {
114
- l.value = At(h), I.set(Fe(), l.value);
114
+ l.value = Dt(h), I.set(Fe(), l.value);
115
115
  const v = ct(h);
116
- t.value = [Dt, ...v], I.set(Ae(), t.value);
116
+ t.value = [At, ...v], I.set(De(), t.value);
117
117
  },
118
118
  clearMenu: () => {
119
- t.value = [], l.value = [], I.remove(Ae()), I.remove(Fe());
119
+ t.value = [], l.value = [], I.remove(De()), I.remove(Fe());
120
120
  },
121
121
  hasPermission: (h) => Array.isArray(h) ? h.some((v) => l.value.includes(v)) : l.value.includes(h)
122
122
  };
123
123
  }), Be = "user_info", le = Ee("user", () => {
124
- const t = y(I.get(Be)), l = w(() => !!t.value), u = w(() => {
124
+ const t = y(I.get(Be)), l = b(() => !!t.value), u = b(() => {
125
125
  var m;
126
126
  return ((m = t.value) == null ? void 0 : m.userId) || "";
127
- }), s = w(() => {
127
+ }), s = b(() => {
128
128
  var m;
129
129
  return ((m = t.value) == null ? void 0 : m.userName) || "";
130
- }), o = w(() => {
130
+ }), o = b(() => {
131
131
  var m;
132
132
  return ((m = t.value) == null ? void 0 : m.departmentName) || "";
133
- }), i = w(() => {
133
+ }), i = b(() => {
134
134
  var m;
135
135
  return ((m = t.value) == null ? void 0 : m.roleName) || "";
136
- }), h = w(() => {
136
+ }), h = b(() => {
137
137
  var m;
138
138
  return ((m = t.value) == null ? void 0 : m.email) || "";
139
- }), v = w(() => {
139
+ }), v = b(() => {
140
140
  var m;
141
141
  return ((m = t.value) == null ? void 0 : m.mobilePhone) || "";
142
- }), d = w(() => {
142
+ }), d = b(() => {
143
143
  var m;
144
144
  return ((m = t.value) == null ? void 0 : m.positionName) || "";
145
- }), g = w(() => {
145
+ }), g = b(() => {
146
146
  var m;
147
147
  return ((m = t.value) == null ? void 0 : m.avatar) || "";
148
148
  });
@@ -165,7 +165,7 @@ const de = Ee("menu", () => {
165
165
  }
166
166
  };
167
167
  }), Ue = Ee("auth", () => {
168
- const t = y(ot()), l = w(() => at()), u = y(""), s = y(""), o = y(""), i = y("/login");
168
+ const t = y(ot()), l = b(() => at()), u = y(""), s = y(""), o = y(""), i = y("/login");
169
169
  return {
170
170
  token: t,
171
171
  isLoggedIn: l,
@@ -346,7 +346,7 @@ const de = Ee("menu", () => {
346
346
  list: "list",
347
347
  grid: "grid"
348
348
  }[d] || d;
349
- }, o = (d) => d ? d.charAt(0) : "", i = (d) => u.has(d), h = w(() => l.menu.menuId || l.menu.menuCode || l.menu.menuUrl || ""), v = w(() => l.menu.children && l.menu.children.length > 0);
349
+ }, o = (d) => d ? d.charAt(0) : "", i = (d) => u.has(d), h = b(() => l.menu.menuId || l.menu.menuCode || l.menu.menuUrl || ""), v = b(() => l.menu.children && l.menu.children.length > 0);
350
350
  return (d, g) => {
351
351
  const _ = it("SidebarMenuItem", !0);
352
352
  return v.value ? (a(), B(n(Re), {
@@ -397,7 +397,7 @@ const de = Ee("menu", () => {
397
397
  for (const [s, o] of l)
398
398
  u[s] = o;
399
399
  return u;
400
- }, Ht = /* @__PURE__ */ re(qt, [["__scopeId", "data-v-78c62b56"]]), Yt = {
400
+ }, Ht = /* @__PURE__ */ re(qt, [["__scopeId", "data-v-5c8b22f6"]]), Yt = {
401
401
  key: 0,
402
402
  class: "sidebar__logo"
403
403
  }, Gt = ["src"], Xt = {
@@ -412,17 +412,17 @@ const de = Ee("menu", () => {
412
412
  logoSrc: { default: "/vite.svg" }
413
413
  },
414
414
  setup(t) {
415
- const l = t, u = we(), s = me(), o = de(), i = le(), h = Ue(), v = ue(), d = w(() => l.menuList.length > 0 ? l.menuList : o.menuList), g = w(() => v.isCollapsed), _ = w(() => u.path), f = (T) => T.menuId || T.menuCode || T.menuUrl || "", m = () => d.value.map(f).join(","), j = I.get(Oe) || "", A = m(), W = j === A ? I.get(Ve) || [] : [], F = y(W);
415
+ const l = t, u = be(), s = me(), o = de(), i = le(), h = Ue(), v = ue(), d = b(() => l.menuList.length > 0 ? l.menuList : o.menuList), g = b(() => v.isCollapsed), _ = b(() => u.path), f = (T) => T.menuId || T.menuCode || T.menuUrl || "", m = () => d.value.map(f).join(","), j = I.get(Oe) || "", D = m(), W = j === D ? I.get(Ve) || [] : [], F = y(W);
416
416
  ye(F, (T) => {
417
417
  I.set(Ve, T), I.set(Oe, m());
418
418
  }, { deep: !0 });
419
- const V = (T, N, D = []) => {
419
+ const V = (T, N, A = []) => {
420
420
  var G;
421
421
  for (const R of T) {
422
422
  if (R.menuUrl && (N === R.menuUrl || N.startsWith(R.menuUrl + "/")))
423
- return [...D, f(R)];
423
+ return [...A, f(R)];
424
424
  if ((G = R.children) != null && G.length) {
425
- const se = V(R.children, N, [...D, f(R)]);
425
+ const se = V(R.children, N, [...A, f(R)]);
426
426
  if (se) return se;
427
427
  }
428
428
  }
@@ -430,16 +430,16 @@ const de = Ee("menu", () => {
430
430
  };
431
431
  ye([() => u.path, d], ([T, N]) => {
432
432
  if (N.length > 0) {
433
- const D = V(N, T);
434
- if (D) {
435
- const G = D.slice(0, -1), R = /* @__PURE__ */ new Set([...F.value, ...G]);
433
+ const A = V(N, T);
434
+ if (A) {
435
+ const G = A.slice(0, -1), R = /* @__PURE__ */ new Set([...F.value, ...G]);
436
436
  F.value = Array.from(R);
437
437
  }
438
438
  }
439
439
  }, { immediate: !0 }), ye(d, (T, N) => {
440
440
  T !== N && (F.value = [], I.set(Ve, []), I.set(Oe, m()));
441
441
  }, { immediate: !1 });
442
- const H = w(() => v.isDark ? "#111A2C" : "#fff"), Z = w(() => v.isDark ? "#CBD5E1" : "#334155"), Y = w(() => v.isDark ? "#4C8DFF" : "#1D4ED8"), q = (T) => {
442
+ const H = b(() => v.isDark ? "#161B21" : "#fff"), Z = b(() => v.isDark ? "#D9DCE1" : "#4E5566"), Y = b(() => v.isDark ? "#2ED3CB" : "#12B6AF"), q = (T) => {
443
443
  T && T !== u.path && s.push(T);
444
444
  }, ee = () => {
445
445
  h.logout(), i.clearUserInfo(), o.clearMenu(), s.push(v.loginPath);
@@ -454,14 +454,14 @@ const de = Ee("menu", () => {
454
454
  class: "sidebar__logo-img"
455
455
  }, null, 8, Gt),
456
456
  Te(e("span", { class: "sidebar__logo-text" }, x(n(v).appName), 513), [
457
- [wt, !g.value]
457
+ [bt, !g.value]
458
458
  ])
459
459
  ])) : P("", !0),
460
- b(n(Ge), {
460
+ k(n(Ge), {
461
461
  modelValue: _.value,
462
- "onUpdate:modelValue": N[0] || (N[0] = (D) => _.value = D),
462
+ "onUpdate:modelValue": N[0] || (N[0] = (A) => _.value = A),
463
463
  openeds: F.value,
464
- "onUpdate:openeds": N[1] || (N[1] = (D) => F.value = D),
464
+ "onUpdate:openeds": N[1] || (N[1] = (A) => F.value = A),
465
465
  mode: "vertical",
466
466
  collapse: g.value,
467
467
  "collapse-transition": !1,
@@ -472,9 +472,9 @@ const de = Ee("menu", () => {
472
472
  onSelect: q
473
473
  }, {
474
474
  default: M(() => [
475
- (a(!0), c(K, null, X(d.value, (D) => (a(), B(Ht, {
476
- key: f(D),
477
- menu: D
475
+ (a(!0), c(K, null, X(d.value, (A) => (a(), B(Ht, {
476
+ key: f(A),
477
+ menu: A
478
478
  }, null, 8, ["menu"]))), 128))
479
479
  ]),
480
480
  _: 1
@@ -484,7 +484,7 @@ const de = Ee("menu", () => {
484
484
  e("span", Zt, x(n(i).userName), 1),
485
485
  e("span", Qt, x(n(i).departmentName), 1)
486
486
  ]),
487
- b(n(ke), {
487
+ k(n(we), {
488
488
  type: "text",
489
489
  size: "small",
490
490
  onClick: ee
@@ -497,7 +497,7 @@ const de = Ee("menu", () => {
497
497
  ])) : P("", !0)
498
498
  ], 2));
499
499
  }
500
- }), st = /* @__PURE__ */ re(es, [["__scopeId", "data-v-6c197c26"]]), ts = { class: "header" }, ss = { class: "header__left" }, os = {
500
+ }), st = /* @__PURE__ */ re(es, [["__scopeId", "data-v-5d045bcd"]]), ts = { class: "header" }, ss = { class: "header__left" }, os = {
501
501
  key: 0,
502
502
  class: "header__breadcrumb"
503
503
  }, as = {
@@ -524,7 +524,7 @@ const de = Ee("menu", () => {
524
524
  }, vs = ["title"], hs = { class: "header__avatar" }, _s = { class: "header__user-name" }, fs = {
525
525
  key: 0,
526
526
  class: "header__dropdown"
527
- }, gs = { class: "header__dropdown-header" }, ys = { class: "header__dropdown-avatar" }, bs = { class: "header__dropdown-info" }, ks = { class: "header__dropdown-name" }, ws = { class: "header__dropdown-role" }, xs = { class: "header__dropdown-menu" }, Cs = { class: "settings-drawer" }, $s = { class: "settings-section" }, Ls = { class: "settings-layout-options" }, Ms = ["onClick"], Ss = { class: "layout-option__preview" }, Ns = {
527
+ }, gs = { class: "header__dropdown-header" }, ys = { class: "header__dropdown-avatar" }, ks = { class: "header__dropdown-info" }, ws = { class: "header__dropdown-name" }, bs = { class: "header__dropdown-role" }, xs = { class: "header__dropdown-menu" }, Cs = { class: "settings-drawer" }, $s = { class: "settings-section" }, Ls = { class: "settings-layout-options" }, Ms = ["onClick"], Ss = { class: "layout-option__preview" }, Ns = {
528
528
  key: 0,
529
529
  class: "layout-preview-sidebar"
530
530
  }, Is = {
@@ -533,27 +533,27 @@ const de = Ee("menu", () => {
533
533
  }, Es = {
534
534
  key: 2,
535
535
  class: "layout-preview-mix"
536
- }, Us = { class: "layout-option__label" }, zs = { class: "settings-section" }, Ts = { class: "settings-color-options" }, Ps = ["title", "onClick"], Ds = { class: "settings-section" }, As = { class: "settings-switch-list" }, Fs = { class: "settings-switch-item" }, Bs = { class: "settings-switch-item" }, Vs = /* @__PURE__ */ ne({
536
+ }, Us = { class: "layout-option__label" }, zs = { class: "settings-section" }, Ts = { class: "settings-color-options" }, Ps = ["title", "onClick"], As = { class: "settings-section" }, Ds = { class: "settings-switch-list" }, Fs = { class: "settings-switch-item" }, Bs = { class: "settings-switch-item" }, Vs = /* @__PURE__ */ ne({
537
537
  __name: "Header",
538
538
  setup(t) {
539
- const l = we(), u = me(), s = ue(), o = le(), i = Ue(), h = de(), v = y(!1), d = y(!1), g = y(null), _ = y(!1), f = y(!1), m = y(""), j = y(null), A = y(!1), W = [
539
+ const l = be(), u = me(), s = ue(), o = le(), i = Ue(), h = de(), v = y(!1), d = y(!1), g = y(null), _ = y(!1), f = y(!1), m = y(""), j = y(null), D = y(!1), W = [
540
540
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
541
541
  { value: "top", label: "顶部菜单", icon: "menu" },
542
542
  { value: "mix", label: "混合菜单", icon: "grid" }
543
543
  ], F = [
544
- { value: "#1D4ED8", label: "品牌蓝" },
544
+ { value: "#12B6AF", label: "品牌蓝" },
545
545
  { value: "#1890ff", label: "科技蓝" },
546
546
  { value: "#52c41a", label: "极光绿" },
547
547
  { value: "#faad14", label: "日落橙" },
548
548
  { value: "#f5222d", label: "薄暮红" },
549
549
  { value: "#722ed1", label: "酱紫" }
550
- ], V = w(() => l.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
551
- title: k.meta.title,
552
- path: k.path
553
- }))), H = (z, k = "") => {
550
+ ], V = b(() => l.matched.filter((w) => w.meta && w.meta.title).map((w) => ({
551
+ title: w.meta.title,
552
+ path: w.path
553
+ }))), H = (z, w = "") => {
554
554
  const Q = [];
555
555
  return z.forEach((C) => {
556
- C.children && C.children.length > 0 ? Q.push(...H(C.children, C.menuName)) : Q.push({ ...C, parentTitle: k, title: C.menuName, path: C.menuUrl });
556
+ C.children && C.children.length > 0 ? Q.push(...H(C.children, C.menuName)) : Q.push({ ...C, parentTitle: w, title: C.menuName, path: C.menuUrl });
557
557
  }), Q;
558
558
  }, Z = /* @__PURE__ */ new Set([
559
559
  "arrow-up",
@@ -694,9 +694,9 @@ const de = Ee("menu", () => {
694
694
  list: "list",
695
695
  grid: "grid"
696
696
  }[z] || z;
697
- }, q = (z) => z ? z.charAt(0) : "", ee = (z) => Z.has(z), T = w(() => m.value.trim() ? H(h.menuList).filter(
698
- (k) => k.title.toLowerCase().includes(m.value.toLowerCase())
699
- ) : []), N = w(() => s.layout), D = () => {
697
+ }, q = (z) => z ? z.charAt(0) : "", ee = (z) => Z.has(z), T = b(() => m.value.trim() ? H(h.menuList).filter(
698
+ (w) => w.title.toLowerCase().includes(m.value.toLowerCase())
699
+ ) : []), N = b(() => s.layout), A = () => {
700
700
  s.toggleCollapse();
701
701
  }, G = () => {
702
702
  s.toggleTheme();
@@ -705,11 +705,11 @@ const de = Ee("menu", () => {
705
705
  }, se = (z) => {
706
706
  s.setLayout(z), d.value = !1;
707
707
  }, ie = (z) => {
708
- A.value = z;
709
- const k = document.documentElement;
710
- z ? k.classList.add("grey-mode") : k.classList.remove("grey-mode");
708
+ D.value = z;
709
+ const w = document.documentElement;
710
+ z ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
711
711
  }, pe = () => {
712
- ie(!A.value), d.value = !1;
712
+ ie(!D.value), d.value = !1;
713
713
  }, E = () => {
714
714
  s.toggleTheme(), d.value = !1;
715
715
  }, oe = () => {
@@ -738,18 +738,18 @@ const de = Ee("menu", () => {
738
738
  z.key === "Escape" && (ve(), ae());
739
739
  };
740
740
  return Ke(() => {
741
- document.addEventListener("click", fe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", ge), s.initTheme(), A.value = document.documentElement.classList.contains("grey-mode");
741
+ document.addEventListener("click", fe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", ge), s.initTheme(), D.value = document.documentElement.classList.contains("grey-mode");
742
742
  }), je(() => {
743
743
  document.removeEventListener("click", fe), document.removeEventListener("fullscreenchange", _e), document.removeEventListener("keydown", ge);
744
- }), (z, k) => {
744
+ }), (z, w) => {
745
745
  var Q;
746
746
  return a(), c("div", ts, [
747
747
  e("div", ss, [
748
748
  e("div", {
749
749
  class: "header__collapse",
750
- onClick: D
750
+ onClick: A
751
751
  }, [
752
- b(n(U), {
752
+ k(n(U), {
753
753
  name: n(s).isCollapsed ? "menu-unfold" : "menu-fold",
754
754
  size: 18
755
755
  }, null, 8, ["name"])
@@ -771,21 +771,21 @@ const de = Ee("menu", () => {
771
771
  ref_key: "searchRef",
772
772
  ref: j
773
773
  }, [
774
- b(n(U), {
774
+ k(n(U), {
775
775
  name: "search",
776
776
  size: 14,
777
777
  class: "header__search-icon"
778
778
  }),
779
779
  Te(e("input", {
780
- "onUpdate:modelValue": k[0] || (k[0] = (C) => m.value = C),
780
+ "onUpdate:modelValue": w[0] || (w[0] = (C) => m.value = C),
781
781
  type: "text",
782
782
  class: "header__search-input",
783
783
  placeholder: "搜索菜单...",
784
- onFocus: k[1] || (k[1] = (C) => f.value = !0)
784
+ onFocus: w[1] || (w[1] = (C) => f.value = !0)
785
785
  }, null, 544), [
786
786
  [We, m.value]
787
787
  ]),
788
- b(be, { name: "search-dropdown" }, {
788
+ k(ke, { name: "search-dropdown" }, {
789
789
  default: M(() => [
790
790
  f.value && (T.value.length > 0 || m.value) ? (a(), c("div", ls, [
791
791
  T.value.length > 0 ? (a(), c("div", rs, [
@@ -815,7 +815,7 @@ const de = Ee("menu", () => {
815
815
  onClick: oe,
816
816
  title: _.value ? "退出全屏" : "全屏"
817
817
  }, [
818
- b(n(U), {
818
+ k(n(U), {
819
819
  name: _.value ? "fullscreen-exit" : "fullscreen",
820
820
  size: 16
821
821
  }, null, 8, ["name"])
@@ -825,7 +825,7 @@ const de = Ee("menu", () => {
825
825
  onClick: R,
826
826
  title: "换肤设置"
827
827
  }, [
828
- b(n(U), {
828
+ k(n(U), {
829
829
  name: "skin",
830
830
  size: 16
831
831
  })
@@ -835,7 +835,7 @@ const de = Ee("menu", () => {
835
835
  onClick: G,
836
836
  title: "切换主题"
837
837
  }, [
838
- b(n(U), {
838
+ k(n(U), {
839
839
  name: n(s).isDark ? "sun" : "moon",
840
840
  size: 16
841
841
  }, null, 8, ["name"])
@@ -857,7 +857,7 @@ const de = Ee("menu", () => {
857
857
  class: J(["header__user-arrow", { "is-active": v.value }])
858
858
  }, "▼", 2)
859
859
  ]),
860
- b(be, { name: "dropdown" }, {
860
+ k(ke, { name: "dropdown" }, {
861
861
  default: M(() => {
862
862
  var C;
863
863
  return [
@@ -866,43 +866,43 @@ const de = Ee("menu", () => {
866
866
  e("div", ys, [
867
867
  e("span", null, x(((C = n(o).userName) == null ? void 0 : C.charAt(0)) || "U"), 1)
868
868
  ]),
869
- e("div", bs, [
870
- e("div", ks, x(n(o).userName), 1),
871
- e("div", ws, x(n(o).roleName || n(o).departmentName), 1)
869
+ e("div", ks, [
870
+ e("div", ws, x(n(o).userName), 1),
871
+ e("div", bs, x(n(o).roleName || n(o).departmentName), 1)
872
872
  ])
873
873
  ]),
874
- k[7] || (k[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
874
+ w[7] || (w[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
875
875
  e("div", xs, [
876
876
  e("div", {
877
877
  class: "header__dropdown-item",
878
878
  onClick: $e
879
879
  }, [
880
- b(n(U), {
880
+ k(n(U), {
881
881
  name: "user",
882
882
  size: 16
883
883
  }),
884
- k[3] || (k[3] = e("span", null, "个人信息", -1))
884
+ w[3] || (w[3] = e("span", null, "个人信息", -1))
885
885
  ]),
886
886
  e("div", {
887
887
  class: "header__dropdown-item",
888
888
  onClick: Le
889
889
  }, [
890
- b(n(U), {
890
+ k(n(U), {
891
891
  name: "lock",
892
892
  size: 16
893
893
  }),
894
- k[4] || (k[4] = e("span", null, "修改密码", -1))
894
+ w[4] || (w[4] = e("span", null, "修改密码", -1))
895
895
  ]),
896
- k[6] || (k[6] = e("div", { class: "header__dropdown-divider" }, null, -1)),
896
+ w[6] || (w[6] = e("div", { class: "header__dropdown-divider" }, null, -1)),
897
897
  e("div", {
898
898
  class: "header__dropdown-item header__dropdown-item--danger",
899
899
  onClick: Me
900
900
  }, [
901
- b(n(U), {
901
+ k(n(U), {
902
902
  name: "logout",
903
903
  size: 16
904
904
  }),
905
- k[5] || (k[5] = e("span", null, "退出登录", -1))
905
+ w[5] || (w[5] = e("span", null, "退出登录", -1))
906
906
  ])
907
907
  ])
908
908
  ])) : P("", !0)
@@ -912,9 +912,9 @@ const de = Ee("menu", () => {
912
912
  })
913
913
  ], 512)
914
914
  ]),
915
- b(n(Xe), {
915
+ k(n(Xe), {
916
916
  modelValue: d.value,
917
- "onUpdate:modelValue": k[2] || (k[2] = (C) => d.value = C),
917
+ "onUpdate:modelValue": w[2] || (w[2] = (C) => d.value = C),
918
918
  title: "换肤设置",
919
919
  direction: "rtl",
920
920
  size: "320px"
@@ -922,7 +922,7 @@ const de = Ee("menu", () => {
922
922
  default: M(() => [
923
923
  e("div", Cs, [
924
924
  e("div", $s, [
925
- k[11] || (k[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
925
+ w[11] || (w[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
926
926
  e("div", Ls, [
927
927
  (a(), c(K, null, X(W, (C) => e("div", {
928
928
  key: C.value,
@@ -930,16 +930,16 @@ const de = Ee("menu", () => {
930
930
  onClick: (S) => se(C.value)
931
931
  }, [
932
932
  e("div", Ss, [
933
- C.value === "sidebar" ? (a(), c("div", Ns, [...k[8] || (k[8] = [
933
+ C.value === "sidebar" ? (a(), c("div", Ns, [...w[8] || (w[8] = [
934
934
  e("div", { class: "preview-aside" }, null, -1),
935
935
  e("div", { class: "preview-main" }, [
936
936
  e("div", { class: "preview-header" }),
937
937
  e("div", { class: "preview-content" })
938
938
  ], -1)
939
- ])])) : C.value === "top" ? (a(), c("div", Is, [...k[9] || (k[9] = [
939
+ ])])) : C.value === "top" ? (a(), c("div", Is, [...w[9] || (w[9] = [
940
940
  e("div", { class: "preview-header-full" }, null, -1),
941
941
  e("div", { class: "preview-content-full" }, null, -1)
942
- ])])) : (a(), c("div", Es, [...k[10] || (k[10] = [
942
+ ])])) : (a(), c("div", Es, [...w[10] || (w[10] = [
943
943
  e("div", { class: "preview-header-mix" }, [
944
944
  e("div", { class: "preview-mix-left" })
945
945
  ], -1),
@@ -954,7 +954,7 @@ const de = Ee("menu", () => {
954
954
  ])
955
955
  ]),
956
956
  e("div", zs, [
957
- k[12] || (k[12] = e("div", { class: "settings-title" }, "主题色", -1)),
957
+ w[12] || (w[12] = e("div", { class: "settings-title" }, "主题色", -1)),
958
958
  e("div", Ts, [
959
959
  (a(), c(K, null, X(F, (C) => e("div", {
960
960
  key: C.value,
@@ -972,24 +972,24 @@ const de = Ee("menu", () => {
972
972
  ], 14, Ps)), 64))
973
973
  ])
974
974
  ]),
975
- e("div", Ds, [
976
- k[17] || (k[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
977
- e("div", As, [
975
+ e("div", As, [
976
+ w[17] || (w[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
977
+ e("div", Ds, [
978
978
  e("div", Fs, [
979
- k[14] || (k[14] = e("span", null, "灰色模式", -1)),
979
+ w[14] || (w[14] = e("span", null, "灰色模式", -1)),
980
980
  e("div", {
981
- class: J(["switch-wrapper", { "is-checked": A.value }]),
981
+ class: J(["switch-wrapper", { "is-checked": D.value }]),
982
982
  onClick: pe
983
- }, [...k[13] || (k[13] = [
983
+ }, [...w[13] || (w[13] = [
984
984
  e("span", { class: "switch-core" }, null, -1)
985
985
  ])], 2)
986
986
  ]),
987
987
  e("div", Bs, [
988
- k[16] || (k[16] = e("span", null, "暗黑模式", -1)),
988
+ w[16] || (w[16] = e("span", null, "暗黑模式", -1)),
989
989
  e("div", {
990
990
  class: J(["switch-wrapper", { "is-checked": n(s).isDark }]),
991
991
  onClick: E
992
- }, [...k[15] || (k[15] = [
992
+ }, [...w[15] || (w[15] = [
993
993
  e("span", { class: "switch-core" }, null, -1)
994
994
  ])], 2)
995
995
  ])
@@ -1002,7 +1002,7 @@ const de = Ee("menu", () => {
1002
1002
  ]);
1003
1003
  };
1004
1004
  }
1005
- }), Os = /* @__PURE__ */ re(Vs, [["__scopeId", "data-v-a68ca7e5"]]), Rs = { class: "top-menu" }, Ks = { class: "top-menu__logo" }, js = ["src"], Ws = { class: "top-menu__logo-text" }, qs = { class: "top-menu__menu-content" }, Hs = {
1005
+ }), Os = /* @__PURE__ */ re(Vs, [["__scopeId", "data-v-0b773f0c"]]), Rs = { class: "top-menu" }, Ks = { class: "top-menu__logo" }, js = ["src"], Ws = { class: "top-menu__logo-text" }, qs = { class: "top-menu__menu-content" }, Hs = {
1006
1006
  key: 0,
1007
1007
  class: "top-menu__menu-icon"
1008
1008
  }, Ys = {
@@ -1035,16 +1035,16 @@ const de = Ee("menu", () => {
1035
1035
  }, go = {
1036
1036
  key: 1,
1037
1037
  class: "top-menu__search-char"
1038
- }, yo = { class: "top-menu__search-item-title" }, bo = {
1038
+ }, yo = { class: "top-menu__search-item-title" }, ko = {
1039
1039
  key: 1,
1040
1040
  class: "top-menu__search-item-parent"
1041
- }, ko = {
1041
+ }, wo = {
1042
1042
  key: 1,
1043
1043
  class: "top-menu__search-empty"
1044
- }, wo = ["title"], xo = { class: "top-menu__avatar" }, Co = { class: "top-menu__user-name" }, $o = {
1044
+ }, bo = ["title"], xo = { class: "top-menu__avatar" }, Co = { class: "top-menu__user-name" }, $o = {
1045
1045
  key: 0,
1046
1046
  class: "top-menu__dropdown"
1047
- }, Lo = { class: "top-menu__dropdown-header" }, Mo = { class: "top-menu__dropdown-avatar" }, So = { class: "top-menu__dropdown-info" }, No = { class: "top-menu__dropdown-name" }, Io = { class: "top-menu__dropdown-role" }, Eo = { class: "top-menu__dropdown-menu" }, Uo = { class: "settings-drawer" }, zo = { class: "settings-section" }, To = { class: "settings-layout-options" }, Po = ["onClick"], Do = { class: "layout-option__preview" }, Ao = {
1047
+ }, Lo = { class: "top-menu__dropdown-header" }, Mo = { class: "top-menu__dropdown-avatar" }, So = { class: "top-menu__dropdown-info" }, No = { class: "top-menu__dropdown-name" }, Io = { class: "top-menu__dropdown-role" }, Eo = { class: "top-menu__dropdown-menu" }, Uo = { class: "settings-drawer" }, zo = { class: "settings-section" }, To = { class: "settings-layout-options" }, Po = ["onClick"], Ao = { class: "layout-option__preview" }, Do = {
1048
1048
  key: 0,
1049
1049
  class: "layout-preview-sidebar"
1050
1050
  }, Fo = {
@@ -1059,14 +1059,14 @@ const de = Ee("menu", () => {
1059
1059
  logoSrc: { default: "/vite.svg" }
1060
1060
  },
1061
1061
  setup(t) {
1062
- const l = t, u = we(), s = me(), o = de(), i = ue(), h = le(), v = Ue(), d = w(() => u.path), g = (S, L = "") => {
1062
+ const l = t, u = be(), s = me(), o = de(), i = ue(), h = le(), v = Ue(), d = b(() => u.path), g = (S, L = "") => {
1063
1063
  const te = [];
1064
1064
  return S.forEach((r) => {
1065
1065
  r.children && r.children.length > 0 ? te.push(...g(r.children, r.menuName)) : te.push({ ...r, parentTitle: L, title: r.menuName, path: r.menuUrl });
1066
1066
  }), te;
1067
- }, _ = w(() => Y.value.trim() ? g(o.menuList).filter(
1067
+ }, _ = b(() => Y.value.trim() ? g(o.menuList).filter(
1068
1068
  (L) => L.title.toLowerCase().includes(Y.value.toLowerCase())
1069
- ) : []), f = w(() => i.isDark ? "#1d1e1f" : "#fff"), m = w(() => i.isDark ? "#cfd3dc" : "#303133"), j = w(() => "#409eff"), A = y(!1), W = y(null), F = y(!1), V = y(!1), H = y(!1), Z = y(!1), Y = y(""), q = y(null), ee = (S) => {
1069
+ ) : []), f = b(() => i.isDark ? "#1d1e1f" : "#fff"), m = b(() => i.isDark ? "#cfd3dc" : "#303133"), j = b(() => "#409eff"), D = y(!1), W = y(null), F = y(!1), V = y(!1), H = y(!1), Z = y(!1), Y = y(""), q = y(null), ee = (S) => {
1070
1070
  S && S !== u.path && s.push(S);
1071
1071
  }, T = /* @__PURE__ */ new Set([
1072
1072
  "arrow-up",
@@ -1207,16 +1207,16 @@ const de = Ee("menu", () => {
1207
1207
  list: "list",
1208
1208
  grid: "grid"
1209
1209
  }[S] || S;
1210
- }, D = (S) => S ? S.charAt(0) : "", G = (S) => T.has(S), R = () => {
1210
+ }, A = (S) => S ? S.charAt(0) : "", G = (S) => T.has(S), R = () => {
1211
1211
  i.toggleTheme(), V.value = !1;
1212
1212
  }, se = () => {
1213
1213
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1214
1214
  }, ie = () => {
1215
1215
  F.value = !!document.fullscreenElement;
1216
1216
  }, pe = () => {
1217
- A.value = !A.value;
1217
+ D.value = !D.value;
1218
1218
  }, E = () => {
1219
- A.value = !1;
1219
+ D.value = !1;
1220
1220
  }, oe = () => {
1221
1221
  Z.value = !1, Y.value = "";
1222
1222
  }, _e = (S) => {
@@ -1235,7 +1235,7 @@ const de = Ee("menu", () => {
1235
1235
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1236
1236
  { value: "top", label: "顶部菜单", icon: "menu" },
1237
1237
  { value: "mix", label: "混合菜单", icon: "grid" }
1238
- ], $e = w(() => i.layout), Le = (S) => {
1238
+ ], $e = b(() => i.layout), Le = (S) => {
1239
1239
  i.setLayout(S), V.value = !1;
1240
1240
  }, Me = [
1241
1241
  { value: "#409eff", label: "默认蓝" },
@@ -1250,7 +1250,7 @@ const de = Ee("menu", () => {
1250
1250
  E(), s.push("/profile");
1251
1251
  }, z = () => {
1252
1252
  E(), s.push("/change-password");
1253
- }, k = () => {
1253
+ }, w = () => {
1254
1254
  E(), v.logout(), h.clearUserInfo(), o.clearMenu(), s.push(i.loginPath);
1255
1255
  }, Q = (S) => {
1256
1256
  W.value && !W.value.contains(S.target) && E(), q.value && !q.value.contains(S.target) && oe();
@@ -1272,7 +1272,7 @@ const de = Ee("menu", () => {
1272
1272
  }, null, 8, js),
1273
1273
  e("span", Ws, x(n(i).appName), 1)
1274
1274
  ]),
1275
- b(n(Ge), {
1275
+ k(n(Ge), {
1276
1276
  "model-value": d.value,
1277
1277
  mode: "horizontal",
1278
1278
  "background-color": f.value,
@@ -1296,7 +1296,7 @@ const de = Ee("menu", () => {
1296
1296
  key: 0,
1297
1297
  name: N(r.icon),
1298
1298
  size: 16
1299
- }, null, 8, ["name"])) : (a(), c("span", Ys, x(D(r.menuName)), 1))
1299
+ }, null, 8, ["name"])) : (a(), c("span", Ys, x(A(r.menuName)), 1))
1300
1300
  ])) : P("", !0),
1301
1301
  e("span", Gs, x(r.menuName), 1)
1302
1302
  ])
@@ -1316,7 +1316,7 @@ const de = Ee("menu", () => {
1316
1316
  key: 0,
1317
1317
  name: N(p.icon),
1318
1318
  size: 16
1319
- }, null, 8, ["name"])) : (a(), c("span", Zs, x(D(p.menuName)), 1))
1319
+ }, null, 8, ["name"])) : (a(), c("span", Zs, x(A(p.menuName)), 1))
1320
1320
  ]),
1321
1321
  e("span", Qs, x(p.menuName), 1)
1322
1322
  ])
@@ -1333,7 +1333,7 @@ const de = Ee("menu", () => {
1333
1333
  key: 0,
1334
1334
  name: N(O.icon),
1335
1335
  size: 16
1336
- }, null, 8, ["name"])) : (a(), c("span", so, x(D(O.menuName)), 1))
1336
+ }, null, 8, ["name"])) : (a(), c("span", so, x(A(O.menuName)), 1))
1337
1337
  ]),
1338
1338
  e("span", oo, x(O.menuName), 1)
1339
1339
  ])
@@ -1353,7 +1353,7 @@ const de = Ee("menu", () => {
1353
1353
  key: 0,
1354
1354
  name: N(p.icon),
1355
1355
  size: 16
1356
- }, null, 8, ["name"])) : (a(), c("span", lo, x(D(p.menuName)), 1))
1356
+ }, null, 8, ["name"])) : (a(), c("span", lo, x(A(p.menuName)), 1))
1357
1357
  ]),
1358
1358
  e("span", ro, x(p.menuName), 1)
1359
1359
  ])
@@ -1374,7 +1374,7 @@ const de = Ee("menu", () => {
1374
1374
  key: 0,
1375
1375
  name: N(r.icon),
1376
1376
  size: 16
1377
- }, null, 8, ["name"])) : (a(), c("span", uo, x(D(r.menuName)), 1))
1377
+ }, null, 8, ["name"])) : (a(), c("span", uo, x(A(r.menuName)), 1))
1378
1378
  ])) : P("", !0),
1379
1379
  e("span", mo, x(r.menuName), 1)
1380
1380
  ])
@@ -1391,7 +1391,7 @@ const de = Ee("menu", () => {
1391
1391
  ref_key: "searchRef",
1392
1392
  ref: q
1393
1393
  }, [
1394
- b(n(U), {
1394
+ k(n(U), {
1395
1395
  name: "search",
1396
1396
  size: 14,
1397
1397
  class: "top-menu__search-icon"
@@ -1405,7 +1405,7 @@ const de = Ee("menu", () => {
1405
1405
  }, null, 544), [
1406
1406
  [We, Y.value]
1407
1407
  ]),
1408
- b(be, { name: "search-dropdown" }, {
1408
+ k(ke, { name: "search-dropdown" }, {
1409
1409
  default: M(() => [
1410
1410
  Z.value && (_.value.length > 0 || Y.value) ? (a(), c("div", vo, [
1411
1411
  _.value.length > 0 ? (a(), c("div", ho, [
@@ -1419,12 +1419,12 @@ const de = Ee("menu", () => {
1419
1419
  key: 0,
1420
1420
  name: N(r.icon),
1421
1421
  size: 16
1422
- }, null, 8, ["name"])) : (a(), c("span", go, x(D(r.title)), 1))
1422
+ }, null, 8, ["name"])) : (a(), c("span", go, x(A(r.title)), 1))
1423
1423
  ])) : P("", !0),
1424
1424
  e("span", yo, x(r.title), 1),
1425
- r.parentTitle ? (a(), c("span", bo, x(r.parentTitle), 1)) : P("", !0)
1425
+ r.parentTitle ? (a(), c("span", ko, x(r.parentTitle), 1)) : P("", !0)
1426
1426
  ], 8, _o))), 128))
1427
- ])) : (a(), c("div", ko, " 未找到匹配的菜单 "))
1427
+ ])) : (a(), c("div", wo, " 未找到匹配的菜单 "))
1428
1428
  ])) : P("", !0)
1429
1429
  ]),
1430
1430
  _: 1
@@ -1435,17 +1435,17 @@ const de = Ee("menu", () => {
1435
1435
  onClick: se,
1436
1436
  title: F.value ? "退出全屏" : "全屏"
1437
1437
  }, [
1438
- b(n(U), {
1438
+ k(n(U), {
1439
1439
  name: F.value ? "fullscreen-exit" : "fullscreen",
1440
1440
  size: 16
1441
1441
  }, null, 8, ["name"])
1442
- ], 8, wo),
1442
+ ], 8, bo),
1443
1443
  e("div", {
1444
1444
  class: "top-menu__action",
1445
1445
  onClick: ce,
1446
1446
  title: "换肤设置"
1447
1447
  }, [
1448
- b(n(U), {
1448
+ k(n(U), {
1449
1449
  name: "skin",
1450
1450
  size: 16
1451
1451
  })
@@ -1455,7 +1455,7 @@ const de = Ee("menu", () => {
1455
1455
  onClick: R,
1456
1456
  title: "切换主题"
1457
1457
  }, [
1458
- b(n(U), {
1458
+ k(n(U), {
1459
1459
  name: n(i).isDark ? "sun" : "moon",
1460
1460
  size: 16
1461
1461
  }, null, 8, ["name"])
@@ -1474,14 +1474,14 @@ const de = Ee("menu", () => {
1474
1474
  ]),
1475
1475
  e("span", Co, x(n(h).userName), 1),
1476
1476
  e("span", {
1477
- class: J(["top-menu__user-arrow", { "is-active": A.value }])
1477
+ class: J(["top-menu__user-arrow", { "is-active": D.value }])
1478
1478
  }, "▼", 2)
1479
1479
  ]),
1480
- b(be, { name: "dropdown" }, {
1480
+ k(ke, { name: "dropdown" }, {
1481
1481
  default: M(() => {
1482
1482
  var r;
1483
1483
  return [
1484
- A.value ? (a(), c("div", $o, [
1484
+ D.value ? (a(), c("div", $o, [
1485
1485
  e("div", Lo, [
1486
1486
  e("div", Mo, [
1487
1487
  e("span", null, x(((r = n(h).userName) == null ? void 0 : r.charAt(0)) || "U"), 1)
@@ -1497,7 +1497,7 @@ const de = Ee("menu", () => {
1497
1497
  class: "top-menu__dropdown-item",
1498
1498
  onClick: ge
1499
1499
  }, [
1500
- b(n(U), {
1500
+ k(n(U), {
1501
1501
  name: "user",
1502
1502
  size: 16
1503
1503
  }),
@@ -1507,7 +1507,7 @@ const de = Ee("menu", () => {
1507
1507
  class: "top-menu__dropdown-item",
1508
1508
  onClick: z
1509
1509
  }, [
1510
- b(n(U), {
1510
+ k(n(U), {
1511
1511
  name: "lock",
1512
1512
  size: 16
1513
1513
  }),
@@ -1516,9 +1516,9 @@ const de = Ee("menu", () => {
1516
1516
  L[6] || (L[6] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1517
1517
  e("div", {
1518
1518
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1519
- onClick: k
1519
+ onClick: w
1520
1520
  }, [
1521
- b(n(U), {
1521
+ k(n(U), {
1522
1522
  name: "logout",
1523
1523
  size: 16
1524
1524
  }),
@@ -1532,7 +1532,7 @@ const de = Ee("menu", () => {
1532
1532
  })
1533
1533
  ], 512)
1534
1534
  ]),
1535
- b(n(Xe), {
1535
+ k(n(Xe), {
1536
1536
  modelValue: V.value,
1537
1537
  "onUpdate:modelValue": L[2] || (L[2] = (r) => V.value = r),
1538
1538
  title: "换肤设置",
@@ -1549,8 +1549,8 @@ const de = Ee("menu", () => {
1549
1549
  class: J(["layout-option", { "is-active": $e.value === r.value }]),
1550
1550
  onClick: (p) => Le(r.value)
1551
1551
  }, [
1552
- e("div", Do, [
1553
- r.value === "sidebar" ? (a(), c("div", Ao, [...L[8] || (L[8] = [
1552
+ e("div", Ao, [
1553
+ r.value === "sidebar" ? (a(), c("div", Do, [...L[8] || (L[8] = [
1554
1554
  e("div", { class: "preview-aside" }, null, -1),
1555
1555
  e("div", { class: "preview-main" }, [
1556
1556
  e("div", { class: "preview-header" }),
@@ -1622,7 +1622,7 @@ const de = Ee("menu", () => {
1622
1622
  ]);
1623
1623
  };
1624
1624
  }
1625
- }), Go = /* @__PURE__ */ re(Yo, [["__scopeId", "data-v-114a2a03"]]), Xo = { class: "mix-top-menu" }, Jo = { class: "mix-top-menu__logo" }, Zo = ["src"], Qo = { class: "mix-top-menu__logo-text" }, ea = { class: "mix-top-menu__menu-content" }, ta = {
1625
+ }), Go = /* @__PURE__ */ re(Yo, [["__scopeId", "data-v-98a61fb9"]]), Xo = { class: "mix-top-menu" }, Jo = { class: "mix-top-menu__logo" }, Zo = ["src"], Qo = { class: "mix-top-menu__logo-text" }, ea = { class: "mix-top-menu__menu-content" }, ta = {
1626
1626
  key: 0,
1627
1627
  class: "mix-top-menu__menu-icon"
1628
1628
  }, sa = {
@@ -1649,7 +1649,7 @@ const de = Ee("menu", () => {
1649
1649
  }, pa = ["title"], va = { class: "mix-top-menu__avatar" }, ha = { class: "mix-top-menu__user-name" }, _a = {
1650
1650
  key: 0,
1651
1651
  class: "mix-top-menu__dropdown"
1652
- }, fa = { class: "mix-top-menu__dropdown-header" }, ga = { class: "mix-top-menu__dropdown-avatar" }, ya = { class: "mix-top-menu__dropdown-info" }, ba = { class: "mix-top-menu__dropdown-name" }, ka = { class: "mix-top-menu__dropdown-role" }, wa = { class: "mix-top-menu__dropdown-menu" }, xa = { class: "settings-drawer" }, Ca = { class: "settings-section" }, $a = { class: "settings-layout-options" }, La = ["onClick"], Ma = { class: "layout-option__preview" }, Sa = {
1652
+ }, fa = { class: "mix-top-menu__dropdown-header" }, ga = { class: "mix-top-menu__dropdown-avatar" }, ya = { class: "mix-top-menu__dropdown-info" }, ka = { class: "mix-top-menu__dropdown-name" }, wa = { class: "mix-top-menu__dropdown-role" }, ba = { class: "mix-top-menu__dropdown-menu" }, xa = { class: "settings-drawer" }, Ca = { class: "settings-section" }, $a = { class: "settings-layout-options" }, La = ["onClick"], Ma = { class: "layout-option__preview" }, Sa = {
1653
1653
  key: 0,
1654
1654
  class: "layout-preview-sidebar"
1655
1655
  }, Na = {
@@ -1658,25 +1658,25 @@ const de = Ee("menu", () => {
1658
1658
  }, Ia = {
1659
1659
  key: 2,
1660
1660
  class: "layout-preview-mix"
1661
- }, Ea = { class: "layout-option__label" }, Ua = { class: "settings-section" }, za = { class: "settings-color-options" }, Ta = ["title", "onClick"], Pa = { class: "settings-section" }, Da = { class: "settings-switch-list" }, Aa = { class: "settings-switch-item" }, Fa = { class: "settings-switch-item" }, Ba = /* @__PURE__ */ ne({
1661
+ }, Ea = { class: "layout-option__label" }, Ua = { class: "settings-section" }, za = { class: "settings-color-options" }, Ta = ["title", "onClick"], Pa = { class: "settings-section" }, Aa = { class: "settings-switch-list" }, Da = { class: "settings-switch-item" }, Fa = { class: "settings-switch-item" }, Ba = /* @__PURE__ */ ne({
1662
1662
  __name: "MixTopMenu",
1663
1663
  props: {
1664
1664
  logoSrc: { default: "/vite.svg" }
1665
1665
  },
1666
1666
  setup(t) {
1667
- const l = t, u = we(), s = me(), o = de(), i = ue(), h = le(), v = Ue(), d = y(""), g = (r, p = "") => {
1667
+ const l = t, u = be(), s = me(), o = de(), i = ue(), h = le(), v = Ue(), d = y(""), g = (r, p = "") => {
1668
1668
  const O = [];
1669
1669
  return r.forEach(($) => {
1670
1670
  $.children && $.children.length > 0 ? O.push(...g($.children, $.menuName)) : O.push({ ...$, parentTitle: p, title: $.menuName, path: $.menuUrl });
1671
1671
  }), O;
1672
- }, _ = w(() => N.value.trim() ? g(o.menuList).filter(
1672
+ }, _ = b(() => N.value.trim() ? g(o.menuList).filter(
1673
1673
  (p) => p.title.toLowerCase().includes(N.value.toLowerCase())
1674
- ) : []), f = w(() => {
1674
+ ) : []), f = b(() => {
1675
1675
  const r = o.menuList.find((p) => p.menuUrl === d.value);
1676
1676
  return (r == null ? void 0 : r.children) || [];
1677
- }), m = w(() => o.menuList.find((r) => !!(u.path === r.menuUrl || r.children && r.children.some((p) => u.path.startsWith(p.menuUrl) || u.path === p.menuUrl)))), j = () => {
1677
+ }), m = b(() => o.menuList.find((r) => !!(u.path === r.menuUrl || r.children && r.children.some((p) => u.path.startsWith(p.menuUrl) || u.path === p.menuUrl)))), j = () => {
1678
1678
  m.value ? d.value = m.value.menuUrl : o.menuList.length > 0 && (d.value = o.menuList[0].menuUrl);
1679
- }, A = (r) => {
1679
+ }, D = (r) => {
1680
1680
  d.value = r;
1681
1681
  const p = o.menuList.find((O) => O.menuUrl === r);
1682
1682
  if (p)
@@ -1685,7 +1685,7 @@ const de = Ee("menu", () => {
1685
1685
  u.path !== O && s.push(O);
1686
1686
  } else
1687
1687
  u.path !== r && s.push(r);
1688
- }, W = w(() => i.isDark ? "#1d1e1f" : "#fff"), F = w(() => i.isDark ? "#cfd3dc" : "#303133"), V = w(() => "#409eff"), H = y(!1), Z = y(null), Y = y(!1), q = y(!1), ee = y(!1), T = y(!1), N = y(""), D = y(null);
1688
+ }, W = b(() => i.isDark ? "#1d1e1f" : "#fff"), F = b(() => i.isDark ? "#cfd3dc" : "#303133"), V = b(() => "#409eff"), H = y(!1), Z = y(null), Y = y(!1), q = y(!1), ee = y(!1), T = y(!1), N = y(""), A = y(null);
1689
1689
  ye(() => u.path, () => {
1690
1690
  j(), i.setMixSubMenus(f.value);
1691
1691
  }), ye(() => o.menuList, (r) => {
@@ -1858,7 +1858,7 @@ const de = Ee("menu", () => {
1858
1858
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1859
1859
  { value: "top", label: "顶部菜单", icon: "menu" },
1860
1860
  { value: "mix", label: "混合菜单", icon: "grid" }
1861
- ], fe = w(() => i.layout), ge = (r) => {
1861
+ ], fe = b(() => i.layout), ge = (r) => {
1862
1862
  i.setLayout(r), q.value = !1;
1863
1863
  }, z = [
1864
1864
  { value: "#409eff", label: "默认蓝" },
@@ -1867,7 +1867,7 @@ const de = Ee("menu", () => {
1867
1867
  { value: "#faad14", label: "日落橙" },
1868
1868
  { value: "#f5222d", label: "薄暮红" },
1869
1869
  { value: "#722ed1", label: "酱紫" }
1870
- ], k = (r) => {
1870
+ ], w = (r) => {
1871
1871
  i.setPrimaryColor(r), q.value = !1;
1872
1872
  }, Q = () => {
1873
1873
  ce(), s.push("/profile");
@@ -1876,7 +1876,7 @@ const de = Ee("menu", () => {
1876
1876
  }, S = () => {
1877
1877
  ce(), v.logout(), h.clearUserInfo(), o.clearMenu(), s.push(i.loginPath);
1878
1878
  }, L = (r) => {
1879
- Z.value && !Z.value.contains(r.target) && ce(), D.value && !D.value.contains(r.target) && ae();
1879
+ Z.value && !Z.value.contains(r.target) && ce(), A.value && !A.value.contains(r.target) && ae();
1880
1880
  }, te = (r) => {
1881
1881
  r.key === "Escape" && (ae(), ce());
1882
1882
  };
@@ -1895,14 +1895,14 @@ const de = Ee("menu", () => {
1895
1895
  }, null, 8, Zo),
1896
1896
  e("span", Qo, x(n(i).appName), 1)
1897
1897
  ]),
1898
- b(n(Ge), {
1898
+ k(n(Ge), {
1899
1899
  "model-value": d.value,
1900
1900
  mode: "horizontal",
1901
1901
  "background-color": W.value,
1902
1902
  "text-color": F.value,
1903
1903
  "active-text-color": V.value,
1904
1904
  class: "mix-top-menu__menu",
1905
- onSelect: A
1905
+ onSelect: D
1906
1906
  }, {
1907
1907
  default: M(() => [
1908
1908
  (a(!0), c(K, null, X(n(o).menuList, ($) => (a(), B(n(Se), {
@@ -1930,9 +1930,9 @@ const de = Ee("menu", () => {
1930
1930
  e("div", {
1931
1931
  class: "mix-top-menu__search",
1932
1932
  ref_key: "searchRef",
1933
- ref: D
1933
+ ref: A
1934
1934
  }, [
1935
- b(n(U), {
1935
+ k(n(U), {
1936
1936
  name: "search",
1937
1937
  size: 14,
1938
1938
  class: "mix-top-menu__search-icon"
@@ -1946,7 +1946,7 @@ const de = Ee("menu", () => {
1946
1946
  }, null, 544), [
1947
1947
  [We, N.value]
1948
1948
  ]),
1949
- b(be, { name: "search-dropdown" }, {
1949
+ k(ke, { name: "search-dropdown" }, {
1950
1950
  default: M(() => [
1951
1951
  T.value && (_.value.length > 0 || N.value) ? (a(), c("div", na, [
1952
1952
  _.value.length > 0 ? (a(), c("div", la, [
@@ -1976,7 +1976,7 @@ const de = Ee("menu", () => {
1976
1976
  onClick: E,
1977
1977
  title: Y.value ? "退出全屏" : "全屏"
1978
1978
  }, [
1979
- b(n(U), {
1979
+ k(n(U), {
1980
1980
  name: Y.value ? "fullscreen-exit" : "fullscreen",
1981
1981
  size: 16
1982
1982
  }, null, 8, ["name"])
@@ -1986,7 +1986,7 @@ const de = Ee("menu", () => {
1986
1986
  onClick: xe,
1987
1987
  title: "换肤设置"
1988
1988
  }, [
1989
- b(n(U), {
1989
+ k(n(U), {
1990
1990
  name: "skin",
1991
1991
  size: 16
1992
1992
  })
@@ -1996,7 +1996,7 @@ const de = Ee("menu", () => {
1996
1996
  onClick: pe,
1997
1997
  title: "切换主题"
1998
1998
  }, [
1999
- b(n(U), {
1999
+ k(n(U), {
2000
2000
  name: n(i).isDark ? "sun" : "moon",
2001
2001
  size: 16
2002
2002
  }, null, 8, ["name"])
@@ -2018,7 +2018,7 @@ const de = Ee("menu", () => {
2018
2018
  class: J(["mix-top-menu__user-arrow", { "is-active": H.value }])
2019
2019
  }, "▼", 2)
2020
2020
  ]),
2021
- b(be, { name: "dropdown" }, {
2021
+ k(ke, { name: "dropdown" }, {
2022
2022
  default: M(() => {
2023
2023
  var $;
2024
2024
  return [
@@ -2028,17 +2028,17 @@ const de = Ee("menu", () => {
2028
2028
  e("span", null, x((($ = n(h).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2029
2029
  ]),
2030
2030
  e("div", ya, [
2031
- e("div", ba, x(n(h).userName), 1),
2032
- e("div", ka, x(n(h).departmentName), 1)
2031
+ e("div", ka, x(n(h).userName), 1),
2032
+ e("div", wa, x(n(h).departmentName), 1)
2033
2033
  ])
2034
2034
  ]),
2035
2035
  p[7] || (p[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2036
- e("div", wa, [
2036
+ e("div", ba, [
2037
2037
  e("div", {
2038
2038
  class: "mix-top-menu__dropdown-item",
2039
2039
  onClick: Q
2040
2040
  }, [
2041
- b(n(U), {
2041
+ k(n(U), {
2042
2042
  name: "user",
2043
2043
  size: 16
2044
2044
  }),
@@ -2048,7 +2048,7 @@ const de = Ee("menu", () => {
2048
2048
  class: "mix-top-menu__dropdown-item",
2049
2049
  onClick: C
2050
2050
  }, [
2051
- b(n(U), {
2051
+ k(n(U), {
2052
2052
  name: "lock",
2053
2053
  size: 16
2054
2054
  }),
@@ -2059,7 +2059,7 @@ const de = Ee("menu", () => {
2059
2059
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2060
2060
  onClick: S
2061
2061
  }, [
2062
- b(n(U), {
2062
+ k(n(U), {
2063
2063
  name: "logout",
2064
2064
  size: 16
2065
2065
  }),
@@ -2073,7 +2073,7 @@ const de = Ee("menu", () => {
2073
2073
  })
2074
2074
  ], 512)
2075
2075
  ]),
2076
- b(n(Xe), {
2076
+ k(n(Xe), {
2077
2077
  modelValue: q.value,
2078
2078
  "onUpdate:modelValue": p[2] || (p[2] = ($) => q.value = $),
2079
2079
  title: "换肤设置",
@@ -2122,7 +2122,7 @@ const de = Ee("menu", () => {
2122
2122
  class: J(["color-option", { "is-active": n(i).primaryColor === $.value }]),
2123
2123
  style: Ne({ backgroundColor: $.value }),
2124
2124
  title: $.label,
2125
- onClick: (Ze) => k($.value)
2125
+ onClick: (Ze) => w($.value)
2126
2126
  }, [
2127
2127
  n(i).primaryColor === $.value ? (a(), B(n(U), {
2128
2128
  key: 0,
@@ -2135,8 +2135,8 @@ const de = Ee("menu", () => {
2135
2135
  ]),
2136
2136
  e("div", Pa, [
2137
2137
  p[17] || (p[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
2138
- e("div", Da, [
2139
- e("div", Aa, [
2138
+ e("div", Aa, [
2139
+ e("div", Da, [
2140
2140
  p[14] || (p[14] = e("span", null, "灰色模式", -1)),
2141
2141
  e("div", {
2142
2142
  class: J(["switch-wrapper", { "is-checked": ee.value }]),
@@ -2163,7 +2163,7 @@ const de = Ee("menu", () => {
2163
2163
  ]);
2164
2164
  };
2165
2165
  }
2166
- }), Va = /* @__PURE__ */ re(Ba, [["__scopeId", "data-v-e1e69bda"]]), Oa = {
2166
+ }), Va = /* @__PURE__ */ re(Ba, [["__scopeId", "data-v-90a8792d"]]), Oa = {
2167
2167
  key: 0,
2168
2168
  class: "layout layout--sidebar"
2169
2169
  }, Ra = { class: "layout__main" }, Ka = { class: "layout__header" }, ja = { class: "layout__content" }, Wa = {
@@ -2178,9 +2178,9 @@ const de = Ee("menu", () => {
2178
2178
  logoSrc: { default: "/vite.svg" }
2179
2179
  },
2180
2180
  setup(t) {
2181
- const l = t, u = ue(), s = de(), o = w(
2181
+ const l = t, u = ue(), s = de(), o = b(
2182
2182
  () => u.isCollapsed ? "64px" : "210px"
2183
- ), i = w(() => u.layout), h = w(() => i.value === "mix"), v = w(() => i.value === "sidebar" ? s.menuList : i.value === "mix" ? u.mixSubMenus : []), d = w(() => h.value ? v.value.length > 0 : !1);
2183
+ ), i = b(() => u.layout), h = b(() => i.value === "mix"), v = b(() => i.value === "sidebar" ? s.menuList : i.value === "mix" ? u.mixSubMenus : []), d = b(() => h.value ? v.value.length > 0 : !1);
2184
2184
  return (g, _) => {
2185
2185
  const f = it("router-view");
2186
2186
  return a(), c(K, null, [
@@ -2189,7 +2189,7 @@ const de = Ee("menu", () => {
2189
2189
  class: "layout__aside",
2190
2190
  style: Ne({ width: o.value })
2191
2191
  }, [
2192
- b(st, {
2192
+ k(st, {
2193
2193
  "menu-list": v.value,
2194
2194
  "show-logo": !0,
2195
2195
  "show-user": !0,
@@ -2198,28 +2198,28 @@ const de = Ee("menu", () => {
2198
2198
  ], 4),
2199
2199
  e("div", Ra, [
2200
2200
  e("header", Ka, [
2201
- b(Os)
2201
+ k(Os)
2202
2202
  ]),
2203
2203
  e("main", ja, [
2204
- b(f)
2204
+ k(f)
2205
2205
  ])
2206
2206
  ])
2207
2207
  ])) : P("", !0),
2208
2208
  i.value === "top" ? (a(), c("div", Wa, [
2209
2209
  e("div", qa, [
2210
- b(Go, {
2210
+ k(Go, {
2211
2211
  "logo-src": l.logoSrc
2212
2212
  }, null, 8, ["logo-src"])
2213
2213
  ]),
2214
2214
  e("div", Ha, [
2215
2215
  e("main", Ya, [
2216
- b(f)
2216
+ k(f)
2217
2217
  ])
2218
2218
  ])
2219
2219
  ])) : P("", !0),
2220
2220
  i.value === "mix" ? (a(), c("div", Ga, [
2221
2221
  e("div", Xa, [
2222
- b(Va, {
2222
+ k(Va, {
2223
2223
  "logo-src": l.logoSrc
2224
2224
  }, null, 8, ["logo-src"])
2225
2225
  ]),
@@ -2229,27 +2229,27 @@ const de = Ee("menu", () => {
2229
2229
  class: "layout__aside",
2230
2230
  style: Ne({ width: o.value })
2231
2231
  }, [
2232
- b(st, {
2232
+ k(st, {
2233
2233
  "menu-list": v.value,
2234
2234
  "show-logo": !1,
2235
2235
  "show-user": !1
2236
2236
  }, null, 8, ["menu-list"])
2237
2237
  ], 4)) : P("", !0),
2238
2238
  e("main", Za, [
2239
- b(f)
2239
+ k(f)
2240
2240
  ])
2241
2241
  ])
2242
2242
  ])) : P("", !0)
2243
2243
  ], 64);
2244
2244
  };
2245
2245
  }
2246
- }), ut = /* @__PURE__ */ re(Qa, [["__scopeId", "data-v-f3d5d68c"]]), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2246
+ }), ut = /* @__PURE__ */ re(Qa, [["__scopeId", "data-v-9382a033"]]), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2247
2247
  __proto__: null,
2248
2248
  default: ut
2249
2249
  }, Symbol.toStringTag, { value: "Module" })), tn = { class: "tabs-wrapper" }, sn = { class: "tab-label" }, on = ["onClick"], an = /* @__PURE__ */ ne({
2250
2250
  __name: "Tabs",
2251
2251
  setup(t) {
2252
- const l = we(), u = me(), s = w(() => {
2252
+ const l = be(), u = me(), s = b(() => {
2253
2253
  const v = [];
2254
2254
  return l.matched.forEach((d) => {
2255
2255
  var g;
@@ -2260,7 +2260,7 @@ const de = Ee("menu", () => {
2260
2260
  affix: !0
2261
2261
  });
2262
2262
  }), v;
2263
- }), o = w(() => l.path), i = (v) => {
2263
+ }), o = b(() => l.path), i = (v) => {
2264
2264
  u.push(v);
2265
2265
  }, h = (v) => {
2266
2266
  const d = s.value.find((g) => g.path === v);
@@ -2270,7 +2270,7 @@ const de = Ee("menu", () => {
2270
2270
  }
2271
2271
  };
2272
2272
  return (v, d) => (a(), c("div", tn, [
2273
- b(n($t), {
2273
+ k(n($t), {
2274
2274
  modelValue: o.value,
2275
2275
  "onUpdate:modelValue": d[0] || (d[0] = (g) => o.value = g),
2276
2276
  type: "card",
@@ -2300,16 +2300,16 @@ const de = Ee("menu", () => {
2300
2300
  }, 8, ["modelValue"])
2301
2301
  ]));
2302
2302
  }
2303
- }), Yn = /* @__PURE__ */ re(an, [["__scopeId", "data-v-876cc372"]]), nn = {}, ln = { class: "footer" };
2303
+ }), Yn = /* @__PURE__ */ re(an, [["__scopeId", "data-v-3da3d785"]]), nn = {}, ln = { class: "footer" };
2304
2304
  function rn(t, l) {
2305
2305
  return a(), c("div", ln, [...l[0] || (l[0] = [
2306
2306
  e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2307
2307
  ])]);
2308
2308
  }
2309
- const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e94"]]), cn = { class: "login-page" }, un = { class: "login-form-section" }, dn = { class: "form-container" }, mn = { class: "input-wrapper" }, pn = { class: "input-wrapper" }, vn = { class: "form-options" }, hn = { key: 0 }, _n = { key: 1 }, fn = /* @__PURE__ */ ne({
2309
+ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-ac63e349"]]), cn = { class: "login-page" }, un = { class: "login-form-section" }, dn = { class: "form-container" }, mn = { class: "input-wrapper" }, pn = { class: "input-wrapper" }, vn = { class: "form-options" }, hn = { key: 0 }, _n = { key: 1 }, fn = /* @__PURE__ */ ne({
2310
2310
  __name: "index",
2311
2311
  setup(t) {
2312
- const l = me(), u = we(), s = y(!1), o = y(!1), i = qe({
2312
+ const l = me(), u = be(), s = y(!1), o = y(!1), i = qe({
2313
2313
  uid: "",
2314
2314
  password: ""
2315
2315
  }), h = {
@@ -2341,14 +2341,14 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2341
2341
  }
2342
2342
  };
2343
2343
  return (g, _) => (a(), c("div", cn, [
2344
- _[10] || (_[10] = ze('<div class="login-brand" data-v-4597d7a1><div class="brand-content" data-v-4597d7a1><div class="brand-logo" data-v-4597d7a1><div class="logo-icon" data-v-4597d7a1><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4597d7a1><rect width="48" height="48" rx="12" fill="currentColor" data-v-4597d7a1></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-4597d7a1></path></svg></div><span class="logo-text" data-v-4597d7a1>XTO</span></div><div class="brand-slogan" data-v-4597d7a1><h1 data-v-4597d7a1>企业级后台管理解决方案</h1><p data-v-4597d7a1>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-4597d7a1><div class="feature-item" data-v-4597d7a1><div class="feature-icon" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-4597d7a1><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-4597d7a1></path></svg></div><div class="feature-text" data-v-4597d7a1><h4 data-v-4597d7a1>高性能</h4><p data-v-4597d7a1>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-4597d7a1><div class="feature-icon" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-4597d7a1><rect x="3" y="3" width="18" height="18" rx="2" data-v-4597d7a1></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-4597d7a1></path></svg></div><div class="feature-text" data-v-4597d7a1><h4 data-v-4597d7a1>丰富组件</h4><p data-v-4597d7a1>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-4597d7a1><div class="feature-icon" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-4597d7a1><circle cx="12" cy="12" r="10" data-v-4597d7a1></circle><path d="M12 6v6l4 2" data-v-4597d7a1></path></svg></div><div class="feature-text" data-v-4597d7a1><h4 data-v-4597d7a1>持续更新</h4><p data-v-4597d7a1>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-4597d7a1><div class="decoration-line" data-v-4597d7a1></div><div class="decoration-dots" data-v-4597d7a1><span data-v-4597d7a1></span><span data-v-4597d7a1></span><span data-v-4597d7a1></span></div></div></div><div class="brand-bg" data-v-4597d7a1><div class="bg-grid" data-v-4597d7a1></div><div class="bg-glow" data-v-4597d7a1></div><div class="bg-pattern" data-v-4597d7a1></div></div></div>', 1)),
2344
+ _[10] || (_[10] = ze('<div class="login-brand" data-v-92fe80d1><div class="brand-content" data-v-92fe80d1><div class="brand-logo" data-v-92fe80d1><div class="logo-icon" data-v-92fe80d1><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-92fe80d1><rect width="48" height="48" rx="12" fill="currentColor" data-v-92fe80d1></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-92fe80d1></path></svg></div><span class="logo-text" data-v-92fe80d1>XTO</span></div><div class="brand-slogan" data-v-92fe80d1><h1 data-v-92fe80d1>企业级后台管理解决方案</h1><p data-v-92fe80d1>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-92fe80d1><div class="feature-item" data-v-92fe80d1><div class="feature-icon" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-92fe80d1><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-92fe80d1></path></svg></div><div class="feature-text" data-v-92fe80d1><h4 data-v-92fe80d1>高性能</h4><p data-v-92fe80d1>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-92fe80d1><div class="feature-icon" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-92fe80d1><rect x="3" y="3" width="18" height="18" rx="2" data-v-92fe80d1></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-92fe80d1></path></svg></div><div class="feature-text" data-v-92fe80d1><h4 data-v-92fe80d1>丰富组件</h4><p data-v-92fe80d1>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-92fe80d1><div class="feature-icon" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-92fe80d1><circle cx="12" cy="12" r="10" data-v-92fe80d1></circle><path d="M12 6v6l4 2" data-v-92fe80d1></path></svg></div><div class="feature-text" data-v-92fe80d1><h4 data-v-92fe80d1>持续更新</h4><p data-v-92fe80d1>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-92fe80d1><div class="decoration-line" data-v-92fe80d1></div><div class="decoration-dots" data-v-92fe80d1><span data-v-92fe80d1></span><span data-v-92fe80d1></span><span data-v-92fe80d1></span></div></div></div><div class="brand-bg" data-v-92fe80d1><div class="bg-grid" data-v-92fe80d1></div><div class="bg-glow" data-v-92fe80d1></div><div class="bg-pattern" data-v-92fe80d1></div></div></div>', 1)),
2345
2345
  e("div", un, [
2346
2346
  e("div", dn, [
2347
2347
  _[7] || (_[7] = e("div", { class: "form-header" }, [
2348
2348
  e("h2", null, "欢迎登录"),
2349
2349
  e("p", null, "请输入您的账户信息")
2350
2350
  ], -1)),
2351
- b(n(St), {
2351
+ k(n(St), {
2352
2352
  ref_key: "formRef",
2353
2353
  ref: v,
2354
2354
  model: i,
@@ -2357,18 +2357,18 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2357
2357
  "label-width": "0"
2358
2358
  }, {
2359
2359
  default: M(() => [
2360
- b(n(De), { prop: "uid" }, {
2360
+ k(n(Ae), { prop: "uid" }, {
2361
2361
  default: M(() => [
2362
2362
  e("div", mn, [
2363
2363
  _[3] || (_[3] = e("label", { class: "input-label" }, "用户名", -1)),
2364
- b(n(tt), {
2364
+ k(n(tt), {
2365
2365
  modelValue: i.uid,
2366
2366
  "onUpdate:modelValue": _[0] || (_[0] = (f) => i.uid = f),
2367
2367
  placeholder: "请输入用户名",
2368
2368
  size: "large"
2369
2369
  }, {
2370
2370
  prefix: M(() => [
2371
- b(n(U), {
2371
+ k(n(U), {
2372
2372
  name: "user",
2373
2373
  size: 18
2374
2374
  })
@@ -2379,11 +2379,11 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2379
2379
  ]),
2380
2380
  _: 1
2381
2381
  }),
2382
- b(n(De), { prop: "password" }, {
2382
+ k(n(Ae), { prop: "password" }, {
2383
2383
  default: M(() => [
2384
2384
  e("div", pn, [
2385
2385
  _[4] || (_[4] = e("label", { class: "input-label" }, "密码", -1)),
2386
- b(n(tt), {
2386
+ k(n(tt), {
2387
2387
  modelValue: i.password,
2388
2388
  "onUpdate:modelValue": _[1] || (_[1] = (f) => i.password = f),
2389
2389
  type: "password",
@@ -2393,7 +2393,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2393
2393
  onKeyup: xt(d, ["enter"])
2394
2394
  }, {
2395
2395
  prefix: M(() => [
2396
- b(n(U), {
2396
+ k(n(U), {
2397
2397
  name: "lock",
2398
2398
  size: 18
2399
2399
  })
@@ -2405,7 +2405,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2405
2405
  _: 1
2406
2406
  }),
2407
2407
  e("div", vn, [
2408
- b(n(Nt), {
2408
+ k(n(Nt), {
2409
2409
  modelValue: o.value,
2410
2410
  "onUpdate:modelValue": _[2] || (_[2] = (f) => o.value = f)
2411
2411
  }, {
@@ -2419,9 +2419,9 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2419
2419
  class: "forgot-link"
2420
2420
  }, "忘记密码?", -1))
2421
2421
  ]),
2422
- b(n(De), null, {
2422
+ k(n(Ae), null, {
2423
2423
  default: M(() => [
2424
- b(n(ke), {
2424
+ k(n(we), {
2425
2425
  type: "primary",
2426
2426
  size: "large",
2427
2427
  loading: s.value,
@@ -2439,7 +2439,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2439
2439
  ]),
2440
2440
  _: 1
2441
2441
  }, 8, ["model"]),
2442
- _[8] || (_[8] = ze('<div class="form-footer" data-v-4597d7a1><p data-v-4597d7a1>其他登录方式</p><div class="social-login" data-v-4597d7a1><button class="social-btn" title="企业微信" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="currentColor" data-v-4597d7a1><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-4597d7a1></path></svg></button><button class="social-btn" title="钉钉" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="currentColor" data-v-4597d7a1><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-4597d7a1></path></svg></button><button class="social-btn" title="飞书" data-v-4597d7a1><svg viewBox="0 0 24 24" fill="currentColor" data-v-4597d7a1><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-4597d7a1></path></svg></button></div></div>', 1))
2442
+ _[8] || (_[8] = ze('<div class="form-footer" data-v-92fe80d1><p data-v-92fe80d1>其他登录方式</p><div class="social-login" data-v-92fe80d1><button class="social-btn" title="企业微信" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="currentColor" data-v-92fe80d1><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-92fe80d1></path></svg></button><button class="social-btn" title="钉钉" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="currentColor" data-v-92fe80d1><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-92fe80d1></path></svg></button><button class="social-btn" title="飞书" data-v-92fe80d1><svg viewBox="0 0 24 24" fill="currentColor" data-v-92fe80d1><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-92fe80d1></path></svg></button></div></div>', 1))
2443
2443
  ]),
2444
2444
  _[9] || (_[9] = e("div", { class: "copyright" }, [
2445
2445
  e("p", null, "© 2024 XTO Team. All rights reserved.")
@@ -2447,26 +2447,26 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2447
2447
  ])
2448
2448
  ]));
2449
2449
  }
2450
- }), gn = /* @__PURE__ */ re(fn, [["__scopeId", "data-v-4597d7a1"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2450
+ }), gn = /* @__PURE__ */ re(fn, [["__scopeId", "data-v-92fe80d1"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2451
2451
  __proto__: null,
2452
2452
  default: gn
2453
- }, Symbol.toStringTag, { value: "Module" })), bn = { class: "error-page" }, kn = { class: "error-container" }, wn = { class: "error-content" }, xn = { class: "error-actions" }, Cn = /* @__PURE__ */ ne({
2453
+ }, Symbol.toStringTag, { value: "Module" })), kn = { class: "error-page" }, wn = { class: "error-container" }, bn = { class: "error-content" }, xn = { class: "error-actions" }, Cn = /* @__PURE__ */ ne({
2454
2454
  __name: "404",
2455
2455
  setup(t) {
2456
2456
  const l = me(), u = () => {
2457
2457
  l.push("/");
2458
2458
  };
2459
- return (s, o) => (a(), c("div", bn, [
2460
- e("div", kn, [
2459
+ return (s, o) => (a(), c("div", kn, [
2460
+ e("div", wn, [
2461
2461
  o[7] || (o[7] = e("div", { class: "error-bg" }, [
2462
2462
  e("div", { class: "bg-circle circle-1" }),
2463
2463
  e("div", { class: "bg-circle circle-2" }),
2464
2464
  e("div", { class: "bg-circle circle-3" })
2465
2465
  ], -1)),
2466
- e("div", wn, [
2467
- o[5] || (o[5] = ze('<div class="error-code" data-v-cb725bbc><span class="code-digit" data-v-cb725bbc>4</span><span class="code-zero" data-v-cb725bbc><span class="zero-inner" data-v-cb725bbc>0</span></span><span class="code-digit" data-v-cb725bbc>4</span></div><div class="error-illustration" data-v-cb725bbc><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-cb725bbc><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--xto-fill-color, #F3F4F6)" stroke="var(--xto-border-color, #D1D5DB)" stroke-width="2" data-v-cb725bbc></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--xto-bg-color, #FFFFFF)" data-v-cb725bbc></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--xto-border-color-light, #E5E7EB)" stroke-width="2" data-v-cb725bbc></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--xto-border-color-light, #E5E7EB)" stroke-width="2" data-v-cb725bbc></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--xto-border-color-light, #E5E7EB)" stroke-width="2" data-v-cb725bbc></line><text x="100" y="75" text-anchor="middle" fill="var(--xto-color-primary, #4F46E5)" font-size="24" font-weight="600" data-v-cb725bbc>?</text><circle cx="150" cy="35" r="12" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" fill="none" data-v-cb725bbc></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" stroke-linecap="round" data-v-cb725bbc></line></svg></div><h1 class="error-title" data-v-cb725bbc>页面不存在</h1><p class="error-desc" data-v-cb725bbc>抱歉,您访问的页面不存在或已被删除</p>', 4)),
2466
+ e("div", bn, [
2467
+ o[5] || (o[5] = ze('<div class="error-code" data-v-99395185><span class="code-digit" data-v-99395185>4</span><span class="code-zero" data-v-99395185><span class="zero-inner" data-v-99395185>0</span></span><span class="code-digit" data-v-99395185>4</span></div><div class="error-illustration" data-v-99395185><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-99395185><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--xto-fill-color, #F2F3F5)" stroke="var(--xto-border-color, #D9DCE1)" stroke-width="2" data-v-99395185></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--xto-bg-color, #FFFFFF)" data-v-99395185></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-99395185></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-99395185></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-99395185></line><text x="100" y="75" text-anchor="middle" fill="var(--xto-color-primary, #12B6AF)" font-size="24" font-weight="600" data-v-99395185>?</text><circle cx="150" cy="35" r="12" stroke="var(--xto-color-primary, #12B6AF)" stroke-width="2" fill="none" data-v-99395185></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--xto-color-primary, #12B6AF)" stroke-width="2" stroke-linecap="round" data-v-99395185></line></svg></div><h1 class="error-title" data-v-99395185>页面不存在</h1><p class="error-desc" data-v-99395185>抱歉,您访问的页面不存在或已被删除</p>', 4)),
2468
2468
  e("div", xn, [
2469
- b(n(ke), {
2469
+ k(n(we), {
2470
2470
  type: "primary",
2471
2471
  size: "large",
2472
2472
  onClick: u
@@ -2487,7 +2487,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2487
2487
  ]),
2488
2488
  _: 1
2489
2489
  }),
2490
- b(n(ke), {
2490
+ k(n(we), {
2491
2491
  size: "large",
2492
2492
  onClick: o[0] || (o[0] = (i) => n(l).go(-1))
2493
2493
  }, {
@@ -2519,7 +2519,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2519
2519
  ])
2520
2520
  ]));
2521
2521
  }
2522
- }), $n = /* @__PURE__ */ re(Cn, [["__scopeId", "data-v-cb725bbc"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2522
+ }), $n = /* @__PURE__ */ re(Cn, [["__scopeId", "data-v-99395185"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2523
2523
  __proto__: null,
2524
2524
  default: $n
2525
2525
  }, Symbol.toStringTag, { value: "Module" })), Ln = { class: "error-page" }, Mn = { class: "error-container" }, Sn = { class: "error-content" }, Nn = { class: "error-actions" }, In = /* @__PURE__ */ ne({
@@ -2536,9 +2536,9 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2536
2536
  e("div", { class: "bg-circle circle-3" })
2537
2537
  ], -1)),
2538
2538
  e("div", Sn, [
2539
- o[5] || (o[5] = ze('<div class="error-code" data-v-70b865a6><span class="code-digit" data-v-70b865a6>4</span><span class="code-zero warning" data-v-70b865a6><span class="zero-inner" data-v-70b865a6>0</span></span><span class="code-digit" data-v-70b865a6>3</span></div><div class="error-illustration" data-v-70b865a6><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-70b865a6><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(--xto-color-warning-light-9, #FFFBEB)" stroke="var(--xto-color-warning, #F59E0B)" stroke-width="2" data-v-70b865a6></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--xto-color-warning, #F59E0B)" data-v-70b865a6></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--xto-color-warning, #F59E0B)" stroke-width="3" data-v-70b865a6></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-70b865a6></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-70b865a6></line></svg></div><h1 class="error-title" data-v-70b865a6>无访问权限</h1><p class="error-desc" data-v-70b865a6>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
2539
+ o[5] || (o[5] = ze('<div class="error-code" data-v-e6e1f7ac><span class="code-digit" data-v-e6e1f7ac>4</span><span class="code-zero warning" data-v-e6e1f7ac><span class="zero-inner" data-v-e6e1f7ac>0</span></span><span class="code-digit" data-v-e6e1f7ac>3</span></div><div class="error-illustration" data-v-e6e1f7ac><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e6e1f7ac><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(--xto-color-warning-light-9, #FFF3E8)" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="2" data-v-e6e1f7ac></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--xto-color-warning, #FF7D00)" data-v-e6e1f7ac></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="3" data-v-e6e1f7ac></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></line></svg></div><h1 class="error-title" data-v-e6e1f7ac>无访问权限</h1><p class="error-desc" data-v-e6e1f7ac>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
2540
2540
  e("div", Nn, [
2541
- b(n(ke), {
2541
+ k(n(we), {
2542
2542
  type: "primary",
2543
2543
  size: "large",
2544
2544
  onClick: u
@@ -2559,7 +2559,7 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2559
2559
  ]),
2560
2560
  _: 1
2561
2561
  }),
2562
- b(n(ke), {
2562
+ k(n(we), {
2563
2563
  size: "large",
2564
2564
  onClick: o[0] || (o[0] = (i) => n(l).go(-1))
2565
2565
  }, {
@@ -2591,9 +2591,9 @@ const Gn = /* @__PURE__ */ re(nn, [["render", rn], ["__scopeId", "data-v-5ef21e9
2591
2591
  ])
2592
2592
  ]));
2593
2593
  }
2594
- }), Xn = /* @__PURE__ */ re(In, [["__scopeId", "data-v-70b865a6"]]);
2594
+ }), Xn = /* @__PURE__ */ re(In, [["__scopeId", "data-v-e6e1f7ac"]]);
2595
2595
  function Jn() {
2596
- const t = ue(), l = le(), u = Ue(), s = w(() => l.userName || ""), o = w(() => l.userInfo), i = w(() => t.appName), h = w(() => u.isLoggedIn), v = w(() => t.isDark), d = w(() => t.theme), g = w(() => t.isCollapsed), _ = w(() => t.layout);
2596
+ const t = ue(), l = le(), u = Ue(), s = b(() => l.userName || ""), o = b(() => l.userInfo), i = b(() => t.appName), h = b(() => u.isLoggedIn), v = b(() => t.isDark), d = b(() => t.theme), g = b(() => t.isCollapsed), _ = b(() => t.layout);
2597
2597
  return {
2598
2598
  userName: s,
2599
2599
  userInfo: o,
@@ -2614,21 +2614,21 @@ function Jn() {
2614
2614
  function Zn() {
2615
2615
  const t = le();
2616
2616
  return {
2617
- isLoggedIn: w(() => t.isLoggedIn)
2617
+ isLoggedIn: b(() => t.isLoggedIn)
2618
2618
  };
2619
2619
  }
2620
2620
  function Qn(t, l = {}) {
2621
2621
  const { rules: u, onSubmit: s } = l, o = y(), i = qe({ ...t }), h = y(!1), v = y(!1), d = y(!1), g = () => {
2622
2622
  m(), d.value = !1, v.value = !0;
2623
- }, _ = (A) => {
2624
- Object.assign(i, A), d.value = !0, v.value = !0;
2623
+ }, _ = (D) => {
2624
+ Object.assign(i, D), d.value = !0, v.value = !0;
2625
2625
  }, f = () => {
2626
2626
  v.value = !1, m();
2627
2627
  }, m = () => {
2628
- var A;
2628
+ var D;
2629
2629
  Object.keys(t).forEach((W) => {
2630
2630
  i[W] = t[W];
2631
- }), (A = o.value) == null || A.resetFields();
2631
+ }), (D = o.value) == null || D.resetFields();
2632
2632
  };
2633
2633
  return {
2634
2634
  formRef: o,
@@ -2642,9 +2642,9 @@ function Qn(t, l = {}) {
2642
2642
  close: f,
2643
2643
  resetForm: m,
2644
2644
  handleSubmit: async () => {
2645
- var A;
2645
+ var D;
2646
2646
  try {
2647
- await ((A = o.value) == null ? void 0 : A.validate()), h.value = !0, await (s == null ? void 0 : s(i)), f();
2647
+ await ((D = o.value) == null ? void 0 : D.validate()), h.value = !0, await (s == null ? void 0 : s(i)), f();
2648
2648
  } catch (W) {
2649
2649
  console.error(W);
2650
2650
  } finally {
@@ -2678,9 +2678,9 @@ function el(t) {
2678
2678
  h.value = F, g();
2679
2679
  }, j = (F) => {
2680
2680
  v.value = F, h.value = 1, g();
2681
- }, A = () => {
2681
+ }, D = () => {
2682
2682
  g();
2683
- }, W = w(() => ({
2683
+ }, W = b(() => ({
2684
2684
  current: h.value,
2685
2685
  pageSize: v.value,
2686
2686
  total: i.value
@@ -2698,11 +2698,11 @@ function el(t) {
2698
2698
  handleReset: f,
2699
2699
  handlePageChange: m,
2700
2700
  handleSizeChange: j,
2701
- refresh: A
2701
+ refresh: D
2702
2702
  };
2703
2703
  }
2704
2704
  const Je = Ee("locale", () => {
2705
- const t = I.get("locale") || "zh-CN", l = It(t), u = y(t), s = Et(), { t: o, messages: i, setLocale: h, mergeMessages: v } = Ut(), d = w(() => {
2705
+ const t = I.get("locale") || "zh-CN", l = It(t), u = y(t), s = Et(), { t: o, messages: i, setLocale: h, mergeMessages: v } = Ut(), d = b(() => {
2706
2706
  const m = s.find((j) => j.code === u.value);
2707
2707
  return (m == null ? void 0 : m.name) || u.value;
2708
2708
  });
@@ -2778,7 +2778,7 @@ const mt = [
2778
2778
  {
2779
2779
  path: "/dashboard",
2780
2780
  name: "Dashboard",
2781
- component: () => import("./index-BXHwCe22.js"),
2781
+ component: () => import("./index-D4K3OfZa.js"),
2782
2782
  meta: {
2783
2783
  title: "仪表盘",
2784
2784
  icon: "dashboard",
@@ -2789,7 +2789,7 @@ const mt = [
2789
2789
  {
2790
2790
  path: "/system/user",
2791
2791
  name: "SystemUser",
2792
- component: () => import("./index-DydABgae.js"),
2792
+ component: () => import("./index-BO31bICK.js"),
2793
2793
  meta: {
2794
2794
  title: "用户管理",
2795
2795
  icon: "user",
@@ -2799,7 +2799,7 @@ const mt = [
2799
2799
  {
2800
2800
  path: "/system/role",
2801
2801
  name: "SystemRole",
2802
- component: () => import("./index-BZSZ3bx2.js"),
2802
+ component: () => import("./index-QdDB_2uu.js"),
2803
2803
  meta: {
2804
2804
  title: "角色管理",
2805
2805
  icon: "role",
@@ -2809,7 +2809,7 @@ const mt = [
2809
2809
  {
2810
2810
  path: "/system/menu",
2811
2811
  name: "SystemMenu",
2812
- component: () => import("./index-BKO6Hzba.js"),
2812
+ component: () => import("./index-DkG24eV5.js"),
2813
2813
  meta: {
2814
2814
  title: "菜单管理",
2815
2815
  icon: "menu",
@@ -2831,7 +2831,7 @@ const mt = [
2831
2831
  {
2832
2832
  path: "/dashboard",
2833
2833
  name: "Dashboard",
2834
- component: () => import("./index-BXHwCe22.js"),
2834
+ component: () => import("./index-D4K3OfZa.js"),
2835
2835
  meta: {
2836
2836
  title: "仪表盘",
2837
2837
  icon: "dashboard",
@@ -2851,7 +2851,7 @@ const mt = [
2851
2851
  {
2852
2852
  path: "user",
2853
2853
  name: "SystemUser",
2854
- component: () => import("./index-DydABgae.js"),
2854
+ component: () => import("./index-BO31bICK.js"),
2855
2855
  meta: {
2856
2856
  title: "用户管理",
2857
2857
  icon: "user",
@@ -2861,7 +2861,7 @@ const mt = [
2861
2861
  {
2862
2862
  path: "role",
2863
2863
  name: "SystemRole",
2864
- component: () => import("./index-BZSZ3bx2.js"),
2864
+ component: () => import("./index-QdDB_2uu.js"),
2865
2865
  meta: {
2866
2866
  title: "角色管理",
2867
2867
  icon: "role",
@@ -2871,7 +2871,7 @@ const mt = [
2871
2871
  {
2872
2872
  path: "menu",
2873
2873
  name: "SystemMenu",
2874
- component: () => import("./index-BKO6Hzba.js"),
2874
+ component: () => import("./index-DkG24eV5.js"),
2875
2875
  meta: {
2876
2876
  title: "菜单管理",
2877
2877
  icon: "menu",
@@ -3038,7 +3038,7 @@ function ul(t, l = {}) {
3038
3038
  }), t.afterEach(() => {
3039
3039
  });
3040
3040
  }
3041
- var Dn = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(Dn || {}), An = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(An || {}), Fn = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Fn || {});
3041
+ var An = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(An || {}), Dn = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(Dn || {}), Fn = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Fn || {});
3042
3042
  const dl = {
3043
3043
  1: "启用",
3044
3044
  0: "禁用"
@@ -3108,12 +3108,12 @@ const dl = {
3108
3108
  async function gl(t) {
3109
3109
  await gt(t.basePath);
3110
3110
  const l = et();
3111
- return l && yt(l), bt({
3111
+ return l && yt(l), kt({
3112
3112
  appId: t.appId,
3113
3113
  clientId: t.clientId,
3114
3114
  apiBaseUrl: l || t.apiBaseUrl,
3115
3115
  basePath: t.basePath
3116
- }), t.basePath && kt(t.basePath), Promise.resolve().then(() => zt).then(({ useAppStore: u }) => {
3116
+ }), t.basePath && wt(t.basePath), Promise.resolve().then(() => zt).then(({ useAppStore: u }) => {
3117
3117
  const s = u();
3118
3118
  t.appName && s.setAppName(t.appName), t.indexPath && s.setIndexPath(t.indexPath), t.loginPath && s.setLoginPath(t.loginPath);
3119
3119
  }), t.locale && Promise.resolve().then(() => En).then(({ useLocaleStore: u }) => {
@@ -3138,7 +3138,7 @@ export {
3138
3138
  Qn as D,
3139
3139
  tl as E,
3140
3140
  Gn as F,
3141
- An as G,
3141
+ Dn as G,
3142
3142
  Os as H,
3143
3143
  Je as I,
3144
3144
  de as J,
@@ -3146,7 +3146,7 @@ export {
3146
3146
  ut as L,
3147
3147
  Fn as M,
3148
3148
  le as N,
3149
- Dn as S,
3149
+ An as S,
3150
3150
  Yn as T,
3151
3151
  re as _,
3152
3152
  vl as a,