@okiss/oms 0.0.81 → 0.0.82

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.
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { ref as O, watch as en, computed as w, defineComponent as z, onBeforeMount as pt, provide as tn, resolveComponent as P, createBlock as f, openBlock as a, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as nn, createElementBlock as v, Fragment as $, renderList as V, toDisplayString as N, normalizeClass as Y, renderSlot as ce, createCommentVNode as B, mergeProps as Q, toRefs as on, unref as d, isRef as dt, onMounted as Ue, normalizeStyle as ln, createElementVNode as k, withKeys as Ye, withModifiers as et, resolveDynamicComponent as mt, Transition as sn, normalizeProps as le, guardReactiveProps as we, withDirectives as Te, vModelText as Re, onUnmounted as an, getCurrentInstance as rn, h as cn, toRaw as un, createApp as pn } from "vue";
2
- import { normalizeTheme as ue, applyDocumentTheme as dn, dispatchThemeChange as mn, addNewStyle as fn, addNewStyleTag as hn, queryParams as bn, logGroup as yn, compactObject as ft, showEleByClassName as ht, waterMarker as _n, Cache as he, isExternal as tt, getQueryParam as bt, createIFrame as vn, strVarReplace as ne, obj2Param as gn, isObject as ve, isString as yt, effectDataTrans as kn, isArray as wn } from "@okiss/utils";
1
+ import { ref as O, watch as en, computed as w, defineComponent as K, onBeforeMount as pt, provide as tn, resolveComponent as A, createBlock as f, openBlock as a, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as nn, createElementBlock as y, Fragment as $, renderList as q, toDisplayString as N, normalizeClass as Y, renderSlot as ce, createCommentVNode as B, mergeProps as Q, toRefs as on, unref as d, isRef as dt, onMounted as Ve, normalizeStyle as ln, createElementVNode as k, withKeys as Ye, withModifiers as et, resolveDynamicComponent as mt, Transition as sn, normalizeProps as le, guardReactiveProps as we, withDirectives as Te, vModelText as Re, onUnmounted as an, getCurrentInstance as rn, h as cn, toRaw as un, createApp as pn } from "vue";
2
+ import { normalizeTheme as ue, applyDocumentTheme as dn, dispatchThemeChange as mn, addNewStyle as fn, addNewStyleTag as hn, queryParams as bn, logGroup as yn, compactObject as ft, showEleByClassName as ht, waterMarker as _n, Cache as he, isExternal as tt, getQueryParam as bt, createIFrame as gn, strVarReplace as ne, obj2Param as vn, isObject as ge, isString as yt, effectDataTrans as kn, isArray as wn } from "@okiss/utils";
3
3
  import { defineStore as Se, createPinia as Sn } from "pinia";
4
4
  import de from "js-cookie";
5
5
  import _t from "element-plus/es/locale/lang/zh-cn";
6
- import xn, { cloneDeep as S, merge as G, get as pe, unset as vt, isObject as En } from "lodash";
6
+ import xn, { cloneDeep as S, merge as z, get as pe, unset as gt, isObject as En } from "lodash";
7
7
  import Be from "mockjs";
8
- import Ve from "axios";
9
- import In, { ElMessageBox as gt, ElMessage as Cn, ElCol as Tn, ElRow as Rn, ElCard as Bn } from "element-plus";
8
+ import qe from "axios";
9
+ import In, { ElMessageBox as vt, ElMessage as Cn, ElCol as Tn, ElRow as Rn, ElCard as Bn } from "element-plus";
10
10
  import "element-plus/dist/index.css";
11
11
  import "element-plus/theme-chalk/dark/css-vars.css";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as se, useRouter as xe, onBeforeRouteLeave as On, createRouter as $n, createWebHashHistory as Pn, onBeforeRouteUpdate as An } from "vue-router";
14
- import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as Ee, ElMain as jn, ElAside as Nn, ElForm as kt, ElFormItem as wt, ElSelect as He, ElOption as Fe, ElDivider as St, ElButton as me, ElCol as Ge, ElDrawer as xt, ElTooltip as qn, ElIcon as Un, ElDropdown as Vn, ElDropdownMenu as Hn, ElDropdownItem as Fn, ElMenuItem as Gn, ElSubMenu as zn, ElOptionGroup as Kn, ElScrollbar as Jn, ElMenu as Wn, ElBacktop as Qn, ElMessage as Xn, ElAlert as Et, ElCard as Zn, ElTree as Yn } from "element-plus/es";
13
+ import { useRoute as se, useRouter as xe, onBeforeRouteLeave as On, createRouter as $n, createWebHashHistory as An, onBeforeRouteUpdate as Pn } from "vue-router";
14
+ import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as Ee, ElMain as jn, ElAside as Nn, ElForm as kt, ElFormItem as wt, ElSelect as He, ElOption as Fe, ElDivider as St, ElButton as me, ElCol as Ge, ElDrawer as xt, ElTooltip as Un, ElIcon as Vn, ElDropdown as qn, ElDropdownMenu as Hn, ElDropdownItem as Fn, ElMenuItem as Gn, ElSubMenu as zn, ElOptionGroup as Kn, ElScrollbar as Jn, ElMenu as Wn, ElBacktop as Qn, ElMessage as Xn, ElAlert as Et, ElCard as Zn, ElTree as Yn } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
35
  import "element-plus/es/components/main/style/css";
36
- import { JsonView as It, VBtn as ze, VForm as oe, VTable as ge, setUploadHeaderHandle as to, VIcon as no } from "@okiss/vbtf";
36
+ import { JsonView as It, VBtn as ze, VForm as oe, VTable as ve, setUploadHeaderHandle as to, VIcon as no } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
39
  import oo from "mitt";
@@ -63,7 +63,7 @@ function fe() {
63
63
  return de.get(Ke) || "";
64
64
  }
65
65
  function ro(e) {
66
- const t = q(A), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
66
+ const t = U(P), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
67
67
  return de.set(Ke, e, { expires: n });
68
68
  }
69
69
  function Ct() {
@@ -113,11 +113,11 @@ const uo = {
113
113
  settings: Rt,
114
114
  plugins: [],
115
115
  mock: !1
116
- }, po = S(Rt), q = Se("settings", {
116
+ }, po = S(Rt), U = Se("settings", {
117
117
  state: () => ({ ...po }),
118
118
  actions: {
119
119
  updateSettings(e) {
120
- G(this, e);
120
+ z(this, e);
121
121
  }
122
122
  }
123
123
  }), nt = {
@@ -204,7 +204,7 @@ const uo = {
204
204
  const l = o.data?.role_ids || [];
205
205
  this.updateState({ key: "name", value: o.data?.name }), this.updateState({ key: "nickname", value: o.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: o.data?.env });
206
206
  const s = o.data?.website || {};
207
- q().updateSettings(s), !de.get("username") && de.set("username", o.data?.name), e(!0);
207
+ U().updateSettings(s), !de.get("username") && de.set("username", o.data?.name), e(!0);
208
208
  }).catch((o) => t(o));
209
209
  });
210
210
  },
@@ -315,9 +315,9 @@ const uo = {
315
315
  this.SET_CURRENT_CELLITEM(e);
316
316
  }
317
317
  }
318
- }), A = Sn();
318
+ }), P = Sn();
319
319
  function bo(e) {
320
- e.use(A);
320
+ e.use(P);
321
321
  }
322
322
  const Ot = "oms-theme", $t = O("light");
323
323
  let lt = !1, be = null;
@@ -335,7 +335,7 @@ function $e(e) {
335
335
  const t = ue(e);
336
336
  $t.value = t, dn(t), mn(t), _o(t);
337
337
  }
338
- function vo(e) {
338
+ function go(e) {
339
339
  if (typeof window > "u" || typeof window.matchMedia != "function") {
340
340
  be = null;
341
341
  return;
@@ -348,8 +348,8 @@ function vo(e) {
348
348
  typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), be = null;
349
349
  };
350
350
  }
351
- function Pt() {
352
- const e = q(), t = (s) => {
351
+ function At() {
352
+ const e = U(), t = (s) => {
353
353
  const i = ue(s);
354
354
  e.themeMode !== i ? e.updateSettings({ themeMode: i }) : $e(i);
355
355
  };
@@ -362,7 +362,7 @@ function Pt() {
362
362
  $e(ue(i));
363
363
  },
364
364
  { immediate: !0 }
365
- ), be?.(), vo((i) => {
365
+ ), be?.(), go((i) => {
366
366
  t(i);
367
367
  });
368
368
  }
@@ -376,10 +376,10 @@ function Pt() {
376
376
  }
377
377
  };
378
378
  }
379
- const go = /* @__PURE__ */ z({
379
+ const vo = /* @__PURE__ */ K({
380
380
  __name: "App",
381
381
  setup(e) {
382
- return Pt(), pt(() => {
382
+ return At(), pt(() => {
383
383
  const t = document.getElementById("preloader");
384
384
  t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), fn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), hn(`.iconfont {
385
385
  font-size: 19px;
@@ -388,7 +388,7 @@ const go = /* @__PURE__ */ z({
388
388
  font-family: iconfont !important;
389
389
  }`));
390
390
  }), window?.OmsOptions?.form?.vsPath && tn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
391
- const o = P("router-view");
391
+ const o = A("router-view");
392
392
  return a(), f(o);
393
393
  };
394
394
  }
@@ -523,13 +523,13 @@ const wo = {
523
523
  ], Eo = [
524
524
  ...xo
525
525
  ], De = {};
526
- function At(e) {
526
+ function Pt(e) {
527
527
  e.forEach((t) => {
528
528
  const n = Lt(t);
529
529
  De[`${t.method}::${n}`] = t;
530
530
  });
531
531
  }
532
- At(Eo);
532
+ Pt(Eo);
533
533
  function Lt(e) {
534
534
  let t = e.url, n = e.baseURL || Ie.axios?.baseURL;
535
535
  return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
@@ -543,7 +543,7 @@ function Io() {
543
543
  });
544
544
  });
545
545
  }
546
- const Co = Cn, st = gt, To = Ve.CancelToken, ye = {
546
+ const Co = Cn, st = vt, To = qe.CancelToken, ye = {
547
547
  taskList: {},
548
548
  cacheList: /* @__PURE__ */ new Map(),
549
549
  uniqueId(e) {
@@ -602,7 +602,7 @@ function Oa(e, t) {
602
602
  function Oo(e) {
603
603
  return Mt[e];
604
604
  }
605
- const $o = /* @__PURE__ */ z({
605
+ const $o = /* @__PURE__ */ K({
606
606
  name: "Dashboard",
607
607
  setup() {
608
608
  const e = Oo("dashboard");
@@ -620,7 +620,7 @@ const $o = /* @__PURE__ */ z({
620
620
  for (const [o, l] of t)
621
621
  n[o] = l;
622
622
  return n;
623
- }, Po = /* @__PURE__ */ L($o, [["__scopeId", "data-v-85165680"]]), Ao = {
623
+ }, Ao = /* @__PURE__ */ L($o, [["__scopeId", "data-v-85165680"]]), Po = {
624
624
  data() {
625
625
  return {
626
626
  levelList: null
@@ -676,11 +676,11 @@ function Do(e, t, n, o, l, s) {
676
676
  default: r(() => [
677
677
  u(nn, { name: "breadcrumb" }, {
678
678
  default: r(() => [
679
- (a(!0), v($, null, V(l.levelList, (p, m) => (a(), f(i, {
679
+ (a(!0), y($, null, q(l.levelList, (p, m) => (a(), f(i, {
680
680
  key: p.path
681
681
  }, {
682
682
  default: r(() => [
683
- p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || m === l.levelList.length - 1 ? (a(), v("span", Lo, N(p.meta.title), 1)) : (a(), v("a", {
683
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || m === l.levelList.length - 1 ? (a(), y("span", Lo, N(p.meta.title), 1)) : (a(), y("a", {
684
684
  key: 1,
685
685
  onClick: (h) => s.handleLink(p)
686
686
  }, N(p.meta.title), 9, Mo))
@@ -694,7 +694,7 @@ function Do(e, t, n, o, l, s) {
694
694
  _: 1
695
695
  });
696
696
  }
697
- const jo = /* @__PURE__ */ L(Ao, [["render", Do], ["__scopeId", "data-v-fa74804e"]]), No = {
697
+ const jo = /* @__PURE__ */ L(Po, [["render", Do], ["__scopeId", "data-v-fa74804e"]]), No = {
698
698
  name: "Hamburger",
699
699
  props: {
700
700
  isActive: {
@@ -709,9 +709,9 @@ const jo = /* @__PURE__ */ L(Ao, [["render", Do], ["__scopeId", "data-v-fa74804e
709
709
  }
710
710
  }
711
711
  };
712
- function qo(e, t, n, o, l, s) {
713
- const i = P("v-icon");
714
- return a(), v("div", {
712
+ function Uo(e, t, n, o, l, s) {
713
+ const i = A("v-icon");
714
+ return a(), y("div", {
715
715
  style: { padding: "0 15px" },
716
716
  onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
717
717
  }, [
@@ -721,7 +721,7 @@ function qo(e, t, n, o, l, s) {
721
721
  }, null, 8, ["class"])
722
722
  ]);
723
723
  }
724
- const Uo = /* @__PURE__ */ L(No, [["render", qo]]), Vo = {};
724
+ const Vo = /* @__PURE__ */ L(No, [["render", Uo]]), qo = {};
725
725
  function Ho(e, t) {
726
726
  const n = Ee, o = jn, l = Nn, s = Dn;
727
727
  return a(), f(s, { style: { width: "100%", height: "100%" } }, {
@@ -755,7 +755,7 @@ function Ho(e, t) {
755
755
  _: 3
756
756
  });
757
757
  }
758
- const Dt = /* @__PURE__ */ L(Vo, [["render", Ho], ["__scopeId", "data-v-7c3d697b"]]), Fo = {
758
+ const Dt = /* @__PURE__ */ L(qo, [["render", Ho], ["__scopeId", "data-v-7c3d697b"]]), Fo = {
759
759
  type: "input",
760
760
  name: "文本框",
761
761
  default: {
@@ -1443,7 +1443,7 @@ const je = jt, ol = {
1443
1443
  }
1444
1444
  }
1445
1445
  ]
1446
- }, Pe = {
1446
+ }, Ae = {
1447
1447
  labelPosition: "top",
1448
1448
  submitButton: !1,
1449
1449
  cancelButton: !1
@@ -1537,7 +1537,7 @@ const ll = {
1537
1537
  immediate: !0,
1538
1538
  handler(e) {
1539
1539
  const t = S(e);
1540
- e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = G(this.builderSchema, { options: t }), this.key++);
1540
+ e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = z(this.builderSchema, { options: t }), this.key++);
1541
1541
  }
1542
1542
  },
1543
1543
  ctrlOptions: {
@@ -1562,7 +1562,7 @@ const ll = {
1562
1562
  handler(e) {
1563
1563
  const t = this.ctrlMap[e];
1564
1564
  this.ctrlSchema = S({
1565
- options: S(Pe),
1565
+ options: S(Ae),
1566
1566
  formItems: S(t.builder)
1567
1567
  });
1568
1568
  const n = pe(this.builderSchema, this.activeIndex);
@@ -1587,12 +1587,12 @@ const ll = {
1587
1587
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1588
1588
  const n = this.ctrlMap[e];
1589
1589
  this.activeCtrl = n, this.builderSchema[t].push(S(n.default)), this.ctrlSchema = S({
1590
- options: S(Pe),
1590
+ options: S(Ae),
1591
1591
  formItems: S(n.builder)
1592
1592
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1593
1593
  },
1594
1594
  removeOne() {
1595
- vt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1595
+ gt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1596
1596
  },
1597
1597
  clicklabel() {
1598
1598
  const e = this.activeIndex;
@@ -1603,7 +1603,7 @@ const ll = {
1603
1603
  return;
1604
1604
  }
1605
1605
  this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = S({
1606
- options: S(Pe),
1606
+ options: S(Ae),
1607
1607
  formItems: S(l.builder)
1608
1608
  }), this.ctrlKey++;
1609
1609
  }
@@ -1620,7 +1620,7 @@ const ll = {
1620
1620
  }
1621
1621
  };
1622
1622
  function il(e, t, n, o, l, s) {
1623
- const i = P("v-form"), c = St, p = me, m = P("JsonView"), h = P("VButton"), y = Fe, b = He, x = wt, E = kt, T = P("dev-layout");
1623
+ const i = A("v-form"), c = St, p = me, m = A("JsonView"), h = A("VButton"), g = Fe, b = He, x = wt, E = kt, T = A("dev-layout");
1624
1624
  return a(), f(T, null, {
1625
1625
  main: r(() => [
1626
1626
  l.builderSchema.formItems ? (a(), f(i, Q({
@@ -1659,7 +1659,7 @@ function il(e, t, n, o, l, s) {
1659
1659
  "onUpdate:modelValue": t[0] || (t[0] = (I) => l.currentCtrlType = I)
1660
1660
  }, {
1661
1661
  default: r(() => [
1662
- (a(!0), v($, null, V(l.types, (I, R) => (a(), f(y, {
1662
+ (a(!0), y($, null, q(l.types, (I, R) => (a(), f(g, {
1663
1663
  key: R,
1664
1664
  label: I.label,
1665
1665
  value: I.value
@@ -1876,7 +1876,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
1876
1876
  label: "导出按钮"
1877
1877
  }
1878
1878
  ]
1879
- }, Ae = {
1879
+ }, Pe = {
1880
1880
  labelPosition: "top",
1881
1881
  submitButton: !1,
1882
1882
  cancelButton: !1
@@ -2111,7 +2111,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2111
2111
  label: "提示"
2112
2112
  }
2113
2113
  ]
2114
- }, vl = {
2114
+ }, gl = {
2115
2115
  type: "tpl",
2116
2116
  name: "模板",
2117
2117
  default: {
@@ -2142,7 +2142,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2142
2142
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2143
2143
  }
2144
2144
  ]
2145
- }, gl = {
2145
+ }, vl = {
2146
2146
  span: pl,
2147
2147
  enum: dl,
2148
2148
  html: ml,
@@ -2151,7 +2151,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2151
2151
  json: bl,
2152
2152
  link: yl,
2153
2153
  rich: _l,
2154
- tpl: vl
2154
+ tpl: gl
2155
2155
  }, kl = {
2156
2156
  type: "jump",
2157
2157
  name: "跳转",
@@ -2382,7 +2382,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2382
2382
  form: Sl,
2383
2383
  table: xl
2384
2384
  }, Il = {
2385
- components: { JsonView: It, DevLayout: Dt, VTable: ge, VForm: oe, VButton: ze },
2385
+ components: { JsonView: It, DevLayout: Dt, VTable: ve, VForm: oe, VButton: ze },
2386
2386
  props: {
2387
2387
  schema: {
2388
2388
  type: Object,
@@ -2411,7 +2411,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2411
2411
  activeIndex: void 0,
2412
2412
  ctrlMap: {
2413
2413
  filter: { input: rl, select: cl, date: ul },
2414
- headers: gl,
2414
+ headers: vl,
2415
2415
  buttons: El
2416
2416
  },
2417
2417
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
@@ -2443,7 +2443,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2443
2443
  deep: !0,
2444
2444
  immediate: !0,
2445
2445
  handler(e) {
2446
- this.builderSchema = G(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2446
+ this.builderSchema = z(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2447
2447
  }
2448
2448
  },
2449
2449
  ctrlOptions: {
@@ -2474,7 +2474,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2474
2474
  handler(e) {
2475
2475
  const t = this.ctrlMap[this.activeBrick][e];
2476
2476
  this.ctrlSchema = S({
2477
- options: S(Ae),
2477
+ options: S(Pe),
2478
2478
  formItems: S(t.builder)
2479
2479
  });
2480
2480
  const n = pe(this.builderSchema, this.activeIndex);
@@ -2522,12 +2522,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2522
2522
  return;
2523
2523
  }
2524
2524
  this.activeCtrl = l[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(S(l[e].default)), this.ctrlSchema = S({
2525
- options: S(Ae),
2525
+ options: S(Pe),
2526
2526
  formItems: S(l[e].builder)
2527
2527
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2528
2528
  },
2529
2529
  removeOne() {
2530
- vt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2530
+ gt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2531
2531
  },
2532
2532
  clicklabel() {
2533
2533
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
@@ -2542,7 +2542,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2542
2542
  return;
2543
2543
  }
2544
2544
  this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = S({
2545
- options: S(Ae),
2545
+ options: S(Pe),
2546
2546
  formItems: S(l.builder)
2547
2547
  }), this.ctrlKey++;
2548
2548
  }
@@ -2566,8 +2566,8 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2566
2566
  }
2567
2567
  };
2568
2568
  function Cl(e, t, n, o, l, s) {
2569
- const i = Ge, c = me, p = Ee, m = P("v-table"), h = St, y = me, b = P("JsonView"), x = P("VButton"), E = Fe, T = He, I = wt, R = kt, _ = P("v-form"), K = P("dev-layout");
2570
- return a(), f(K, null, {
2569
+ const i = Ge, c = me, p = Ee, m = A("v-table"), h = St, g = me, b = A("JsonView"), x = A("VButton"), E = Fe, T = He, I = wt, R = kt, v = A("v-form"), F = A("dev-layout");
2570
+ return a(), f(F, null, {
2571
2571
  "left-aside": r(() => [
2572
2572
  u(p, { style: { width: "200px" } }, {
2573
2573
  default: r(() => [
@@ -2586,7 +2586,7 @@ function Cl(e, t, n, o, l, s) {
2586
2586
  default: r(() => [
2587
2587
  u(c, {
2588
2588
  class: "ctrl-btn",
2589
- onClick: t[0] || (t[0] = (g) => s.pushFilter("input"))
2589
+ onClick: t[0] || (t[0] = (_) => s.pushFilter("input"))
2590
2590
  }, {
2591
2591
  default: r(() => [...t[6] || (t[6] = [
2592
2592
  C("文本框", -1)
@@ -2600,7 +2600,7 @@ function Cl(e, t, n, o, l, s) {
2600
2600
  default: r(() => [
2601
2601
  u(c, {
2602
2602
  class: "ctrl-btn",
2603
- onClick: t[1] || (t[1] = (g) => s.pushFilter("select"))
2603
+ onClick: t[1] || (t[1] = (_) => s.pushFilter("select"))
2604
2604
  }, {
2605
2605
  default: r(() => [...t[7] || (t[7] = [
2606
2606
  C("下拉框", -1)
@@ -2614,7 +2614,7 @@ function Cl(e, t, n, o, l, s) {
2614
2614
  default: r(() => [
2615
2615
  u(c, {
2616
2616
  class: "ctrl-btn",
2617
- onClick: t[2] || (t[2] = (g) => s.pushFilter("date"))
2617
+ onClick: t[2] || (t[2] = (_) => s.pushFilter("date"))
2618
2618
  }, {
2619
2619
  default: r(() => [...t[8] || (t[8] = [
2620
2620
  C("日期", -1)
@@ -2635,17 +2635,17 @@ function Cl(e, t, n, o, l, s) {
2635
2635
  ])]),
2636
2636
  _: 1
2637
2637
  }),
2638
- (a(!0), v($, null, V(Object.keys(l.ctrlMap.headers), (g, U) => (a(), f(i, {
2639
- key: `column-${U}`,
2638
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.headers), (_, V) => (a(), f(i, {
2639
+ key: `column-${V}`,
2640
2640
  class: "ctrl"
2641
2641
  }, {
2642
2642
  default: r(() => [
2643
2643
  u(c, {
2644
2644
  class: "ctrl-btn",
2645
- onClick: (Z) => s.pushHeaders(l.ctrlMap.headers[g].type)
2645
+ onClick: (Z) => s.pushHeaders(l.ctrlMap.headers[_].type)
2646
2646
  }, {
2647
2647
  default: r(() => [
2648
- C(N(l.ctrlMap.headers[g].name), 1)
2648
+ C(N(l.ctrlMap.headers[_].name), 1)
2649
2649
  ]),
2650
2650
  _: 2
2651
2651
  }, 1032, ["onClick"])
@@ -2663,17 +2663,17 @@ function Cl(e, t, n, o, l, s) {
2663
2663
  ])]),
2664
2664
  _: 1
2665
2665
  }),
2666
- (a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
2667
- key: `column-${U}`,
2666
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2667
+ key: `column-${V}`,
2668
2668
  class: "ctrl"
2669
2669
  }, {
2670
2670
  default: r(() => [
2671
2671
  u(c, {
2672
2672
  class: "ctrl-btn",
2673
- onClick: (Z) => s.pushRowButton(l.ctrlMap.buttons[g].type)
2673
+ onClick: (Z) => s.pushRowButton(l.ctrlMap.buttons[_].type)
2674
2674
  }, {
2675
2675
  default: r(() => [
2676
- C(N(l.ctrlMap.buttons[g].name), 1)
2676
+ C(N(l.ctrlMap.buttons[_].name), 1)
2677
2677
  ]),
2678
2678
  _: 2
2679
2679
  }, 1032, ["onClick"])
@@ -2691,17 +2691,17 @@ function Cl(e, t, n, o, l, s) {
2691
2691
  ])]),
2692
2692
  _: 1
2693
2693
  }),
2694
- (a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
2695
- key: `column-${U}`,
2694
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2695
+ key: `column-${V}`,
2696
2696
  class: "ctrl"
2697
2697
  }, {
2698
2698
  default: r(() => [
2699
2699
  u(c, {
2700
2700
  class: "ctrl-btn",
2701
- onClick: (Z) => s.pushNormalButton(l.ctrlMap.buttons[g].type)
2701
+ onClick: (Z) => s.pushNormalButton(l.ctrlMap.buttons[_].type)
2702
2702
  }, {
2703
2703
  default: r(() => [
2704
- C(N(l.ctrlMap.buttons[g].name), 1)
2704
+ C(N(l.ctrlMap.buttons[_].name), 1)
2705
2705
  ]),
2706
2706
  _: 2
2707
2707
  }, 1032, ["onClick"])
@@ -2730,17 +2730,17 @@ function Cl(e, t, n, o, l, s) {
2730
2730
  ])]),
2731
2731
  _: 1
2732
2732
  }),
2733
- (a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
2734
- key: `column-${U}`,
2733
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2734
+ key: `column-${V}`,
2735
2735
  class: "ctrl"
2736
2736
  }, {
2737
2737
  default: r(() => [
2738
2738
  u(c, {
2739
2739
  class: "ctrl-btn",
2740
- onClick: (Z) => s.pushBatchButton(l.ctrlMap.buttons[g].type)
2740
+ onClick: (Z) => s.pushBatchButton(l.ctrlMap.buttons[_].type)
2741
2741
  }, {
2742
2742
  default: r(() => [
2743
- C(N(l.ctrlMap.buttons[g].name), 1)
2743
+ C(N(l.ctrlMap.buttons[_].name), 1)
2744
2744
  ]),
2745
2745
  _: 2
2746
2746
  }, 1032, ["onClick"])
@@ -2772,7 +2772,7 @@ function Cl(e, t, n, o, l, s) {
2772
2772
  dev: !0
2773
2773
  }, l.builderSchema), null, 16)),
2774
2774
  u(h),
2775
- u(y, {
2775
+ u(g, {
2776
2776
  type: "primary",
2777
2777
  onClick: s.saveSchema
2778
2778
  }, {
@@ -2799,13 +2799,13 @@ function Cl(e, t, n, o, l, s) {
2799
2799
  default: r(() => [
2800
2800
  u(T, {
2801
2801
  modelValue: l.currentCtrlType,
2802
- "onUpdate:modelValue": t[3] || (t[3] = (g) => l.currentCtrlType = g)
2802
+ "onUpdate:modelValue": t[3] || (t[3] = (_) => l.currentCtrlType = _)
2803
2803
  }, {
2804
2804
  default: r(() => [
2805
- (a(!0), v($, null, V(s.types, (g, U) => (a(), f(E, {
2806
- key: U,
2807
- label: g.label,
2808
- value: g.value
2805
+ (a(!0), y($, null, q(s.types, (_, V) => (a(), f(E, {
2806
+ key: V,
2807
+ label: _.label,
2808
+ value: _.value
2809
2809
  }, null, 8, ["label", "value"]))), 128))
2810
2810
  ]),
2811
2811
  _: 1
@@ -2816,10 +2816,10 @@ function Cl(e, t, n, o, l, s) {
2816
2816
  ]),
2817
2817
  _: 1
2818
2818
  })) : B("", !0),
2819
- (a(), f(_, Q({
2819
+ (a(), f(v, Q({
2820
2820
  key: l.ctrlKey,
2821
2821
  modelValue: l.ctrlOptions,
2822
- "onUpdate:modelValue": t[4] || (t[4] = (g) => l.ctrlOptions = g)
2822
+ "onUpdate:modelValue": t[4] || (t[4] = (_) => l.ctrlOptions = _)
2823
2823
  }, l.ctrlSchema), null, 16, ["modelValue"]))
2824
2824
  ]),
2825
2825
  _: 1
@@ -2832,8 +2832,8 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2832
2832
  O(1);
2833
2833
  const n = se(), o = X(), l = w(() => o.pages[n.path]);
2834
2834
  return (s, i) => {
2835
- const c = P("VIcon"), p = xt;
2836
- return a(), v($, null, [
2835
+ const c = A("VIcon"), p = xt;
2836
+ return a(), y($, null, [
2837
2837
  u(c, {
2838
2838
  name: "ra-set",
2839
2839
  onClick: i[0] || (i[0] = (m) => t.value = !d(t))
@@ -2866,18 +2866,18 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2866
2866
  }, Ol = { class: "right-content" }, $l = {
2867
2867
  key: 0,
2868
2868
  class: "right-item"
2869
- }, Pl = {
2869
+ }, Al = {
2870
2870
  class: "right-item-button",
2871
2871
  style: { padding: "0" }
2872
- }, Al = { class: "user-info" }, Ll = ["src"], Ml = { class: "user-name" }, Dl = /* @__PURE__ */ z({
2872
+ }, Pl = { class: "user-info" }, Ll = ["src"], Ml = { class: "user-name" }, Dl = /* @__PURE__ */ K({
2873
2873
  __name: "Navbar",
2874
2874
  setup(e) {
2875
- const t = X(), n = q(), o = j();
2875
+ const t = X(), n = U(), o = j();
2876
2876
  O(!1);
2877
2877
  const l = O(!1);
2878
2878
  O(""), O(0);
2879
- const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar), p = w(() => o.name), m = w(() => o.nickname), h = w(() => n.nav), y = w(() => n), b = w(() => o), x = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: T } = Pt(), I = w(() => {
2880
- const D = y.value.envColor?.[b.value.env];
2879
+ const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar), p = w(() => o.name), m = w(() => o.nickname), h = w(() => n.nav), g = w(() => n), b = w(() => o), x = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: T } = At(), I = w(() => {
2880
+ const D = g.value.envColor?.[b.value.env];
2881
2881
  return E.value ? {
2882
2882
  background: "linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%)",
2883
2883
  borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
@@ -2892,16 +2892,16 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2892
2892
  boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
2893
2893
  };
2894
2894
  });
2895
- Ue(() => {
2895
+ Ve(() => {
2896
2896
  ht("el-submenu is-active");
2897
- const D = g("navBarNotice") || "";
2898
- D.length > 0 && !g("closeNavNotice") && Z(D) && window?.App?.config?.globalProperties?.$notify({
2897
+ const D = _("navBarNotice") || "";
2898
+ D.length > 0 && !_("closeNavNotice") && Z(D) && window?.App?.config?.globalProperties?.$notify({
2899
2899
  title: "提示",
2900
2900
  message: D,
2901
2901
  dangerouslyUseHTMLString: !0,
2902
2902
  duration: 0,
2903
- onClose: U
2904
- }), y.value.envColor?.[b.value.env] && _n({
2903
+ onClose: V
2904
+ }), g.value.envColor?.[b.value.env] && _n({
2905
2905
  elRef: R.value.$el,
2906
2906
  waterMark: b.value.env,
2907
2907
  color: "skyblue",
@@ -2909,19 +2909,19 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2909
2909
  });
2910
2910
  });
2911
2911
  const R = O();
2912
- function _() {
2912
+ function v() {
2913
2913
  t.toggleSideBar();
2914
2914
  }
2915
- async function K() {
2915
+ async function F() {
2916
2916
  await o.logout();
2917
2917
  const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2918
2918
  location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
2919
2919
  }
2920
- function g(D) {
2920
+ function _(D) {
2921
2921
  return n[D];
2922
2922
  }
2923
- async function U() {
2924
- n.updateSettings({ closeNavNotice: !0 }), ie(g("navBarNotice"));
2923
+ async function V() {
2924
+ n.updateSettings({ closeNavNotice: !0 }), ie(_("navBarNotice"));
2925
2925
  }
2926
2926
  function Z(D) {
2927
2927
  const M = "dismiss:navbar_notice";
@@ -2931,7 +2931,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2931
2931
  he.set("dismiss:navbar_notice", D);
2932
2932
  }
2933
2933
  return (D, M) => {
2934
- const Xe = Ge, Jt = Un, Wt = qn, Ze = Fn, Qt = Hn, Xt = Vn, Zt = xt, Yt = Ee;
2934
+ const Xe = Ge, Jt = Vn, Wt = Un, Ze = Fn, Qt = Hn, Xt = qn, Zt = xt, Yt = Ee;
2935
2935
  return a(), f(Yt, {
2936
2936
  ref_key: "header",
2937
2937
  ref: R,
@@ -2941,10 +2941,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2941
2941
  default: r(() => [
2942
2942
  u(Xe, { span: 16 }, {
2943
2943
  default: r(() => [
2944
- u(Uo, {
2944
+ u(Vo, {
2945
2945
  "is-active": i.value.opened,
2946
2946
  class: "hamburger-container",
2947
- onToggleClick: _
2947
+ onToggleClick: v
2948
2948
  }, null, 8, ["is-active"]),
2949
2949
  u(jo, { class: "breadcrumb-container" })
2950
2950
  ]),
@@ -2953,10 +2953,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2953
2953
  u(Xe, { span: 8 }, {
2954
2954
  default: r(() => [
2955
2955
  k("div", Ol, [
2956
- x.value ? (a(), v("div", $l, [
2956
+ x.value ? (a(), y("div", $l, [
2957
2957
  u(Bl)
2958
2958
  ])) : B("", !0),
2959
- k("div", Pl, [
2959
+ k("div", Al, [
2960
2960
  u(d(ze), { buttons: h.value }, null, 8, ["buttons"])
2961
2961
  ]),
2962
2962
  u(Wt, {
@@ -3012,7 +3012,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3012
3012
  u(Ze, {
3013
3013
  divided: "",
3014
3014
  icon: "el-icon-switch-button",
3015
- onClick: K
3015
+ onClick: F
3016
3016
  }, {
3017
3017
  default: r(() => [...M[6] || (M[6] = [
3018
3018
  C("退出登录", -1)
@@ -3024,7 +3024,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3024
3024
  })
3025
3025
  ]),
3026
3026
  default: r(() => [
3027
- k("div", Al, [
3027
+ k("div", Pl, [
3028
3028
  k("img", {
3029
3029
  src: c.value ? c.value : s.value,
3030
3030
  class: "user-avatar",
@@ -3050,19 +3050,19 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3050
3050
  }, 8, ["style"]);
3051
3051
  };
3052
3052
  }
3053
- }), jl = /* @__PURE__ */ L(Dl, [["__scopeId", "data-v-c4905268"]]), Nl = ["src"], ql = {
3053
+ }), jl = /* @__PURE__ */ L(Dl, [["__scopeId", "data-v-c4905268"]]), Nl = ["src"], Ul = {
3054
3054
  key: 1,
3055
3055
  class: "sidebar-title"
3056
- }, Ul = ["src"], Vl = { class: "sidebar-title" }, Hl = /* @__PURE__ */ z({
3056
+ }, Vl = ["src"], ql = { class: "sidebar-title" }, Hl = /* @__PURE__ */ K({
3057
3057
  __name: "Logo",
3058
3058
  props: {
3059
3059
  collapse: { type: Boolean }
3060
3060
  },
3061
3061
  setup(e) {
3062
- const t = q(), n = w(() => t.title), o = w(() => t.logo);
3062
+ const t = U(), n = w(() => t.title), o = w(() => t.logo);
3063
3063
  return (l, s) => {
3064
- const i = P("router-link");
3065
- return a(), v("div", {
3064
+ const i = A("router-link");
3065
+ return a(), y("div", {
3066
3066
  class: Y(["sidebar-logo-container", { collapse: l.collapse }])
3067
3067
  }, [
3068
3068
  u(sn, { name: "sidebarLogoFade" }, {
@@ -3073,11 +3073,11 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3073
3073
  to: "/"
3074
3074
  }, {
3075
3075
  default: r(() => [
3076
- o.value ? (a(), v("img", {
3076
+ o.value ? (a(), y("img", {
3077
3077
  key: 0,
3078
3078
  src: o.value,
3079
3079
  class: "sidebar-logo"
3080
- }, null, 8, Nl)) : (a(), v("h1", ql, N(n.value), 1)),
3080
+ }, null, 8, Nl)) : (a(), y("h1", Ul, N(n.value), 1)),
3081
3081
  s[0] || (s[0] = k("div", null, "系统", -1))
3082
3082
  ]),
3083
3083
  _: 1
@@ -3087,12 +3087,12 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3087
3087
  to: "/"
3088
3088
  }, {
3089
3089
  default: r(() => [
3090
- o.value ? (a(), v("img", {
3090
+ o.value ? (a(), y("img", {
3091
3091
  key: 0,
3092
3092
  src: o.value,
3093
3093
  class: "sidebar-logo"
3094
- }, null, 8, Ul)) : B("", !0),
3095
- k("h1", Vl, N(n.value), 1)
3094
+ }, null, 8, Vl)) : B("", !0),
3095
+ k("h1", ql, N(n.value), 1)
3096
3096
  ]),
3097
3097
  _: 1
3098
3098
  }))
@@ -3164,7 +3164,7 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3164
3164
  }
3165
3165
  }
3166
3166
  }
3167
- }, Wl = { class: "menu-content" }, Ql = /* @__PURE__ */ z({
3167
+ }, Wl = { class: "menu-content" }, Ql = /* @__PURE__ */ K({
3168
3168
  __name: "MenuContent",
3169
3169
  props: {
3170
3170
  meta: {
@@ -3177,8 +3177,8 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3177
3177
  },
3178
3178
  setup(e) {
3179
3179
  return (t, n) => {
3180
- const o = P("VIcon");
3181
- return a(), v($, null, [
3180
+ const o = A("VIcon");
3181
+ return a(), y($, null, [
3182
3182
  u(o, {
3183
3183
  name: e.meta.icon || "ra-all"
3184
3184
  }, null, 8, ["name"]),
@@ -3221,7 +3221,18 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3221
3221
  },
3222
3222
  resolveRoute(e) {
3223
3223
  const t = e && e.redirect ? e.redirect : e;
3224
- return t ? typeof t == "string" ? this.$router.resolve(t).fullPath : t.name ? this.$router.resolve({ name: t.name, params: t.params, query: t.query }).fullPath : t.path ? this.$router.resolve({ path: t.path, query: t.query }).fullPath : "/" : "/";
3224
+ if (!t)
3225
+ return "/";
3226
+ if (typeof t == "string")
3227
+ return t;
3228
+ if (t.path)
3229
+ return t.path;
3230
+ if (t.name && this.$router.hasRoute(t.name)) {
3231
+ const n = this.$router.getRoutes().find((o) => o.name === t.name);
3232
+ if (n)
3233
+ return n.path;
3234
+ }
3235
+ return "/";
3225
3236
  }
3226
3237
  }
3227
3238
  }, Zl = {
@@ -3229,9 +3240,9 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3229
3240
  class: "menu-wrapper"
3230
3241
  };
3231
3242
  function Yl(e, t, n, o, l, s) {
3232
- const i = P("menu-content"), c = Gn, p = P("app-link"), m = P("sidebar-item", !0), h = zn;
3233
- return n.item.hidden !== !1 ? (a(), v("div", Zl, [
3234
- n.item.meta && n.item.meta.menuType === 2 ? (a(), v($, { key: 0 }, [
3243
+ const i = A("menu-content"), c = Gn, p = A("app-link"), m = A("sidebar-item", !0), h = zn;
3244
+ return n.item.hidden !== !1 ? (a(), y("div", Zl, [
3245
+ n.item.meta && n.item.meta.menuType === 2 ? (a(), y($, { key: 0 }, [
3235
3246
  n.item.meta ? (a(), f(p, {
3236
3247
  key: 0,
3237
3248
  to: n.to,
@@ -3276,11 +3287,11 @@ function Yl(e, t, n, o, l, s) {
3276
3287
  }, null, 8, ["meta"]))
3277
3288
  ]),
3278
3289
  default: r(() => [
3279
- (a(!0), v($, null, V(n.item.children, (y) => (a(), f(m, {
3280
- key: y.path,
3290
+ (a(!0), y($, null, q(n.item.children, (g) => (a(), f(m, {
3291
+ key: g.path,
3281
3292
  "is-nest": !0,
3282
- item: y,
3283
- to: s.getTo(y),
3293
+ item: g,
3294
+ to: s.getTo(g),
3284
3295
  class: "nest-menu"
3285
3296
  }, null, 8, ["item", "to"]))), 128))
3286
3297
  ]),
@@ -3288,7 +3299,7 @@ function Yl(e, t, n, o, l, s) {
3288
3299
  }, 8, ["index", "class"])) : B("", !0)
3289
3300
  ])) : B("", !0);
3290
3301
  }
3291
- const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
3302
+ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ K({
3292
3303
  __name: "SearchMenu",
3293
3304
  setup(e) {
3294
3305
  const t = j();
@@ -3310,14 +3321,21 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
3310
3321
  break;
3311
3322
  }
3312
3323
  }
3313
- const y = h?.redirect || h;
3314
- return typeof y == "string" ? s.resolve(y).fullPath : y && y.name ? s.resolve({ name: y.name, params: y.params, query: y.query }).fullPath : y && y.path ? s.resolve({ path: y.path, query: y.query }).fullPath : "";
3324
+ const g = h?.redirect || h;
3325
+ if (typeof g == "string")
3326
+ return g;
3327
+ if (g && g.name && s.hasRoute(g.name)) {
3328
+ const b = s.getRoutes().find((x) => x.name === g.name);
3329
+ if (b)
3330
+ return b.path;
3331
+ }
3332
+ return g && g.path ? g.path : "";
3315
3333
  }
3316
3334
  function p(m) {
3317
3335
  m && s.push(m), o.value = "";
3318
3336
  }
3319
3337
  return (m, h) => {
3320
- const y = Fe, b = Kn, x = He;
3338
+ const g = Fe, b = Kn, x = He;
3321
3339
  return a(), f(x, {
3322
3340
  modelValue: d(o),
3323
3341
  "onUpdate:modelValue": h[0] || (h[0] = (E) => dt(o) ? o.value = E : null),
@@ -3327,19 +3345,19 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
3327
3345
  onChange: p
3328
3346
  }, {
3329
3347
  default: r(() => [
3330
- (a(!0), v($, null, V(d(i), (E) => (a(), v($, {
3348
+ (a(!0), y($, null, q(d(i), (E) => (a(), y($, {
3331
3349
  key: E.path
3332
3350
  }, [
3333
- E.children !== void 0 ? (a(), v($, { key: 0 }, [
3351
+ E.children !== void 0 ? (a(), y($, { key: 0 }, [
3334
3352
  E.meta.menuType !== 0 ? (a(), f(b, {
3335
3353
  key: E.path + "-",
3336
3354
  label: E.meta.title
3337
3355
  }, {
3338
3356
  default: r(() => [
3339
- (a(!0), v($, null, V(E.children, (T, I) => (a(), v($, {
3357
+ (a(!0), y($, null, q(E.children, (T, I) => (a(), y($, {
3340
3358
  key: T.path
3341
3359
  }, [
3342
- E.meta.menuType !== 0 ? (a(), f(y, {
3360
+ E.meta.menuType !== 0 ? (a(), f(g, {
3343
3361
  key: 0,
3344
3362
  label: (I === E.children.length - 1 ? "└─" : "├─") + T.meta.title,
3345
3363
  value: c(T)
@@ -3348,7 +3366,7 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
3348
3366
  ]),
3349
3367
  _: 2
3350
3368
  }, 1032, ["label"])) : B("", !0)
3351
- ], 64)) : (a(), f(y, {
3369
+ ], 64)) : (a(), f(g, {
3352
3370
  key: 1,
3353
3371
  label: "" + E.meta.title,
3354
3372
  value: c(E)
@@ -3359,66 +3377,69 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
3359
3377
  }, 8, ["modelValue"]);
3360
3378
  };
3361
3379
  }
3362
- }), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-47d0ecef"]]);
3363
- var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
3364
- const os = /* @__PURE__ */ z({
3380
+ }), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-c070ae29"]]);
3381
+ var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), G = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(G || {});
3382
+ const os = /* @__PURE__ */ K({
3365
3383
  __name: "index",
3366
3384
  setup(e) {
3367
- const t = X(), n = j(), o = q(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), i = w(() => n.customRouter), c = xe(), p = se(), m = w(() => {
3385
+ const t = X(), n = j(), o = U(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), i = w(() => n.customRouter), c = xe(), p = se(), m = w(() => {
3368
3386
  let R = [];
3369
- return c.options.routes.concat(i.value || []).forEach((_) => {
3370
- _.path === "/" ? R = R.concat(_.children || []) : R.push(_);
3387
+ return c.options.routes.concat(i.value || []).forEach((v) => {
3388
+ v.path === "/" ? R = R.concat(v.children || []) : R.push(v);
3371
3389
  }), S([
3372
3390
  { label: "", routes: R },
3373
3391
  ...s.value
3374
3392
  ]);
3375
3393
  }), h = w(() => {
3376
3394
  const R = p.matched;
3377
- for (let _ = R.length - 1; _ >= 0; _--) {
3378
- const K = R[_];
3379
- if (K.meta.menuType === F.menu)
3380
- return E(), T(K);
3395
+ for (let v = R.length - 1; v >= 0; v--) {
3396
+ const F = R[v];
3397
+ if (F.meta.menuType === G.menu)
3398
+ return E(), T(F);
3381
3399
  }
3382
3400
  return "";
3383
- }), y = w(() => o.sidebarLogo), b = w(() => ({
3401
+ }), g = w(() => o.sidebarLogo), b = w(() => ({
3384
3402
  menuBg: "#304156",
3385
3403
  menuText: "#bfcbd9",
3386
3404
  menuActiveText: "#409EFF"
3387
3405
  })), x = w(() => !l.value.opened);
3388
- Ue(() => E());
3406
+ Ve(() => E());
3389
3407
  function E() {
3390
3408
  ht("is-active", 200);
3391
3409
  }
3392
3410
  function T(R) {
3393
- const _ = R?.redirect || R;
3394
- if (!_)
3411
+ const v = R?.redirect || R;
3412
+ if (!v)
3395
3413
  return "";
3396
- if (typeof _ == "string")
3397
- return c.resolve(_).fullPath;
3398
- if (typeof _ == "object") {
3399
- if (_.name)
3400
- return c.resolve({ name: _.name, params: _.params, query: _.query }).fullPath;
3401
- if (_.path)
3402
- return c.resolve({ path: _.path, query: _.query }).fullPath;
3414
+ if (typeof v == "string")
3415
+ return v;
3416
+ if (typeof v == "object") {
3417
+ if (v.path)
3418
+ return v.path;
3419
+ if (v.name && c.hasRoute(v.name)) {
3420
+ const F = c.getRoutes().find((_) => _.name === v.name);
3421
+ if (F)
3422
+ return F.path;
3423
+ }
3403
3424
  }
3404
3425
  return "";
3405
3426
  }
3406
3427
  function I(R) {
3407
- return R.filter((_) => [F.dir, F.menu].indexOf(_.meta.menuType) !== -1).map((_) => (_ = Object.assign({}, _), _.children && (_.children = I(_.children)), _));
3428
+ return R.filter((v) => [G.dir, G.menu].indexOf(v.meta.menuType) !== -1).map((v) => (v = Object.assign({}, v), v.children && (v.children = I(v.children)), v));
3408
3429
  }
3409
- return (R, _) => {
3410
- const K = Wn, g = Jn;
3411
- return a(), v("div", {
3412
- class: Y({ "has-logo": d(y) })
3430
+ return (R, v) => {
3431
+ const F = Wn, _ = Jn;
3432
+ return a(), y("div", {
3433
+ class: Y({ "has-logo": d(g) })
3413
3434
  }, [
3414
- d(y) ? (a(), f(Fl, {
3435
+ d(g) ? (a(), f(Fl, {
3415
3436
  key: 0,
3416
3437
  collapse: d(x)
3417
3438
  }, null, 8, ["collapse"])) : B("", !0),
3418
- u(g, { "wrap-class": "scrollbar-wrapper" }, {
3439
+ u(_, { "wrap-class": "scrollbar-wrapper" }, {
3419
3440
  default: r(() => [
3420
3441
  d(x) ? B("", !0) : (a(), f(ns, { key: 0 })),
3421
- u(K, {
3442
+ u(F, {
3422
3443
  "default-active": d(h),
3423
3444
  collapse: d(x),
3424
3445
  "background-color": d(b).menuBg,
@@ -3429,10 +3450,10 @@ const os = /* @__PURE__ */ z({
3429
3450
  mode: "vertical"
3430
3451
  }, {
3431
3452
  default: r(() => [
3432
- (a(!0), v($, null, V(d(m), (U, Z) => (a(), v($, {
3453
+ (a(!0), y($, null, q(d(m), (V, Z) => (a(), y($, {
3433
3454
  key: Z + "-module"
3434
3455
  }, [
3435
- (a(!0), v($, null, V(I(U.routes), (ie) => (a(), f(es, {
3456
+ (a(!0), y($, null, q(I(V.routes), (ie) => (a(), f(es, {
3436
3457
  key: ie.path,
3437
3458
  item: ie,
3438
3459
  to: T(ie)
@@ -3447,15 +3468,15 @@ const os = /* @__PURE__ */ z({
3447
3468
  ], 2);
3448
3469
  };
3449
3470
  }
3450
- }), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-f7d939e1"]]), ss = { class: "app-main" }, is = {
3471
+ }), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-ff172e55"]]), ss = { class: "app-main" }, is = {
3451
3472
  __name: "AppMain",
3452
3473
  setup(e) {
3453
3474
  const t = se(), n = [], o = O(0);
3454
3475
  return On(() => {
3455
3476
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3456
3477
  }), (l, s) => {
3457
- const i = P("router-view"), c = Qn;
3458
- return a(), v("section", ss, [
3478
+ const i = A("router-view"), c = Qn;
3479
+ return a(), y("section", ss, [
3459
3480
  (a(), f(i, {
3460
3481
  key: l.$route.fullPath + d(o)
3461
3482
  })),
@@ -3466,7 +3487,7 @@ const os = /* @__PURE__ */ z({
3466
3487
  }, as = /* @__PURE__ */ L(is, [["__scopeId", "data-v-ca0f0d98"]]), rs = { class: "main-container" }, cs = 992, us = {
3467
3488
  __name: "index",
3468
3489
  setup(e) {
3469
- const { body: t } = document, n = X(), o = q(), l = w(() => n.sidebar), s = w(() => n.device), i = w(() => o.fixedHeader), c = w(() => ({
3490
+ const { body: t } = document, n = X(), o = U(), l = w(() => n.sidebar), s = w(() => n.device), i = w(() => o.fixedHeader), c = w(() => ({
3470
3491
  hideSidebar: !l.value.opened,
3471
3492
  openSidebar: l.value.opened,
3472
3493
  withoutAnimation: l.value.withoutAnimation,
@@ -3475,14 +3496,14 @@ const os = /* @__PURE__ */ z({
3475
3496
  io(window, "resize", () => h());
3476
3497
  const m = () => n.closeSideBar({ withoutAnimation: !1 }), h = () => {
3477
3498
  if (!document.hidden) {
3478
- const y = p();
3479
- n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
3499
+ const g = p();
3500
+ n.toggleDevice(g ? "mobile" : "desktop"), g && n.closeSideBar({ withoutAnimation: !0 });
3480
3501
  }
3481
3502
  };
3482
- return (y, b) => (a(), v("div", {
3503
+ return (g, b) => (a(), y("div", {
3483
3504
  class: Y([d(c), "app-wrapper"])
3484
3505
  }, [
3485
- d(s) === "mobile" && d(l).opened ? (a(), v("div", {
3506
+ d(s) === "mobile" && d(l).opened ? (a(), y("div", {
3486
3507
  key: 0,
3487
3508
  class: "drawer-bg",
3488
3509
  onClick: m
@@ -3501,10 +3522,10 @@ const os = /* @__PURE__ */ z({
3501
3522
  }, Nt = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b7ab74f0"]]), ps = { id: "login" }, ds = { id: "form" }, ms = {
3502
3523
  key: 0,
3503
3524
  class: "captcha"
3504
- }, fs = ["src"], hs = { class: "tips" }, bs = { class: "sso" }, ys = /* @__PURE__ */ z({
3525
+ }, fs = ["src"], hs = { class: "tips" }, bs = { class: "sso" }, ys = /* @__PURE__ */ K({
3505
3526
  __name: "login",
3506
3527
  setup(e) {
3507
- const t = xe(), n = se(), o = q(), l = X(), s = j(), i = w(() => o.loginTips), c = w(() => o.captcha), p = w(() => l.baseURL), m = O(0), h = () => m.value++, y = w(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), b = O({
3528
+ const t = xe(), n = se(), o = U(), l = X(), s = j(), i = w(() => o.loginTips), c = w(() => o.captcha), p = w(() => l.baseURL), m = O(0), h = () => m.value++, g = w(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), b = O({
3508
3529
  username: "",
3509
3530
  password: "",
3510
3531
  captcha: "",
@@ -3526,11 +3547,11 @@ const os = /* @__PURE__ */ z({
3526
3547
  };
3527
3548
  return (T, I) => {
3528
3549
  const R = me;
3529
- return a(), v("div", ps, [
3550
+ return a(), y("div", ps, [
3530
3551
  I[4] || (I[4] = k("h1", { id: "title" }, "登录", -1)),
3531
3552
  k("form", ds, [
3532
3553
  Te(k("input", {
3533
- "onUpdate:modelValue": I[0] || (I[0] = (_) => d(b).username = _),
3554
+ "onUpdate:modelValue": I[0] || (I[0] = (v) => d(b).username = v),
3534
3555
  type: "text",
3535
3556
  placeholder: "用户名",
3536
3557
  class: "input"
@@ -3538,16 +3559,16 @@ const os = /* @__PURE__ */ z({
3538
3559
  [Re, d(b).username]
3539
3560
  ]),
3540
3561
  Te(k("input", {
3541
- "onUpdate:modelValue": I[1] || (I[1] = (_) => d(b).password = _),
3562
+ "onUpdate:modelValue": I[1] || (I[1] = (v) => d(b).password = v),
3542
3563
  type: "password",
3543
3564
  placeholder: "密码",
3544
3565
  class: "input"
3545
3566
  }, null, 512), [
3546
3567
  [Re, d(b).password]
3547
3568
  ]),
3548
- c.value ? (a(), v("div", ms, [
3569
+ c.value ? (a(), y("div", ms, [
3549
3570
  Te(k("input", {
3550
- "onUpdate:modelValue": I[2] || (I[2] = (_) => d(b).captcha = _),
3571
+ "onUpdate:modelValue": I[2] || (I[2] = (v) => d(b).captcha = v),
3551
3572
  type: "text",
3552
3573
  placeholder: "验证码",
3553
3574
  class: "input-captcha"
@@ -3565,7 +3586,7 @@ const os = /* @__PURE__ */ z({
3565
3586
  class: "login-button",
3566
3587
  type: "primary",
3567
3588
  loading: d(x),
3568
- disabled: !y.value || d(x),
3589
+ disabled: !g.value || d(x),
3569
3590
  onClick: E
3570
3591
  }, {
3571
3592
  default: r(() => [
@@ -3578,7 +3599,7 @@ const os = /* @__PURE__ */ z({
3578
3599
  ]),
3579
3600
  k("div", bs, [
3580
3601
  I[3] || (I[3] = k("div", { id: "sso-qrcode" }, null, -1)),
3581
- (a(!0), v($, null, V(Object.keys([]), (_) => (a(), v("div", { key: _ }, N(_), 1))), 128))
3602
+ (a(!0), y($, null, q(Object.keys([]), (v) => (a(), y("div", { key: v }, N(v), 1))), 128))
3582
3603
  ])
3583
3604
  ])
3584
3605
  ]);
@@ -3586,9 +3607,9 @@ const os = /* @__PURE__ */ z({
3586
3607
  }
3587
3608
  }), _s = {
3588
3609
  name: "NotFoundPage"
3589
- }, vs = { class: "not-found" };
3590
- function gs(e, t, n, o, l, s) {
3591
- return a(), v("div", vs, [...t[0] || (t[0] = [
3610
+ }, gs = { class: "not-found" };
3611
+ function vs(e, t, n, o, l, s) {
3612
+ return a(), y("div", gs, [...t[0] || (t[0] = [
3592
3613
  k("svg", {
3593
3614
  width: "380px",
3594
3615
  height: "500px",
@@ -3657,7 +3678,7 @@ function gs(e, t, n, o, l, s) {
3657
3678
  ], -1)
3658
3679
  ])]);
3659
3680
  }
3660
- const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803"]]), ws = [
3681
+ const ks = /* @__PURE__ */ L(_s, [["render", vs], ["__scopeId", "data-v-26068803"]]), ws = [
3661
3682
  {
3662
3683
  path: "/",
3663
3684
  component: Nt,
@@ -3674,7 +3695,7 @@ const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803
3674
3695
  {
3675
3696
  path: "dashboard",
3676
3697
  name: "Dashboard",
3677
- component: Po,
3698
+ component: Ao,
3678
3699
  meta: {
3679
3700
  id: 1,
3680
3701
  pageId: 1,
@@ -3711,7 +3732,7 @@ const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803
3711
3732
  hidden: !0
3712
3733
  }
3713
3734
  ], W = $n({
3714
- history: Pn(),
3735
+ history: An(),
3715
3736
  routes: ws
3716
3737
  });
3717
3738
  Me.configure({ showSpinner: !1 });
@@ -3719,7 +3740,7 @@ function Ss(e) {
3719
3740
  e.beforeEach((t, n, o) => {
3720
3741
  Me.start(), t.preHash = location.hash.replace("#", ""), o();
3721
3742
  }), e.afterEach((t) => {
3722
- const n = j(A);
3743
+ const n = j(P);
3723
3744
  t.matched.length > 0 && n.updateState({
3724
3745
  key: "path",
3725
3746
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
@@ -3727,15 +3748,15 @@ function Ss(e) {
3727
3748
  });
3728
3749
  }
3729
3750
  function xs() {
3730
- return j(A).isLodeRemoteRoutes;
3751
+ return j(P).isLodeRemoteRoutes;
3731
3752
  }
3732
- function qt() {
3733
- return q(A).whiteRoutes || [];
3753
+ function Ut() {
3754
+ return U(P).whiteRoutes || [];
3734
3755
  }
3735
3756
  function Es() {
3736
- return j(A).token;
3757
+ return j(P).token;
3737
3758
  }
3738
- class Ut {
3759
+ class Vt {
3739
3760
  type = "qrcode";
3740
3761
  flag() {
3741
3762
  }
@@ -3745,7 +3766,7 @@ class Ut {
3745
3766
  showQrCode() {
3746
3767
  }
3747
3768
  }
3748
- class $a extends Ut {
3769
+ class $a extends Vt {
3749
3770
  type = "jump";
3750
3771
  client_id = "";
3751
3772
  constructor(t) {
@@ -3764,7 +3785,7 @@ class $a extends Ut {
3764
3785
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3765
3786
  }
3766
3787
  }
3767
- class Pa extends Ut {
3788
+ class Aa extends Vt {
3768
3789
  type = "qrcode";
3769
3790
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3770
3791
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3790,7 +3811,7 @@ class Pa extends Ut {
3790
3811
  appid: this.appid,
3791
3812
  redirect_uri: encodeURIComponent(this.redirectUri)
3792
3813
  };
3793
- return ne(this.reloadUrl, s) + "&" + gn(l || {});
3814
+ return ne(this.reloadUrl, s) + "&" + vn(l || {});
3794
3815
  }, n = () => {
3795
3816
  const l = {
3796
3817
  goto: encodeURIComponent(t()),
@@ -3801,7 +3822,7 @@ class Pa extends Ut {
3801
3822
  const { origin: s, data: i } = l;
3802
3823
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: i }));
3803
3824
  };
3804
- this.iframe.src = n(), vn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3825
+ this.iframe.src = n(), gn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3805
3826
  "message",
3806
3827
  (l) => o(l),
3807
3828
  !1
@@ -3810,16 +3831,16 @@ class Pa extends Ut {
3810
3831
  }
3811
3832
  const Is = {};
3812
3833
  function Cs() {
3813
- return G(q(A).sso || {}, Is);
3834
+ return z(U(P).sso || {}, Is);
3814
3835
  }
3815
3836
  function Ts() {
3816
- const e = Cs(), t = q(A).activeSsoKey || "", n = e[t];
3837
+ const e = Cs(), t = U(P).activeSsoKey || "", n = e[t];
3817
3838
  if (n !== void 0)
3818
3839
  return n();
3819
3840
  }
3820
3841
  function Rs(e) {
3821
3842
  e.beforeEach(async (t, n, o) => {
3822
- if (qt().indexOf(t.path) !== -1) {
3843
+ if (Ut().indexOf(t.path) !== -1) {
3823
3844
  o();
3824
3845
  return;
3825
3846
  }
@@ -3832,7 +3853,7 @@ function Rs(e) {
3832
3853
  o(`/login?redirect=${s}`);
3833
3854
  return;
3834
3855
  }
3835
- const c = i.flag(), p = j(A);
3856
+ const c = i.flag(), p = j(P);
3836
3857
  if (c && await p.login(c)) {
3837
3858
  o();
3838
3859
  return;
@@ -3842,11 +3863,11 @@ function Rs(e) {
3842
3863
  }
3843
3864
  const Bs = {}, Os = { class: "loading preloader" };
3844
3865
  function $s(e, t) {
3845
- return a(), v("div", Os, [...t[0] || (t[0] = [
3866
+ return a(), y("div", Os, [...t[0] || (t[0] = [
3846
3867
  k("div", { class: "preloader-inner" }, null, -1)
3847
3868
  ])]);
3848
3869
  }
3849
- const Ps = /* @__PURE__ */ L(Bs, [["render", $s]]), As = {
3870
+ const As = /* @__PURE__ */ L(Bs, [["render", $s]]), Ps = {
3850
3871
  name: "VNotice",
3851
3872
  props: {
3852
3873
  dataApi: {
@@ -3877,50 +3898,50 @@ const Ps = /* @__PURE__ */ L(Bs, [["render", $s]]), As = {
3877
3898
  };
3878
3899
  function Ls(e, t, n, o, l, s) {
3879
3900
  const i = Et;
3880
- return a(), v("div", null, [
3901
+ return a(), y("div", null, [
3881
3902
  l.hasNotice ? (a(), f(i, le(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
3882
3903
  ]);
3883
3904
  }
3884
- const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /* @__PURE__ */ z({
3905
+ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /* @__PURE__ */ K({
3885
3906
  __name: "PageLoad",
3886
3907
  props: {
3887
3908
  schemaHandler: { type: Function, default: (e) => e },
3888
3909
  schemaApi: { default: "" }
3889
3910
  },
3890
3911
  setup(e) {
3891
- const t = e, n = X(), o = q(), l = j(), s = se(), i = O(!0), c = O(!1), p = O({}), m = O(""), h = O({}), y = O([]), b = O(!1), x = w(() => l.env), E = w(() => o);
3912
+ const t = e, n = X(), o = U(), l = j(), s = se(), i = O(!0), c = O(!1), p = O({}), m = O(""), h = O({}), g = O([]), b = O(!1), x = w(() => l.env), E = w(() => o);
3892
3913
  return pt(() => {
3893
- const T = s.path.split("/").filter((g) => g), I = T.length > 1 ? T.slice(0, T.length - 1).join("/") : T[0], R = "/schema" + s.meta.path, _ = { params: s.params };
3894
- (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || R, _).then(({ data: g }) => {
3895
- i.value = !1, ve(g) && (g.notice !== void 0 && (c.value = !0, yt(g.notice) ? p.value = { title: g.notice } : ve(g.notice) && (p.value = g.notice, m.value = g.notice.noticeApi), delete g.notice), y.value = g.ownerNames || [], b.value = g.serviceOffLine || !1), h.value = t.schemaHandler(g, I), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: h.value });
3914
+ const T = s.path.split("/").filter((_) => _), I = T.length > 1 ? T.slice(0, T.length - 1).join("/") : T[0], R = "/schema" + s.meta.path, v = { params: s.params };
3915
+ (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || R, v).then(({ data: _ }) => {
3916
+ i.value = !1, ge(_) && (_.notice !== void 0 && (c.value = !0, yt(_.notice) ? p.value = { title: _.notice } : ge(_.notice) && (p.value = _.notice, m.value = _.notice.noticeApi), delete _.notice), g.value = _.ownerNames || [], b.value = _.serviceOffLine || !1), h.value = t.schemaHandler(_, I), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: h.value });
3896
3917
  });
3897
3918
  }), (T, I) => {
3898
3919
  const R = Et;
3899
- return a(), v($, null, [
3900
- d(y).length > 0 ? (a(), f(R, {
3920
+ return a(), y($, null, [
3921
+ d(g).length > 0 ? (a(), f(R, {
3901
3922
  key: 0,
3902
- title: `该页面功能对应开发: [ ${d(y).join(", ")} ] 有问题可直接企微反馈`,
3923
+ title: `该页面功能对应开发: [ ${d(g).join(", ")} ] 有问题可直接企微反馈`,
3903
3924
  type: "info",
3904
3925
  style: { margin: "0 0 20px 0" },
3905
3926
  closable: !1
3906
3927
  }, null, 8, ["title"])) : B("", !0),
3907
- d(x) === "prod" && d(b) ? (a(), v("div", {
3928
+ d(x) === "prod" && d(b) ? (a(), y("div", {
3908
3929
  key: 1,
3909
3930
  class: "offline-notice",
3910
3931
  innerHTML: d(b) === !0 ? d(E).serviceOffLineNotice : d(b)
3911
- }, null, 8, Ds)) : (a(), v($, { key: 2 }, [
3932
+ }, null, 8, Ds)) : (a(), y($, { key: 2 }, [
3912
3933
  d(c) ? (a(), f(Ms, {
3913
3934
  key: 0,
3914
3935
  notice: d(p),
3915
3936
  style: { margin: "0 0 20px 0" },
3916
3937
  "data-api": d(m)
3917
3938
  }, null, 8, ["notice", "data-api"])) : B("", !0),
3918
- d(i) ? (a(), f(Ps, { key: 1 })) : ce(T.$slots, "default", le(Q({ key: 2 }, d(h))), void 0, !0)
3939
+ d(i) ? (a(), f(As, { key: 1 })) : ce(T.$slots, "default", le(Q({ key: 2 }, d(h))), void 0, !0)
3919
3940
  ], 64))
3920
3941
  ], 64);
3921
3942
  };
3922
3943
  }
3923
- }), Ce = /* @__PURE__ */ L(js, [["__scopeId", "data-v-8c134236"]]), Vt = {
3944
+ }), Ce = /* @__PURE__ */ L(js, [["__scopeId", "data-v-8c134236"]]), qt = {
3924
3945
  __name: "table",
3925
3946
  setup(e) {
3926
3947
  const t = (n, o) => {
@@ -3929,16 +3950,16 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3929
3950
  prop: n.orderBy.field,
3930
3951
  order: n.orderBy.mod === "desc" ? "descending" : "ascending"
3931
3952
  };
3932
- n.tableProps = G(n.tableProps, { defaultSort: s });
3953
+ n.tableProps = z(n.tableProps, { defaultSort: s });
3933
3954
  }
3934
- const l = Object.keys(ge.props);
3955
+ const l = Object.keys(ve.props);
3935
3956
  return Object.keys(n).forEach((s) => {
3936
3957
  l.indexOf(s) === -1 && delete n[s];
3937
3958
  }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
3938
3959
  };
3939
3960
  return (n, o) => (a(), f(Ce, { "schema-handler": t }, {
3940
3961
  default: r((l) => [
3941
- u(d(ge), le(we(l)), null, 16)
3962
+ u(d(ve), le(we(l)), null, 16)
3942
3963
  ]),
3943
3964
  _: 1
3944
3965
  }));
@@ -3954,7 +3975,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3954
3975
  return;
3955
3976
  }
3956
3977
  /.*Api$/.test(h) && (c[h] = ne(c[h], t.params));
3957
- }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${p}/update/${t.params.id}`, c.getApi || (c.getApi = `/${p}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${p}/create`)), c = G({
3978
+ }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${p}/update/${t.params.id}`, c.getApi || (c.getApi = `/${p}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${p}/create`)), c = z({
3958
3979
  saveApi: p + "/save",
3959
3980
  afterSubmit: "goback",
3960
3981
  afterReset: "goback",
@@ -3968,7 +3989,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3968
3989
  path: t.fullPath
3969
3990
  }
3970
3991
  }).then((c) => {
3971
- c.data && (clearInterval(l.value), gt.alert(`${c.data}`, "操作提醒", {
3992
+ c.data && (clearInterval(l.value), vt.alert(`${c.data}`, "操作提醒", {
3972
3993
  showClose: !1,
3973
3994
  showCancelButton: !0,
3974
3995
  confirmButtonText: "返回",
@@ -3979,8 +4000,8 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3979
4000
  }));
3980
4001
  });
3981
4002
  };
3982
- Ue(() => {
3983
- const c = q();
4003
+ Ve(() => {
4004
+ const c = U();
3984
4005
  t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
3985
4006
  }), an(() => {
3986
4007
  clearInterval(l.value);
@@ -3995,7 +4016,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3995
4016
  _: 1
3996
4017
  }));
3997
4018
  }
3998
- }, Ns = z({
4019
+ }, Ns = K({
3999
4020
  name: "VTree",
4000
4021
  components: {
4001
4022
  VForm: oe
@@ -4051,7 +4072,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
4051
4072
  // 1 新增, 2 编辑
4052
4073
  treeData: [],
4053
4074
  formData: {},
4054
- localTreeProps: G({
4075
+ localTreeProps: z({
4055
4076
  "default-expand-all": !0,
4056
4077
  "expand-on-click-node": !1,
4057
4078
  props: {
@@ -4135,13 +4156,13 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
4135
4156
  });
4136
4157
  }
4137
4158
  }
4138
- }), qs = { class: "card-header" }, Us = { class: "tree-action" }, Vs = { key: 0 }, Hs = {
4159
+ }), Us = { class: "card-header" }, Vs = { class: "tree-action" }, qs = { key: 0 }, Hs = {
4139
4160
  key: 1,
4140
4161
  style: { color: "#E6A23C" }
4141
4162
  }, Fs = { class: "card-header" };
4142
4163
  function Gs(e, t, n, o, l, s) {
4143
- const i = me, c = Yn, p = Zn, m = Ge, h = P("v-form"), y = Ee;
4144
- return a(), f(y, {
4164
+ const i = me, c = Yn, p = Zn, m = Ge, h = A("v-form"), g = Ee;
4165
+ return a(), f(g, {
4145
4166
  class: "tree-box",
4146
4167
  gutter: 20
4147
4168
  }, {
@@ -4153,7 +4174,7 @@ function Gs(e, t, n, o, l, s) {
4153
4174
  default: r(() => [
4154
4175
  u(p, { shadow: "never" }, {
4155
4176
  header: r(() => [
4156
- k("div", qs, [
4177
+ k("div", Us, [
4157
4178
  t[3] || (t[3] = k("span", null, "列表", -1)),
4158
4179
  u(i, {
4159
4180
  type: "text",
@@ -4179,8 +4200,8 @@ function Gs(e, t, n, o, l, s) {
4179
4200
  onNodeDragEnd: e.handleDragEnd
4180
4201
  }), {
4181
4202
  default: r(({ node: b, data: x }) => [
4182
- k("span", Us, [
4183
- x[e.localTreeProps.props.label] ? (a(), v("span", Vs, N(x[e.localTreeProps.props.label]), 1)) : (a(), v("span", Hs, "请在右侧表单中修改 --> ")),
4203
+ k("span", Vs, [
4204
+ x[e.localTreeProps.props.label] ? (a(), y("span", qs, N(x[e.localTreeProps.props.label]), 1)) : (a(), y("span", Hs, "请在右侧表单中修改 --> ")),
4184
4205
  k("span", null, [
4185
4206
  x[e.localTreeProps.props.label] ? (a(), f(i, {
4186
4207
  key: 0,
@@ -4276,17 +4297,17 @@ const at = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
4276
4297
  __name: "container",
4277
4298
  setup(e) {
4278
4299
  const t = O(0);
4279
- return An(() => {
4300
+ return Pn(() => {
4280
4301
  t.value++;
4281
4302
  }), (n, o) => {
4282
- const l = P("router-view");
4303
+ const l = A("router-view");
4283
4304
  return a(), f(l);
4284
4305
  };
4285
4306
  }
4286
4307
  }, Ks = (e) => u("div", null, [e.test]), Js = {
4287
4308
  card: Bn,
4288
4309
  form: oe,
4289
- table: ge,
4310
+ table: ve,
4290
4311
  test: Ks,
4291
4312
  row: Rn,
4292
4313
  col: Tn
@@ -4336,7 +4357,7 @@ function We(e) {
4336
4357
  };
4337
4358
  return e.forEach((n) => {
4338
4359
  let o = Object.assign({}, n);
4339
- if (ve(o.props?.style)) {
4360
+ if (ge(o.props?.style)) {
4340
4361
  let i = "";
4341
4362
  Object.keys(o.props?.style).forEach((c) => {
4342
4363
  i += c + ":" + o.props?.style[c] + ";";
@@ -4354,7 +4375,7 @@ function We(e) {
4354
4375
  });
4355
4376
  return;
4356
4377
  }
4357
- o = G({
4378
+ o = z({
4358
4379
  props: {}
4359
4380
  }, Ws[o.type] || {}, o);
4360
4381
  const s = Ht(o.children);
@@ -4366,15 +4387,15 @@ function We(e) {
4366
4387
  }), [t];
4367
4388
  }
4368
4389
  function Ht(e) {
4369
- return wn(e) ? e : ve(e) ? [e] : [];
4390
+ return wn(e) ? e : ge(e) ? [e] : [];
4370
4391
  }
4371
- let qe = {};
4392
+ let Ue = {};
4372
4393
  const Ft = (e) => {
4373
- const t = Js[e.type] || qe[e.type] || e.type;
4394
+ const t = Js[e.type] || Ue[e.type] || e.type;
4374
4395
  return cn(t, e.props, {
4375
4396
  default: () => Ht(e.children).map((n) => Ft(n))
4376
4397
  });
4377
- }, Xs = (e) => (Object.keys(qe).length === 0 && (qe = rn().appContext.components), We(Object.values(e.schema)).map((n) => Ft(n))), Zs = {
4398
+ }, Xs = (e) => (Object.keys(Ue).length === 0 && (Ue = rn().appContext.components), We(Object.values(e.schema)).map((n) => Ft(n))), Zs = {
4378
4399
  __name: "custom",
4379
4400
  setup(e) {
4380
4401
  const t = O([]), n = (o, l) => (t.value = un(o), o);
@@ -4387,7 +4408,7 @@ const Ft = (e) => {
4387
4408
  }
4388
4409
  };
4389
4410
  let re = {};
4390
- function Aa(e) {
4411
+ function Pa(e) {
4391
4412
  re = e;
4392
4413
  }
4393
4414
  const Ys = (e) => {
@@ -4399,7 +4420,7 @@ const Ys = (e) => {
4399
4420
  return Le;
4400
4421
  switch (e.page_type) {
4401
4422
  case J.list:
4402
- return Vt;
4423
+ return qt;
4403
4424
  case J.form:
4404
4425
  return Ne;
4405
4426
  case J.custom:
@@ -4414,13 +4435,13 @@ const Ys = (e) => {
4414
4435
  };
4415
4436
  function ei(e) {
4416
4437
  let t = e.path;
4417
- return e.type === F.menu && e.page_type === J.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
4438
+ return e.type === G.menu && e.page_type === J.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
4418
4439
  }
4419
4440
  function ti(e) {
4420
4441
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4421
4442
  }
4422
4443
  const Gt = (e) => {
4423
- const t = e.type !== F.page, n = {
4444
+ const t = e.type !== G.page, n = {
4424
4445
  path: ei(e),
4425
4446
  name: e.id + "_" + ti(e) + "_" + e.path.replaceAll("/", "_"),
4426
4447
  component: Ys(e),
@@ -4441,12 +4462,12 @@ const Gt = (e) => {
4441
4462
  const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", i = [{
4442
4463
  path: o,
4443
4464
  name: e.name + "列表" + e.id,
4444
- component: Vt,
4465
+ component: qt,
4445
4466
  meta: {
4446
4467
  id: e.id + 99999,
4447
4468
  title: "列表",
4448
4469
  hidden: !0,
4449
- menuType: F.hidden,
4470
+ menuType: G.hidden,
4450
4471
  keepAlive: !1,
4451
4472
  pageId: e.id,
4452
4473
  path: e.path
@@ -4459,7 +4480,7 @@ const Gt = (e) => {
4459
4480
  id: e.id + 99999 + 1,
4460
4481
  title: "新建",
4461
4482
  hidden: !0,
4462
- menuType: F.hidden,
4483
+ menuType: G.hidden,
4463
4484
  keepAlive: !1,
4464
4485
  pageId: e.id,
4465
4486
  path: e.path
@@ -4472,7 +4493,7 @@ const Gt = (e) => {
4472
4493
  id: e.id + 99999 + 2,
4473
4494
  title: "编辑",
4474
4495
  hidden: !0,
4475
- menuType: F.hidden,
4496
+ menuType: G.hidden,
4476
4497
  keepAlive: !1,
4477
4498
  pageId: e.id,
4478
4499
  path: e.path
@@ -4484,8 +4505,8 @@ const Gt = (e) => {
4484
4505
  let o = !0;
4485
4506
  if (n.children.forEach((l) => {
4486
4507
  l.meta && !l.meta.hidden && (o = !1);
4487
- }), n.meta && (n.meta.menuType = t ? F.dir : F.hidden), o) {
4488
- n.meta && (n.meta.menuType = F.menu);
4508
+ }), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
4509
+ n.meta && (n.meta.menuType = G.menu);
4489
4510
  let l = "/";
4490
4511
  for (let s = 0; s < n.children.length; s++)
4491
4512
  if (n.children[s].path.indexOf("/:") === -1) {
@@ -4557,7 +4578,7 @@ const Gt = (e) => {
4557
4578
  };
4558
4579
  function ci(e) {
4559
4580
  e.beforeEach(async (t, n, o) => {
4560
- if (qt().indexOf(t.path) !== -1) {
4581
+ if (Ut().indexOf(t.path) !== -1) {
4561
4582
  o();
4562
4583
  return;
4563
4584
  }
@@ -4565,13 +4586,13 @@ function ci(e) {
4565
4586
  o();
4566
4587
  return;
4567
4588
  }
4568
- const l = j(A);
4589
+ const l = j(P);
4569
4590
  await l.info();
4570
4591
  const s = Kt(fe());
4571
4592
  if (l.rawCustomRouter.length) {
4572
4593
  const m = ke(l.rawCustomRouter, s);
4573
4594
  m.forEach((h) => {
4574
- const y = typeof h.name == "string" ? h.name : void 0, b = y ? e.hasRoute(y) : !1, x = e.getRoutes().some((E) => E.path === h.path);
4595
+ const g = typeof h.name == "string" ? h.name : void 0, b = g ? e.hasRoute(g) : !1, x = e.getRoutes().some((E) => E.path === h.path);
4575
4596
  b || x || e.addRoute(h);
4576
4597
  }), l.setCustomRoutes(m);
4577
4598
  }
@@ -4595,14 +4616,14 @@ function ci(e) {
4595
4616
  }
4596
4617
  function ui(e) {
4597
4618
  e.beforeEach(async (t, n, o) => {
4598
- const s = [q(A).title || ""], i = t.matched.length;
4619
+ const s = [U(P).title || ""], i = t.matched.length;
4599
4620
  for (let c = i; c > i - 3; c--) {
4600
4621
  const p = t.matched[c - 1];
4601
4622
  p?.meta?.title && s.push(p.meta.title + "");
4602
4623
  }
4603
4624
  s.length > 1 && (document.title = s.reverse().join("-")), o();
4604
4625
  }), e.afterEach(async (t, n, o) => {
4605
- const l = X(A);
4626
+ const l = X(P);
4606
4627
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4607
4628
  });
4608
4629
  }
@@ -4611,10 +4632,10 @@ function pi(e) {
4611
4632
  }
4612
4633
  pi(W);
4613
4634
  function di() {
4614
- return j(A).token;
4635
+ return j(P).token;
4615
4636
  }
4616
4637
  function mi() {
4617
- return j(A).expired;
4638
+ return j(P).expired;
4618
4639
  }
4619
4640
  function ct(e) {
4620
4641
  Co({
@@ -4637,13 +4658,13 @@ const fi = {
4637
4658
  if (e.data.code === 401) {
4638
4659
  if (mi())
4639
4660
  return;
4640
- j(A).SetExpired(), st.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4661
+ j(P).SetExpired(), st.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4641
4662
  showClose: !1,
4642
4663
  confirmButtonText: "重新登录",
4643
4664
  showCancelButton: !0,
4644
4665
  cancelButtonText: "取消",
4645
4666
  callback: (l) => {
4646
- l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(A).SetExpired();
4667
+ l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(P).SetExpired();
4647
4668
  }
4648
4669
  });
4649
4670
  return;
@@ -4662,7 +4683,7 @@ const fi = {
4662
4683
  })), e.data;
4663
4684
  },
4664
4685
  onRejected(e) {
4665
- return Ve.isCancel(e) ? Promise.reject("") : (ct(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4686
+ return qe.isCancel(e) ? Promise.reject("") : (ct(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4666
4687
  }
4667
4688
  }, bi = [
4668
4689
  {
@@ -4675,7 +4696,7 @@ const fi = {
4675
4696
  }
4676
4697
  ];
4677
4698
  function Qe(e = {}) {
4678
- const t = Ie.axios || {}, n = G(t, e || {}), o = Ve.create({
4699
+ const t = Ie.axios || {}, n = z(t, e || {}), o = qe.create({
4679
4700
  ...n
4680
4701
  // adapter: (c) => cacheAdapter(c, defaultAxios)
4681
4702
  });
@@ -4692,13 +4713,13 @@ const yi = Qe(), _i = {
4692
4713
  unmounted(e) {
4693
4714
  document.body.removeEventListener("click", e.clickOutsideEvent);
4694
4715
  }
4695
- }, ee = oo(), vi = {
4716
+ }, ee = oo(), gi = {
4696
4717
  mounted: (e, t) => {
4697
4718
  e !== null && (t.value, e.oncontextmenu = (n) => {
4698
4719
  n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && ee.emit("right-click", { event: n, data: t.value });
4699
4720
  });
4700
4721
  }
4701
- }, gi = {
4722
+ }, vi = {
4702
4723
  mounted(e) {
4703
4724
  }
4704
4725
  };
@@ -4738,8 +4759,8 @@ const ki = {
4738
4759
  __proto__: null,
4739
4760
  devtool: ki,
4740
4761
  outClick: _i,
4741
- resize: gi,
4742
- rightClick: vi
4762
+ resize: vi,
4763
+ rightClick: gi
4743
4764
  }, Symbol.toStringTag, { value: "Module" }));
4744
4765
  let _e;
4745
4766
  const Si = (e) => {
@@ -4747,14 +4768,14 @@ const Si = (e) => {
4747
4768
  return t && W.hasRoute(t) ? !0 : W.getRoutes().some((n) => n.path === e.path);
4748
4769
  };
4749
4770
  function La(e) {
4750
- return e ? Qe(G(Ie.axios, e)) : _e;
4771
+ return e ? Qe(z(Ie.axios, e)) : _e;
4751
4772
  }
4752
4773
  function Ma(e) {
4753
- const t = G(Ie, e), n = pn(go), o = Bi(t), l = t.plugins || [];
4774
+ const t = z(Ie, e), n = pn(vo), o = Bi(t), l = t.plugins || [];
4754
4775
  l.unshift(o), l.forEach((c) => {
4755
4776
  Ri(n, c);
4756
4777
  }), t?.mock && Io(), _e = Qe(t.axios), bo(n);
4757
- const s = X(A), i = q(A);
4778
+ const s = X(P), i = U(P);
4758
4779
  co(_e), i.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = _e, n.config.globalProperties.$router = W, window.App = n, window.OmsOptions = t, to(() => ({
4759
4780
  "X-Token": fe()
4760
4781
  })), W.isReady().then(() => n.mount("#app"));
@@ -4767,7 +4788,7 @@ function xi(e, t = {}) {
4767
4788
  function Ei(e = []) {
4768
4789
  if (!e.length)
4769
4790
  return;
4770
- const t = j(A);
4791
+ const t = j(P);
4771
4792
  t.addRawCustomRoutes(e);
4772
4793
  const n = Kt(fe());
4773
4794
  if (!n.length)
@@ -4798,7 +4819,7 @@ function Ti(e = {}) {
4798
4819
  });
4799
4820
  }
4800
4821
  function Ri(e, t) {
4801
- xi(e, t.components || {}), Ei(t.routes || []), Ii(e, t.use || []), Ci(e, t.directives || {}), Ti(t.storeModules || {}), At(t.mockApis || []);
4822
+ xi(e, t.components || {}), Ei(t.routes || []), Ii(e, t.use || []), Ci(e, t.directives || {}), Ti(t.storeModules || {}), Pt(t.mockApis || []);
4802
4823
  }
4803
4824
  function Bi(e) {
4804
4825
  return {
@@ -4811,12 +4832,12 @@ function Bi(e) {
4811
4832
  };
4812
4833
  }
4813
4834
  export {
4814
- Ut as BaseSso,
4835
+ Vt as BaseSso,
4815
4836
  Le as Container,
4816
- Pa as DingTalk,
4837
+ Aa as DingTalk,
4817
4838
  $a as Github,
4818
4839
  Nt as Layout,
4819
- F as MenuType,
4840
+ G as MenuType,
4820
4841
  Co as Message,
4821
4842
  st as MessageBox,
4822
4843
  J as PageType,
@@ -4829,8 +4850,8 @@ export {
4829
4850
  Oe as getHttp,
4830
4851
  _e as http,
4831
4852
  Qe as instance,
4832
- A as pinia,
4833
- Aa as regViews,
4853
+ P as pinia,
4854
+ Pa as regViews,
4834
4855
  Oa as setCmp,
4835
4856
  co as setHttp,
4836
4857
  po as settings,
@@ -4839,7 +4860,7 @@ export {
4839
4860
  X as useAppStore,
4840
4861
  Ba as useBuilderSchemaStore,
4841
4862
  La as useHttp,
4842
- q as useSettingsStore,
4863
+ U as useSettingsStore,
4843
4864
  j as useUserStore,
4844
4865
  nt as userState
4845
4866
  };