cc1-admin-front 0.0.2 → 0.0.4

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,10 +1,10 @@
1
1
  import "./cc1-admin-front.css";
2
- import { reactive as y, defineComponent as V, nextTick as N, resolveComponent as x, openBlock as E, createBlock as T, withCtx as M, createVNode as _, unref as C, createCommentVNode as B, defineAsyncComponent as U, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
3
- import K, { TSys as m, TForm as q, TFormConfig as Y } from "cc1-form";
2
+ import { reactive as y, defineComponent as j, nextTick as N, resolveComponent as L, openBlock as E, createBlock as U, withCtx as M, createVNode as _, unref as w, createCommentVNode as B, defineAsyncComponent as I, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
3
+ import K, { TSys as h, TForm as q, TFormConfig as Y } from "cc1-form";
4
4
  import { Scope as S, CRouter as Z } from "cc1-vue3";
5
5
  import G from "cc1-ui";
6
6
  import { createRouter as Q, createWebHashHistory as X } from "vue-router";
7
- class At {
7
+ class xt {
8
8
  static all(t) {
9
9
  return http.post("/auth/api/all", t);
10
10
  }
@@ -21,7 +21,7 @@ class At {
21
21
  return http.post("/auth/api/delete", t);
22
22
  }
23
23
  }
24
- class Ot {
24
+ class At {
25
25
  static list(t) {
26
26
  return http.post("/auth/menu/list", t);
27
27
  }
@@ -35,12 +35,12 @@ class Ot {
35
35
  return http.post("/auth/menu/delete", t);
36
36
  }
37
37
  }
38
- class _t {
38
+ class Ot {
39
39
  static sendCode(t) {
40
40
  return http.post("/auth/phone/sendCode", { phone: t });
41
41
  }
42
42
  }
43
- class Et {
43
+ class _t {
44
44
  static list(t) {
45
45
  return http.post("/auth/role/list", t);
46
46
  }
@@ -62,7 +62,7 @@ class Et {
62
62
  return http.post("/auth/role/delete", t);
63
63
  }
64
64
  }
65
- class It {
65
+ class Et {
66
66
  static list(t) {
67
67
  return http.post("/auth/user/list", t);
68
68
  }
@@ -95,7 +95,7 @@ class Ut {
95
95
  return http.post("/auth/loginLog/delete", t);
96
96
  }
97
97
  }
98
- class St {
98
+ class It {
99
99
  static list(t) {
100
100
  return http.post(
101
101
  {
@@ -124,7 +124,7 @@ class St {
124
124
  );
125
125
  }
126
126
  }
127
- class Rt {
127
+ class St {
128
128
  static list(t) {
129
129
  return http.post("/email/config/list", t);
130
130
  }
@@ -146,7 +146,7 @@ class Vt {
146
146
  return http.post("/log/error/delete", t);
147
147
  }
148
148
  }
149
- class $t {
149
+ class jt {
150
150
  static list(t) {
151
151
  return http.post("/schedule/job/list", t);
152
152
  }
@@ -166,7 +166,7 @@ class $t {
166
166
  return http.post("/schedule/job/changeStatus", t);
167
167
  }
168
168
  }
169
- class jt {
169
+ class Rt {
170
170
  static list(t) {
171
171
  return http.post("/sms/config/list", t);
172
172
  }
@@ -183,7 +183,7 @@ class jt {
183
183
  return http.post("/sms/config/send", t);
184
184
  }
185
185
  }
186
- class $ {
186
+ class R {
187
187
  static time(t) {
188
188
  return http.post("/app/time", t);
189
189
  }
@@ -199,7 +199,7 @@ class $ {
199
199
  );
200
200
  }
201
201
  }
202
- class Dt {
202
+ class $t {
203
203
  static list(t) {
204
204
  return http.post("/system/config/list", t);
205
205
  }
@@ -213,7 +213,7 @@ class Dt {
213
213
  return http.post("/system/config/delete", t);
214
214
  }
215
215
  }
216
- class Nt {
216
+ class Dt {
217
217
  static list(t) {
218
218
  return http.post("/tenant/list", t);
219
219
  }
@@ -227,7 +227,7 @@ class Nt {
227
227
  return http.post("/tenant/delete", t);
228
228
  }
229
229
  }
230
- const b = {
230
+ const O = {
231
231
  ERouter: {
232
232
  /**
233
233
  * 路由改变
@@ -237,20 +237,15 @@ const b = {
237
237
  * 路由刷新
238
238
  */
239
239
  reload: ""
240
- },
241
- EDialog: {
242
- Insert: "",
243
- Update: "",
244
- Remove: ""
245
240
  }
246
241
  };
247
- Object.keys(b).forEach((e) => {
248
- const t = b[e];
242
+ Object.keys(O).forEach((e) => {
243
+ const t = O[e];
249
244
  Object.keys(t).forEach((s) => {
250
- e == "EDialog" ? b[e][s] = s : b[e][s] = `${e}_${s}`;
245
+ O[e][s] = `${e}_${s}`;
251
246
  });
252
247
  });
253
- const tt = b.ERouter, et = b.EDialog, d = y({
248
+ const tt = O.ERouter, d = y({
254
249
  load: () => {
255
250
  d.loginInfo = Cookie.get("loginInfo") || {}, d.userInfo = d.loginInfo.userInfo || {}, d.token = Cookie.get("token");
256
251
  },
@@ -265,7 +260,7 @@ const tt = b.ERouter, et = b.EDialog, d = y({
265
260
  },
266
261
  hasApi: (e) => d.loginInfo.roleInfo.apiList.includes(e)
267
262
  });
268
- class L {
263
+ class b {
269
264
  static baseUrl = "";
270
265
  static init() {
271
266
  const t = (o, r, ...a) => {
@@ -274,10 +269,10 @@ class L {
274
269
  });
275
270
  }, s = (o, r, a) => {
276
271
  let l = a?.data?.code || o, p = a?.data.message;
277
- r.data.toast ? r.data.toast(l, a, r) : m.fail(u.i18n.t(`code.${l}`, { msg: p || "请求异常" }) || u.i18n.t("code.OtherException")), t(r.data, ["final", "fail", "complete"], o == 200, r, a), l == 401 && (d.clearInfo(), r.data.toLogin?.() !== !1 && m.router.replace("/login"));
272
+ r.data.toast ? r.data.toast(l, a, r) : h.fail(u.i18n.t(`code.${l}`, { msg: p || "请求异常" }) || u.i18n.t("code.OtherException")), t(r.data, ["final", "fail", "complete"], o == 200, r, a), l == 401 && (d.clearInfo(), r.data.toLogin?.() !== !1 && h.router.replace("/login"));
278
273
  };
279
274
  http.setConfig({
280
- base: L.baseUrl,
275
+ base: b.baseUrl,
281
276
  before(o) {
282
277
  o.param.headers = o.param.headers || {}, Object.keys(o.data).forEach((a) => {
283
278
  (o.data[a] === void 0 || o.data[a] === null) && delete o.data[a];
@@ -287,8 +282,10 @@ class L {
287
282
  },
288
283
  after(o, r) {
289
284
  const { code: a } = o.data;
290
- if (a != 200)
291
- throw s(a, r, o), new Error(a);
285
+ if (a != 200) {
286
+ r.res = o.data, o.status = a;
287
+ return;
288
+ }
292
289
  t(r.data, ["final", "success", "complete"], o.data, r, o);
293
290
  },
294
291
  error: s
@@ -321,13 +318,13 @@ class u {
321
318
  },
322
319
  staticDir: "/static_admin"
323
320
  };
324
- this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale, L.baseUrl = this.env.API;
321
+ this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale, b.baseUrl = this.env.API;
325
322
  }
326
323
  static getBaseUrl(t) {
327
- return t = L.baseUrl.replace("/api", "/") + t, t = t.replace(/(?<!:)\/{2,}/g, "/"), t;
324
+ return t = b.baseUrl.replace("/api", "/") + t, t = t.replace(/(?<!:)\/{2,}/g, "/"), t;
328
325
  }
329
326
  }
330
- const R = (e) => {
327
+ const V = (e) => {
331
328
  const t = JSONUtil.cp(e), s = (o) => t.filter((a) => {
332
329
  let l = a.parentId;
333
330
  return a.parentId.includes(",") && (l = a.parentId.split(",").pop()), l === o;
@@ -337,7 +334,7 @@ const R = (e) => {
337
334
  })).sort((a, l) => a.sort - l.sort);
338
335
  return s("0");
339
336
  }, c = y({
340
- getTableTree: R,
337
+ getTableTree: V,
341
338
  auth: {
342
339
  list: ["/api/system/list", "/api/system/detail"],
343
340
  isPass: (e) => c.auth.list.includes(e)
@@ -364,11 +361,11 @@ const R = (e) => {
364
361
  c.menuListSource = JSONUtil.cp(e);
365
362
  try {
366
363
  if (StrUtil.isNull(e) || (e = e), StrUtil.isNull(e))
367
- return m.router.push("/login"), [];
368
- let t = R(e);
364
+ return h.router.push("/login"), [];
365
+ let t = V(e);
369
366
  return c.setMenuList(t, e), JSONUtil.cp(c.menuList);
370
367
  } catch {
371
- m.router.push("/login");
368
+ h.router.push("/login");
372
369
  }
373
370
  return JSONUtil.cp(c.menuList);
374
371
  },
@@ -379,9 +376,9 @@ const R = (e) => {
379
376
  getApiList: async () => {
380
377
  let e = Cookie.get("apiList");
381
378
  try {
382
- return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (m.router.push("/login"), []) : (c.setApiList(e), c.apiList);
379
+ return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (h.router.push("/login"), []) : (c.setApiList(e), c.apiList);
383
380
  } catch {
384
- m.router.push("/login");
381
+ h.router.push("/login");
385
382
  }
386
383
  return c.apiList;
387
384
  },
@@ -391,10 +388,10 @@ const R = (e) => {
391
388
  t.type = "file", t.accept = e.accept || "image/*", t.multiple = e.multiple || !1, t.onchange = async (s) => {
392
389
  const o = s.target.files[0];
393
390
  if (o) {
394
- const r = await $.upload({
391
+ const r = await R.upload({
395
392
  file: o
396
393
  });
397
- e.callback(r.data), e.toast, m.success("上传成功");
394
+ e.callback(r.data), e.toast, h.success("上传成功");
398
395
  } else
399
396
  e.callback("");
400
397
  }, t.click();
@@ -408,7 +405,7 @@ const R = (e) => {
408
405
  c.preview.index = t, c.preview.srcList = e.map((s) => u.getBaseUrl(s)), c.preview.show = !0;
409
406
  }
410
407
  }
411
- }), st = /* @__PURE__ */ V({
408
+ }), et = /* @__PURE__ */ j({
412
409
  name: "App",
413
410
  __name: "App",
414
411
  setup(e) {
@@ -422,25 +419,25 @@ const R = (e) => {
422
419
  }
423
420
  });
424
421
  return CEvent.on(tt.reload, t.reload), (s, o) => {
425
- const r = x("x-route-event"), a = x("router-view"), l = x("el-image-viewer"), p = x("el-config-provider");
426
- return E(), T(p, {
422
+ const r = L("x-route-event"), a = L("router-view"), l = L("el-image-viewer"), p = L("el-config-provider");
423
+ return E(), U(p, {
427
424
  locale: t.locale
428
425
  }, {
429
426
  default: M(() => [
430
427
  _(r),
431
428
  _(a),
432
- C(c).preview.show ? (E(), T(l, {
429
+ w(c).preview.show ? (E(), U(l, {
433
430
  key: 0,
434
- "url-list": C(c).preview.srcList,
435
- "initial-index": C(c).preview.index,
436
- onClose: o[0] || (o[0] = (i) => C(c).preview.show = !1)
431
+ "url-list": w(c).preview.srcList,
432
+ "initial-index": w(c).preview.index,
433
+ onClose: o[0] || (o[0] = (i) => w(c).preview.show = !1)
437
434
  }, null, 8, ["url-list", "initial-index"])) : B("", !0)
438
435
  ]),
439
436
  _: 1
440
437
  }, 8, ["locale"]);
441
438
  };
442
439
  }
443
- }), I = y({
440
+ }), T = y({
444
441
  /**
445
442
  * 查找组件对应的options配置
446
443
  * @param option
@@ -459,7 +456,7 @@ const R = (e) => {
459
456
  * @param data
460
457
  */
461
458
  setOptionsData: (e, t, s) => {
462
- const o = I.findOptions(e, t);
459
+ const o = T.findOptions(e, t);
463
460
  o && (o.data = s);
464
461
  },
465
462
  form: {
@@ -472,7 +469,7 @@ const R = (e) => {
472
469
  * @param option 组件配置
473
470
  */
474
471
  parentId: (e, t, s, o) => {
475
- e ? t.type === et.Insert ? (t.form.parentId = e._id, t.form.sort = e.children.length + 1) : t.form.parentId = e.parentId.substring(e.parentId.lastIndexOf(",") + 1) : (t.form.parentId = "0", t.form.sort = s.length + 1), I.setOptionsData(o, "parentId", [{ _id: "0", title: "根", children: s }]);
472
+ e ? t.type === h.EDialog.Add ? (t.form.parentId = e._id, t.form.sort = e.children.length + 1) : t.form.parentId = e.parentId.substring(e.parentId.lastIndexOf(",") + 1) : (t.form.parentId = "0", t.form.sort = s.length + 1), T.setOptionsData(o, "parentId", [{ _id: "0", title: "根", children: s }]);
476
473
  }
477
474
  }
478
475
  }
@@ -509,24 +506,24 @@ const R = (e) => {
509
506
  key: "thisWeek"
510
507
  };
511
508
  t.push(p);
512
- const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1], w = {
509
+ const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1], C = {
513
510
  label: u.i18n.t("dateOptions.LastWeek"),
514
511
  value: [i, f],
515
512
  key: "lastWeek"
516
513
  };
517
- t.push(w);
514
+ t.push(C);
518
515
  const n = /* @__PURE__ */ new Date();
519
516
  n.setDate(1);
520
517
  const g = o(0, n);
521
518
  n.setMonth(n.getMonth() + 1), n.setDate(1), n.setDate(n.getDate() - 1);
522
- const h = o(0, n), D = {
519
+ const m = o(0, n), D = {
523
520
  label: u.i18n.t("dateOptions.ThisMonth"),
524
- value: [g[0], h[1]],
521
+ value: [g[0], m[1]],
525
522
  key: "thisMonth"
526
523
  };
527
524
  return t.push(D), t;
528
525
  }
529
- }), j = y({
526
+ }), $ = y({
530
527
  /**
531
528
  * 获取校验对象-默认使用对数字进行只保留数字、正数、小数后两位保留修正操作
532
529
  *
@@ -559,7 +556,7 @@ const R = (e) => {
559
556
  */
560
557
  getVf: (e, t, s) => {
561
558
  const o = {};
562
- s === void 0 && (s = j.inputVal);
559
+ s === void 0 && (s = $.inputVal);
563
560
  for (const r in t)
564
561
  o[r] = (a) => {
565
562
  e[r] = null, s({
@@ -640,37 +637,37 @@ const R = (e) => {
640
637
  };
641
638
  if (t.length) {
642
639
  s && t.length > s && (t = t.substring(0, s));
643
- const i = [], f = [], w = (n, g, h) => {
644
- n === g ? Array.isArray(e[n]) ? h.push(...e[n]) : h.push(e[n]) : h.push(p[n.substring(3)]);
640
+ const i = [], f = [], C = (n, g, m) => {
641
+ n === g ? Array.isArray(e[n]) ? m.push(...e[n]) : m.push(e[n]) : m.push(p[n.substring(3)]);
645
642
  };
646
643
  Object.keys(e).forEach((n) => {
647
- n.startsWith("get") ? w(n, "getCustom", i) : n.startsWith("del") ? w(n, "delCustom", f) : p[n] && (t = p[n](t));
644
+ n.startsWith("get") ? C(n, "getCustom", i) : n.startsWith("del") ? C(n, "delCustom", f) : p[n] && (t = p[n](t));
648
645
  }), i.length && (t = t.replace(new RegExp(`[^${i.join("")}]`, "g"), "")), f.length && (t = t.replace(new RegExp(`[${f.join("")}]`, "g"), ""));
649
646
  }
650
647
  return e.after(t), t;
651
648
  }
652
- }), ot = (e) => {
649
+ }), st = (e) => {
653
650
  const t = Cookie.clear.bind(Cookie);
654
651
  Cookie.clear = async (s, o) => {
655
652
  s = s || {}, s.excludeList = s.excludeList || [], s.excludeList.push("apiurl"), await t(s, o);
656
653
  };
657
- }, it = {
658
- install: ot
659
- }, rt = (e) => {
654
+ }, ot = {
655
+ install: st
656
+ }, it = (e) => {
660
657
  S.CEventBean = CEventBean, S.TimerBean = TimerBean;
661
- }, at = {
662
- install: rt
658
+ }, rt = {
659
+ install: it
663
660
  };
664
- let k = {}, A = {};
665
- const nt = (e) => {
666
- e.use(G), k = Cookie.get("iconObj") || {}, A = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => k[t], VConf.vicon.fun.setRes = (t, s) => {
661
+ let k = {}, x = {};
662
+ const at = (e) => {
663
+ e.use(G), k = Cookie.get("iconObj") || {}, x = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => k[t], VConf.vicon.fun.setRes = (t, s) => {
667
664
  k[t] = s, Cookie.set("iconObj", k);
668
- }, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => A[t], VConf.vsicon.fun.setRes = (t, s) => {
669
- A[t] = s, Cookie.set("siconObj", A);
665
+ }, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => x[t], VConf.vsicon.fun.setRes = (t, s) => {
666
+ x[t] = s, Cookie.set("siconObj", x);
670
667
  };
671
- }, lt = {
672
- install: nt
673
- }, ct = { style: { border: "1px solid #ccc" } }, ut = /* @__PURE__ */ V({
668
+ }, nt = {
669
+ install: at
670
+ }, lt = { style: { border: "1px solid #ccc" } }, ct = /* @__PURE__ */ j({
674
671
  __name: "index",
675
672
  props: {
676
673
  modelValue: {
@@ -680,7 +677,7 @@ const nt = (e) => {
680
677
  },
681
678
  emits: ["update:modelValue"],
682
679
  setup(e, { emit: t }) {
683
- const s = U(() => m.loadModule("editor").then((n) => n.Editor)), o = U(() => m.loadModule("editor").then((n) => n.Toolbar)), r = e, a = t, l = P(), p = W(r.modelValue);
680
+ const s = I(() => h.loadModule("editor").then((n) => n.Editor)), o = I(() => h.loadModule("editor").then((n) => n.Toolbar)), r = e, a = t, l = P(), p = W(r.modelValue);
684
681
  z(p, (n) => {
685
682
  a("update:modelValue", n);
686
683
  });
@@ -691,10 +688,10 @@ const nt = (e) => {
691
688
  MENU_CONF: {
692
689
  uploadImage: {
693
690
  async customUpload(n, g) {
694
- const h = await $.upload({
691
+ const m = await R.upload({
695
692
  file: n
696
693
  });
697
- h.data = u.getBaseUrl(h.data), g(h.data, "", h.data), a("update:modelValue", p.value);
694
+ m.data = u.getBaseUrl(m.data), g(m.data, "", m.data), a("update:modelValue", p.value);
698
695
  }
699
696
  }
700
697
  }
@@ -703,27 +700,27 @@ const nt = (e) => {
703
700
  const n = l.value;
704
701
  n?.destroy();
705
702
  });
706
- const w = (n) => {
703
+ const C = (n) => {
707
704
  l.value = n;
708
705
  };
709
- return (n, g) => (E(), J("div", ct, [
710
- _(C(o), {
706
+ return (n, g) => (E(), J("div", lt, [
707
+ _(w(o), {
711
708
  style: { "border-bottom": "1px solid #ccc" },
712
709
  editor: l.value,
713
710
  defaultConfig: i,
714
711
  mode: "default"
715
712
  }, null, 8, ["editor"]),
716
- _(C(s), {
713
+ _(w(s), {
717
714
  style: { height: "500px", "overflow-y": "hidden" },
718
715
  modelValue: p.value,
719
- "onUpdate:modelValue": g[0] || (g[0] = (h) => p.value = h),
716
+ "onUpdate:modelValue": g[0] || (g[0] = (m) => p.value = m),
720
717
  defaultConfig: f,
721
718
  mode: "default",
722
- onOnCreated: w
719
+ onOnCreated: C
723
720
  }, null, 8, ["modelValue"])
724
721
  ]));
725
722
  }
726
- }), pt = (e) => {
723
+ }), ut = (e) => {
727
724
  const t = {
728
725
  activeValue: 1,
729
726
  inactiveValue: 0,
@@ -794,23 +791,23 @@ const nt = (e) => {
794
791
  }
795
792
  }), e.use(K, {
796
793
  customComponent: {
797
- xEditor: ut
794
+ xEditor: ct
798
795
  }
799
796
  });
800
- }, dt = {
801
- install: pt
802
- }, ht = (e) => {
803
- e.use(it), e.use(at), e.use(lt), e.use(dt);
804
- }, mt = {
805
- install: ht
806
- }, ft = () => {
797
+ }, pt = {
798
+ install: ut
799
+ }, dt = (e) => {
800
+ e.use(ot), e.use(rt), e.use(nt), e.use(pt);
801
+ }, ht = {
802
+ install: dt
803
+ }, mt = () => {
807
804
  const e = (i) => i.replace(/\/index$/, "");
808
805
  let t = /* @__PURE__ */ Object.assign({
809
806
  "/src/views/error/index.vue": () => import("./index-BTuR22Wh.js"),
810
807
  "/src/views/layout/index.vue": () => import("./index-Bk_LJXIb.js"),
811
808
  "/src/views/login/index.vue": () => import("./index-D47lvu37.js"),
812
- "/src/views/pages/auth/api/index.vue": () => import("./index-DxQTvIMJ.js"),
813
- "/src/views/pages/auth/menu/index.vue": () => import("./index-Dd54sn7c.js"),
809
+ "/src/views/pages/auth/api/index.vue": () => import("./index-Dejkixap.js"),
810
+ "/src/views/pages/auth/menu/index.vue": () => import("./index-Cwr-LCNc.js"),
814
811
  "/src/views/pages/auth/role/index.vue": () => import("./index-CRagZR_l.js"),
815
812
  "/src/views/pages/auth/user/index.vue": () => import("./index-WKWmXVBK.js"),
816
813
  "/src/views/pages/db/index.vue": () => import("./index-DFNCjb_F.js"),
@@ -824,7 +821,7 @@ const nt = (e) => {
824
821
  "/src/views/pages/system/tenant/index.vue": () => import("./index-uPQ6O40Q.js")
825
822
  });
826
823
  if (!u.config.routes) {
827
- m.fail("router.routes is required");
824
+ h.fail("router.routes is required");
828
825
  return;
829
826
  }
830
827
  Object.keys(u.config.routes).forEach((i) => {
@@ -870,67 +867,66 @@ const nt = (e) => {
870
867
  }
871
868
  ]
872
869
  });
873
- return m.router = p, m.routes = l.array, p;
870
+ return h.router = p, h.routes = l.array, p;
874
871
  };
875
872
  v.store = {
876
873
  ssys: c,
877
874
  suser: d,
878
875
  sutil: v,
879
- svf: j,
880
- scurd: I
876
+ svf: $,
877
+ scurd: T
881
878
  };
882
- const gt = () => {
879
+ const ft = () => {
883
880
  Object.keys(v.store).forEach((e) => {
884
881
  e !== "sutil" && v.store[e].reset?.();
885
882
  });
886
- }, vt = () => {
883
+ }, gt = () => {
887
884
  Object.keys(v.store).forEach((e) => {
888
885
  e !== "sutil" && v.store[e].load?.();
889
886
  });
890
- }, wt = async () => {
891
- vt();
887
+ }, vt = async () => {
888
+ gt();
892
889
  };
893
- v.reset = gt;
890
+ v.reset = ft;
894
891
  class Ct {
895
892
  /**
896
893
  * 初始化
897
894
  */
898
895
  static async init(t) {
899
- t.use(mt), t.use(u.i18n), await u.i18n.setLang(), wt(), L.init();
900
- const s = ft();
896
+ t.use(ht), t.use(u.i18n), await u.i18n.setLang(), vt(), b.init();
897
+ const s = mt();
901
898
  t.use(s), s.isReady().then(async () => {
902
899
  t.mount("#app");
903
900
  });
904
901
  }
905
902
  }
906
- const O = F(st), Mt = async (e) => {
907
- u.setConfig(e), await u.config.install?.(O), O.use(window.ElementPlus);
903
+ const A = F(et), Nt = async (e) => {
904
+ u.setConfig(e), await u.config.install?.(A), A.use(window.ElementPlus);
908
905
  const t = await import("./index-DU5RPuKk.js");
909
- O.use(t), Ct.init(O);
906
+ A.use(t), Ct.init(A);
910
907
  };
911
908
  export {
912
- $ as ApiApp,
913
- At as ApiAuthApi,
914
- Ot as ApiAuthMenu,
915
- _t as ApiAuthPhone,
916
- Et as ApiAuthRole,
917
- It as ApiAuthUser,
909
+ R as ApiApp,
910
+ xt as ApiAuthApi,
911
+ At as ApiAuthMenu,
912
+ Ot as ApiAuthPhone,
913
+ _t as ApiAuthRole,
914
+ Et as ApiAuthUser,
918
915
  Tt as ApiCaptcha,
919
- St as ApiCron,
920
- Rt as ApiEmailConfig,
916
+ It as ApiCron,
917
+ St as ApiEmailConfig,
921
918
  Vt as ApiErrorLog,
922
- $t as ApiJob,
919
+ jt as ApiJob,
923
920
  Ut as ApiLoginLog,
924
- jt as ApiSmsConfig,
925
- Dt as ApiSystemConfig,
926
- Nt as ApiSystemTenant,
927
- et as EDialog,
921
+ Rt as ApiSmsConfig,
922
+ $t as ApiSystemConfig,
923
+ Dt as ApiSystemTenant,
928
924
  tt as ERouter,
929
925
  u as System,
930
- Mt as initApp,
931
- I as scurd,
926
+ Nt as initApp,
927
+ T as scurd,
932
928
  c as ssys,
933
929
  d as suser,
934
930
  v as sutil,
935
- j as svf
931
+ $ as svf
936
932
  };