jmash-core 0.1.13 → 0.1.15

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.
Files changed (29) hide show
  1. package/README.md +57 -57
  2. package/dist/{401-BcGTgHAm.mjs → 401-C-Z61lLd.mjs} +2 -2
  3. package/dist/{404-CnraIJ2H.mjs → 404-B0xdJSOl.mjs} +8 -8
  4. package/dist/{BarChart-DJ-wSXB4.mjs → BarChart-CVVuHHkX.mjs} +2 -2
  5. package/dist/{index-BjBVwnHW.mjs → index-Bd-9PguH.mjs} +8808 -8451
  6. package/dist/index-BeclKUkp.mjs +26 -0
  7. package/dist/{index-VZhyMSwH.mjs → index-CJ7wU_M7.mjs} +13 -13
  8. package/dist/{index-Dbzm9SAW.mjs → index-CQK8n-wP.mjs} +18 -18
  9. package/dist/{index-DhsGavW6.mjs → index-DI57cJJp.mjs} +81 -74
  10. package/dist/{index-C8JpbA4n.mjs → index-D_w6Hgrj.mjs} +17 -17
  11. package/dist/index.mjs +61 -57
  12. package/dist/{profile-DlEftq9N.mjs → profile-6d2duxJR.mjs} +2 -2
  13. package/dist/{runAs-CgbfNv4R.mjs → runAs-faf8rkih.mjs} +1 -1
  14. package/dist/runAs.vue_vue_type_script_setup_true_lang-owDiLD86.mjs +2610 -0
  15. package/dist/style.css +1 -1
  16. package/dist/{types-CaRkLleQ.mjs → types-3onZoSqF.mjs} +41 -38
  17. package/dist/{updatePwd-B2hzJU2l.mjs → updatePwd-Bje9j_CP.mjs} +1 -1
  18. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DDjbAy5V.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Z21pA8yn.mjs} +1 -1
  19. package/dts/src/api/auth/index.d.ts +8 -2
  20. package/dts/src/api/auth/types.d.ts +26 -0
  21. package/dts/src/components/RegisterForm/index.vue.d.ts +2 -0
  22. package/dts/src/index.d.ts +11 -9
  23. package/dts/src/lang/package/zh-cn.d.ts +27 -0
  24. package/dts/src/router/index.d.ts +1 -0
  25. package/dts/src/settings.d.ts +3 -1
  26. package/dts/src/types/index.d.ts +1 -0
  27. package/dts/src/views/register/index.vue.d.ts +2 -0
  28. package/package.json +3 -3
  29. package/dist/runAs.vue_vue_type_script_setup_true_lang-msF4q50T.mjs +0 -2558
@@ -0,0 +1,26 @@
1
+ import { defineComponent as r, resolveComponent as n, createElementBlock as s, openBlock as a, createVNode as t, unref as c, withCtx as d, createElementVNode as _ } from "vue";
2
+ import { u as i, aE as p, h as l } from "./index-Bd-9PguH.mjs";
3
+ const m = { class: "register-container" }, u = /* @__PURE__ */ r({
4
+ __name: "index",
5
+ setup(f) {
6
+ return (v, e) => {
7
+ const o = n("el-card");
8
+ return a(), s("div", m, [
9
+ t(o, {
10
+ device: c(i)().device,
11
+ class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
12
+ }, {
13
+ default: d(() => [
14
+ e[0] || (e[0] = _("h3", { class: "register-container_title" }, "账号注册", -1)),
15
+ t(p)
16
+ ]),
17
+ _: 1,
18
+ __: [0]
19
+ }, 8, ["device"])
20
+ ]);
21
+ };
22
+ }
23
+ }), h = /* @__PURE__ */ l(u, [["__scopeId", "data-v-321a6d52"]]);
24
+ export {
25
+ h as default
26
+ };
@@ -1,8 +1,8 @@
1
1
  import { _ as A } from "./RadarChart.vue_vue_type_script_setup_true_lang-Dmh0_OQ4.mjs";
2
2
  import { _ as Z } from "./PieChart.vue_vue_type_script_setup_true_lang-Bw7ozgOv.mjs";
3
- import q from "./BarChart-DJ-wSXB4.mjs";
4
- import { h as B, f as F, b as G, p as f, q as p, _ as H } from "./index-BjBVwnHW.mjs";
5
- import { createElementBlock as b, openBlock as C, createElementVNode as t, defineComponent as R, computed as k, ref as x, resolveComponent as c, createVNode as s, withCtx as n, unref as l, toDisplayString as r, createTextVNode as u } from "vue";
3
+ import q from "./BarChart-CVVuHHkX.mjs";
4
+ import { h as B, f as F, b as G, p as f, q as p, _ as H } from "./index-Bd-9PguH.mjs";
5
+ import { createElementBlock as C, openBlock as y, createElementVNode as t, defineComponent as R, computed as k, ref as x, resolveComponent as c, createVNode as s, withCtx as n, unref as l, toDisplayString as r, createTextVNode as u } from "vue";
6
6
  const J = {}, K = {
7
7
  href: "https://github.com/haoxianrui",
8
8
  target: "_blank",
@@ -16,8 +16,8 @@ const J = {}, K = {
16
16
  "aria-hidden": "true"
17
17
  };
18
18
  function W(I, _) {
19
- return C(), b("a", K, [
20
- (C(), b("svg", Q, _[0] || (_[0] = [
19
+ return y(), C("a", K, [
20
+ (y(), C("svg", Q, _[0] || (_[0] = [
21
21
  t("path", { d: "M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" }, null, -1),
22
22
  t("path", {
23
23
  d: "M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",
@@ -33,16 +33,16 @@ function W(I, _) {
33
33
  ])))
34
34
  ]);
35
35
  }
36
- const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-5088dedb"]]), Y = { class: "dashboard-container" }, tt = { class: "flex h-full items-center" }, et = ["src"], st = { class: "flex h-full items-center justify-around" }, nt = { class: "flex items-center" }, ot = { class: "flex items-center" }, lt = { class: "flex items-center" }, at = { class: "flex items-center justify-between" }, rt = { class: "flex items-center justify-between mt-5" }, it = { class: "text-lg text-right" }, dt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ct = { class: "flex items-center justify-between" }, ut = { class: "flex items-center justify-between mt-5" }, _t = { class: "text-lg text-right" }, mt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ft = { class: "flex items-center justify-between" }, pt = { class: "flex items-center justify-between mt-5" }, xt = { class: "text-lg text-right" }, vt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ht = { class: "flex items-center justify-between" }, gt = { class: "flex items-center justify-between mt-5" }, bt = { class: "text-lg text-right" }, Ct = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, v = 5e3, yt = /* @__PURE__ */ R({
36
+ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]), Y = { class: "dashboard-container" }, tt = { class: "flex h-full items-center" }, et = ["src"], st = { class: "flex h-full items-center justify-around" }, nt = { class: "flex items-center" }, ot = { class: "flex items-center" }, lt = { class: "flex items-center" }, at = { class: "flex items-center justify-between" }, rt = { class: "flex items-center justify-between mt-5" }, it = { class: "text-lg text-right" }, dt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ct = { class: "flex items-center justify-between" }, ut = { class: "flex items-center justify-between mt-5" }, _t = { class: "text-lg text-right" }, mt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ft = { class: "flex items-center justify-between" }, pt = { class: "flex items-center justify-between mt-5" }, xt = { class: "text-lg text-right" }, vt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, ht = { class: "flex items-center justify-between" }, gt = { class: "flex items-center justify-between mt-5" }, Ct = { class: "text-lg text-right" }, yt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, v = 5e3, bt = /* @__PURE__ */ R({
37
37
  name: "Dashboard",
38
38
  inheritAttrs: !1,
39
39
  __name: "index",
40
40
  setup(I) {
41
- const _ = k(() => F.imageUrl(y.user.avatar, 160, 160)), N = (o) => {
41
+ const _ = k(() => F.imageUrl(b.user.avatar, 160, 160)), N = (o) => {
42
42
  o.target.src = "https://gh.sooyie.cn/v1/file/path/wxapp/images/user/avatar.png";
43
- }, y = G(), P = /* @__PURE__ */ new Date(), V = k(() => {
43
+ }, b = G(), P = /* @__PURE__ */ new Date(), V = k(() => {
44
44
  const o = P.getHours();
45
- let e = y.user.realName;
45
+ let e = b.user.realName;
46
46
  if (o >= 6 && o < 8)
47
47
  return "晨起披衣出草堂,轩窗已自喜微凉🌅!";
48
48
  if (o >= 8 && o < 12)
@@ -74,7 +74,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-5088dedb"]]
74
74
  });
75
75
  return L.value = 2e3, (o, e) => {
76
76
  const D = X, a = c("el-col"), i = H, h = c("el-statistic"), g = c("el-row"), d = c("el-card"), m = c("el-tag"), S = q, T = Z, U = A;
77
- return C(), b("div", Y, [
77
+ return y(), C("div", Y, [
78
78
  s(D, { class: "github-corner" }),
79
79
  s(d, { shadow: "never" }, {
80
80
  default: n(() => [
@@ -291,13 +291,13 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-5088dedb"]]
291
291
  ]),
292
292
  default: n(() => [
293
293
  t("div", gt, [
294
- t("div", bt, r(Math.round(l($))), 1),
294
+ t("div", Ct, r(Math.round(l($))), 1),
295
295
  s(i, {
296
296
  "icon-class": "order",
297
297
  size: "2em"
298
298
  })
299
299
  ]),
300
- t("div", Ct, [
300
+ t("div", yt, [
301
301
  e[16] || (e[16] = t("span", null, " 总订单量 ", -1)),
302
302
  t("span", null, r(Math.round(l($) * 15)), 1)
303
303
  ])
@@ -368,7 +368,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-5088dedb"]]
368
368
  ]);
369
369
  };
370
370
  }
371
- }), zt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-b08e560e"]]);
371
+ }), zt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-3f78985d"]]);
372
372
  export {
373
373
  zt as default
374
374
  };
@@ -1,44 +1,44 @@
1
- import { defineComponent as v, ref as y, resolveComponent as d, createElementBlock as c, openBlock as l, createElementVNode as s, Fragment as x, renderList as k, unref as _, createVNode as g, toDisplayString as C, withCtx as b } from "vue";
2
- import { b as p, o as w, f as B, h as R } from "./index-BjBVwnHW.mjs";
1
+ import { defineComponent as v, ref as y, resolveComponent as d, createElementBlock as c, openBlock as l, createElementVNode as s, Fragment as x, renderList as k, unref as _, createVNode as g, toDisplayString as C, withCtx as w } from "vue";
2
+ import { b as p, o as B, f as R, h as b } from "./index-Bd-9PguH.mjs";
3
3
  import { useRoute as q, useRouter as A } from "vue-router";
4
4
  const L = { class: "organ-container" }, N = { class: "organ-content" }, O = ["onClick"], S = ["src"], U = { style: { "margin-right": "auto" } }, E = /* @__PURE__ */ v({
5
5
  __name: "index",
6
6
  setup(I) {
7
7
  const h = q(), m = A(), f = p(), i = y([]);
8
- w().then((t) => {
9
- t.data.results.length === 1 && u(t.data.results[0]), i.value = t.data.results;
8
+ B().then((e) => {
9
+ e.data.results.length === 1 && u(e.data.results[0]), i.value = e.data.results;
10
10
  });
11
- const u = (t) => {
12
- f.loginOrgan(t.tenant).then(() => {
13
- p().user.tenant = t.tenant;
11
+ const u = (e) => {
12
+ f.loginOrgan(e.tenant).then(() => {
13
+ p().user.tenant = e.tenant;
14
14
  const n = h.query, a = n.redirect ?? "/", o = Object.keys(n).reduce(
15
- (e, r) => (r !== "redirect" && (e[r] = n[r]), e),
15
+ (t, r) => (r !== "redirect" && (t[r] = n[r]), t),
16
16
  {}
17
17
  );
18
- o.tenant = t.tenant, m.push({ path: a, query: o });
18
+ o.tenant = e.tenant, m.push({ path: a, query: o });
19
19
  });
20
20
  };
21
- return (t, n) => {
21
+ return (e, n) => {
22
22
  const a = d("ArrowRightBold"), o = d("el-icon");
23
23
  return l(), c("div", L, [
24
24
  n[0] || (n[0] = s("h1", null, "请选择一个组织进入", -1)),
25
25
  s("div", N, [
26
- (l(!0), c(x, null, k(_(i), (e) => (l(), c("div", {
26
+ (l(!0), c(x, null, k(_(i), (t) => (l(), c("div", {
27
27
  class: "organ-content_item",
28
- key: e.organId,
29
- onClick: (r) => u(e)
28
+ key: t.organId,
29
+ onClick: (r) => u(t)
30
30
  }, [
31
31
  s("img", {
32
- src: _(B).imageUrl(
33
- e.logoUrl || "/wxapp/images/user/avatar.png",
32
+ src: _(R).imageUrl(
33
+ t.logoUrl || "/wxapp/images/user/avatar.png",
34
34
  60,
35
35
  60
36
36
  ),
37
37
  alt: "logo"
38
38
  }, null, 8, S),
39
- s("div", U, C(e.organName), 1),
39
+ s("div", U, C(t.organName), 1),
40
40
  g(o, null, {
41
- default: b(() => [
41
+ default: w(() => [
42
42
  g(a)
43
43
  ]),
44
44
  _: 1
@@ -48,7 +48,7 @@ const L = { class: "organ-container" }, N = { class: "organ-content" }, O = ["on
48
48
  ]);
49
49
  };
50
50
  }
51
- }), F = /* @__PURE__ */ R(E, [["__scopeId", "data-v-648bd33b"]]);
51
+ }), F = /* @__PURE__ */ b(E, [["__scopeId", "data-v-30bc9ae2"]]);
52
52
  export {
53
53
  F as default
54
54
  };
@@ -1,20 +1,20 @@
1
- import { w as b, u as g, b as W, n as H, e as F, g as G, y as J, t as X, z as Y, h as Z } from "./index-BjBVwnHW.mjs";
2
- import { defineComponent as ee, ref as c, computed as te, watchEffect as oe, resolveComponent as d, createElementBlock as le, openBlock as se, createElementVNode as o, createVNode as l, withDirectives as U, unref as k, withCtx as u, normalizeStyle as ae, vShow as D, withKeys as z, withModifiers as re, createTextVNode as ne, toDisplayString as Q, normalizeClass as ue } from "vue";
3
- import ie from "./assets/0cda52992278af9e.png";
4
- import { useI18n as ce } from "vue-i18n";
1
+ import { v as b, u as g, b as H, n as F, e as G, g as J, y as X, t as Y, z as Z, h as ee } from "./index-Bd-9PguH.mjs";
2
+ import { defineComponent as te, ref as c, computed as oe, watchEffect as le, resolveComponent as d, createElementBlock as se, openBlock as re, createElementVNode as o, createVNode as l, withDirectives as U, unref as k, withCtx as i, normalizeStyle as ae, vShow as D, withKeys as z, withModifiers as ne, createTextVNode as ie, toDisplayString as Q, normalizeClass as ue } from "vue";
3
+ import ce from "./assets/0cda52992278af9e.png";
4
+ import { useI18n as de } from "vue-i18n";
5
5
  import "element-plus";
6
- import { useRoute as de, useRouter as pe } from "vue-router";
7
- import me from "./assets/09fcc36c527efda6.jpg";
8
- const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, _e = { class: "qrcode-container" }, ge = ["src"], he = { class: "flex justify-between items-center w-full" }, ye = ["src"], we = { class: "bg-small" }, Ce = 992, be = /* @__PURE__ */ ee({
6
+ import { useRoute as pe, useRouter as me } from "vue-router";
7
+ import fe from "./assets/09fcc36c527efda6.jpg";
8
+ const ve = { class: "login-container" }, _e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, ge = { class: "qrcode-container" }, he = ["src"], ye = { class: "flex justify-between items-center w-full" }, we = ["src"], Ce = { class: "bg-small" }, be = 992, ke = /* @__PURE__ */ te({
9
9
  __name: "index",
10
- setup(ke) {
11
- const { t: q } = ce(), h = c(b.APP_ACTIVE), j = (e) => {
12
- e.props.name === "user" ? (C(), m()) : T(), h.value = e.props.name;
10
+ setup(qe) {
11
+ const { t: q } = de(), h = c(b.APP_ACTIVE), j = (e) => {
12
+ e.props.name === "user" ? (C(), m()) : I(), h.value = e.props.name;
13
13
  }, s = c({
14
14
  scope: "",
15
15
  username: "",
16
16
  password: ""
17
- }), B = te(() => {
17
+ }), B = oe(() => {
18
18
  const e = g().language === "en" ? "Please enter " : "请输入";
19
19
  return {
20
20
  username: [
@@ -28,8 +28,8 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
28
28
  {
29
29
  required: !0,
30
30
  trigger: "blur",
31
- validator: (t, r, a) => {
32
- r.length < 5 ? a(new Error("The password can not be less than 5 digits")) : a();
31
+ validator: (t, a, r) => {
32
+ a.length < 5 ? r(new Error("The password can not be less than 5 digits")) : r();
33
33
  },
34
34
  message: `${e}${q("login.password")}`
35
35
  }
@@ -42,43 +42,43 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
42
42
  }
43
43
  ]
44
44
  };
45
- }), V = c(!1), I = c(), x = de(), P = pe(), $ = W(), E = () => {
45
+ }), V = c(!1), x = c(), P = pe(), E = me(), $ = H(), T = () => {
46
46
  var e;
47
- (e = I.value) == null || e.validate((t) => {
48
- t && (V.value = !0, $.login({ ...s.value, password: J(s.value.password) }).then(() => {
49
- const r = x.query, a = r.redirect ?? b.APP_REDIRECT, n = Object.keys(r).reduce(
50
- (p, _) => (_ !== "redirect" && (p[_] = r[_]), p),
47
+ (e = x.value) == null || e.validate((t) => {
48
+ t && (V.value = !0, $.login({ ...s.value, password: X(s.value.password) }).then(() => {
49
+ const a = P.query, r = a.redirect ?? b.APP_REDIRECT, n = Object.keys(a).reduce(
50
+ (p, _) => (_ !== "redirect" && (p[_] = a[_]), p),
51
51
  {}
52
52
  );
53
- P.push({ path: a, query: n }), m();
53
+ E.push({ path: r, query: n }), m();
54
54
  }).catch(() => {
55
55
  m();
56
56
  }).finally(() => {
57
57
  V.value = !1;
58
58
  }));
59
59
  });
60
- }, S = c(""), m = () => {
61
- X().then(({ data: e }) => {
62
- s.value.captchaKey = e.captchaId, S.value = e.base64Image;
60
+ }, R = c(""), m = () => {
61
+ Y().then(({ data: e }) => {
62
+ s.value.captchaKey = e.captchaId, R.value = e.base64Image;
63
63
  });
64
64
  };
65
65
  m();
66
- let y = setInterval(A, 3e3);
66
+ let y = setInterval(S, 3e3);
67
67
  const f = c({});
68
- function T() {
69
- Y().then(({ data: e }) => {
70
- f.value = e, v.value = !1, K(), y = setInterval(A, 3e3);
68
+ function I() {
69
+ Z().then(({ data: e }) => {
70
+ f.value = e, v.value = !1, K(), y = setInterval(S, 3e3);
71
71
  });
72
72
  }
73
- h.value === "qrCode" && T();
74
- function A() {
73
+ h.value === "qrCode" && I();
74
+ function S() {
75
75
  f.value.ticket && $.loginByQrcode({ ticket: f.value.ticket }).then(() => {
76
- C(), v.value = !1, f.value.qrcodeUrl = me;
77
- const e = x.query, t = e.redirect ?? b.APP_REDIRECT, r = Object.keys(e).reduce(
78
- (a, n) => (n !== "redirect" && (a[n] = e[n]), a),
76
+ C(), v.value = !1, f.value.qrcodeUrl = fe;
77
+ const e = P.query, t = e.redirect ?? b.APP_REDIRECT, a = Object.keys(e).reduce(
78
+ (r, n) => (n !== "redirect" && (r[n] = e[n]), r),
79
79
  {}
80
80
  );
81
- P.push({ path: t, query: r });
81
+ E.push({ path: t, query: a });
82
82
  });
83
83
  }
84
84
  let w = null;
@@ -91,44 +91,47 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
91
91
  C(), v.value = !0;
92
92
  }, b.APP_TIMEOUT);
93
93
  }
94
- const R = g(), { width: L } = H();
95
- return oe(() => {
96
- L.value < Ce ? R.toggleDevice("mobile") : R.toggleDevice("desktop");
94
+ function L() {
95
+ E.push({ path: "/register" });
96
+ }
97
+ const A = g(), { width: M } = F();
98
+ return le(() => {
99
+ M.value < be ? A.toggleDevice("mobile") : A.toggleDevice("desktop");
97
100
  }), (e, t) => {
98
- const r = F, a = d("el-tab-pane"), n = d("el-input"), p = d("el-form-item"), _ = d("el-button"), M = d("el-form"), N = d("el-tabs"), O = d("el-card");
99
- return se(), le("div", fe, [
100
- o("div", ve, [
101
- l(r, {
101
+ const a = G, r = d("el-tab-pane"), n = d("el-input"), p = d("el-form-item"), _ = d("el-button"), N = d("el-form"), O = d("el-tabs"), W = d("el-card");
102
+ return re(), se("div", ve, [
103
+ o("div", _e, [
104
+ l(a, {
102
105
  class: "ml-2 cursor-pointer",
103
106
  style: { "font-size": "18px" }
104
107
  })
105
108
  ]),
106
- l(O, {
109
+ l(W, {
107
110
  device: k(g)().device,
108
111
  class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
109
112
  }, {
110
- default: u(() => [
111
- l(N, {
113
+ default: i(() => [
114
+ l(O, {
112
115
  modelValue: h.value,
113
- "onUpdate:modelValue": t[3] || (t[3] = (i) => h.value = i),
116
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => h.value = u),
114
117
  class: "demo-tabs",
115
118
  onTabClick: j
116
119
  }, {
117
- default: u(() => [
118
- l(a, {
120
+ default: i(() => [
121
+ l(r, {
119
122
  label: "扫码登录",
120
123
  name: "qrCode"
121
124
  }, {
122
- default: u(() => [
123
- o("div", _e, [
125
+ default: i(() => [
126
+ o("div", ge, [
124
127
  o("img", {
125
128
  src: f.value.qrcodeUrl,
126
129
  style: ae({ opacity: v.value ? 0.02 : 1 }),
127
130
  alt: "二维码"
128
- }, null, 12, ge),
131
+ }, null, 12, he),
129
132
  U(o("div", null, [
130
133
  t[4] || (t[4] = o("div", null, "二维码已过期", -1)),
131
- o("div", { onClick: T }, "点击刷新")
134
+ o("div", { onClick: I }, "点击刷新")
132
135
  ], 512), [
133
136
  [D, v.value]
134
137
  ])
@@ -138,57 +141,57 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
138
141
  _: 1,
139
142
  __: [5]
140
143
  }),
141
- l(a, {
144
+ l(r, {
142
145
  label: "账号登录",
143
146
  name: "user"
144
147
  }, {
145
- default: u(() => [
146
- l(M, {
148
+ default: i(() => [
149
+ l(N, {
147
150
  ref_key: "formRef",
148
- ref: I,
151
+ ref: x,
149
152
  model: s.value,
150
153
  rules: B.value
151
154
  }, {
152
- default: u(() => [
155
+ default: i(() => [
153
156
  l(p, { prop: "username" }, {
154
- default: u(() => [
157
+ default: i(() => [
155
158
  l(n, {
156
159
  modelValue: s.value.username,
157
- "onUpdate:modelValue": t[0] || (t[0] = (i) => s.value.username = i),
160
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => s.value.username = u),
158
161
  placeholder: e.$t("login.username")
159
162
  }, null, 8, ["modelValue", "placeholder"])
160
163
  ]),
161
164
  _: 1
162
165
  }),
163
166
  l(p, { prop: "password" }, {
164
- default: u(() => [
167
+ default: i(() => [
165
168
  l(n, {
166
169
  modelValue: s.value.password,
167
- "onUpdate:modelValue": t[1] || (t[1] = (i) => s.value.password = i),
170
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => s.value.password = u),
168
171
  placeholder: e.$t("login.password"),
169
172
  type: "password",
170
173
  "show-password": "",
171
- onKeyup: z(E, ["enter"])
174
+ onKeyup: z(T, ["enter"])
172
175
  }, null, 8, ["modelValue", "placeholder"])
173
176
  ]),
174
177
  _: 1
175
178
  }),
176
179
  l(p, { prop: "captchaCode" }, {
177
- default: u(() => [
178
- o("div", he, [
180
+ default: i(() => [
181
+ o("div", ye, [
179
182
  l(n, {
180
183
  style: { width: "65%" },
181
184
  modelValue: s.value.captchaCode,
182
- "onUpdate:modelValue": t[2] || (t[2] = (i) => s.value.captchaCode = i),
185
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => s.value.captchaCode = u),
183
186
  placeholder: e.$t("login.captchaCode"),
184
- onKeyup: z(E, ["enter"])
187
+ onKeyup: z(T, ["enter"])
185
188
  }, null, 8, ["modelValue", "placeholder"]),
186
189
  o("img", {
187
190
  class: "flex-1 h-[40px] cursor-pointer ml-2",
188
- src: S.value,
191
+ src: R.value,
189
192
  onClick: m,
190
193
  alt: "验证码"
191
- }, null, 8, ye)
194
+ }, null, 8, we)
192
195
  ])
193
196
  ]),
194
197
  _: 1
@@ -197,10 +200,10 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
197
200
  loading: V.value,
198
201
  type: "primary",
199
202
  class: "w-full",
200
- onClick: re(E, ["prevent"])
203
+ onClick: ne(T, ["prevent"])
201
204
  }, {
202
- default: u(() => [
203
- ne(Q(e.$t("login.login")), 1)
205
+ default: i(() => [
206
+ ie(Q(e.$t("login.login")), 1)
204
207
  ]),
205
208
  _: 1
206
209
  }, 8, ["loading"])
@@ -212,14 +215,18 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
212
215
  })
213
216
  ]),
214
217
  _: 1
215
- }, 8, ["modelValue"])
218
+ }, 8, ["modelValue"]),
219
+ o("div", {
220
+ class: "cursor-pointer register-btn",
221
+ onClick: L
222
+ }, " 没有密码,前往注册 ")
216
223
  ]),
217
224
  _: 1
218
225
  }, 8, ["device"]),
219
- U(o("div", we, [
220
- o("div", null, Q(k(G).title), 1),
226
+ U(o("div", Ce, [
227
+ o("div", null, Q(k(J).title), 1),
221
228
  t[6] || (t[6] = o("img", {
222
- src: ie,
229
+ src: ce,
223
230
  alt: "login-bg-small"
224
231
  }, null, -1))
225
232
  ], 512), [
@@ -231,7 +238,7 @@ const fe = { class: "login-container" }, ve = { class: "absolute top-0 flex item
231
238
  ]);
232
239
  };
233
240
  }
234
- }), $e = /* @__PURE__ */ Z(be, [["__scopeId", "data-v-55c050de"]]);
241
+ }), Re = /* @__PURE__ */ ee(ke, [["__scopeId", "data-v-1469303e"]]);
235
242
  export {
236
- $e as default
243
+ Re as default
237
244
  };
@@ -1,8 +1,8 @@
1
- import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as q, i as Ve, r as Te, j as me, T as he, s as Ke, m as Xe, k as je, l as fe, n as Ge } from "./index-BjBVwnHW.mjs";
1
+ import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as q, i as Ve, r as Te, j as me, T as he, s as Ke, m as Xe, k as je, l as fe, n as Ge } from "./index-Bd-9PguH.mjs";
2
2
  import { defineComponent as D, ref as U, resolveComponent as V, createBlock as S, openBlock as d, withCtx as h, createElementVNode as k, createVNode as p, createElementBlock as x, Fragment as K, renderList as se, unref as l, createTextVNode as N, toDisplayString as E, computed as B, createCommentVNode as T, isRef as ve, watch as oe, onBeforeMount as Ye, TransitionGroup as Je, withModifiers as ue, normalizeClass as H, Transition as Me, KeepAlive as Qe, resolveDynamicComponent as ye, getCurrentInstance as Ze, nextTick as $e, onMounted as Ee, withDirectives as et, normalizeStyle as tt, vShow as nt, normalizeProps as ot, guardReactiveProps as it, renderSlot as at, watchEffect as lt } from "vue";
3
3
  import { useRoute as pe, useRouter as ke } from "vue-router";
4
- import { _ as st } from "./updatePwd.vue_vue_type_script_setup_true_lang-DDjbAy5V.mjs";
5
- import { _ as rt, E as ct } from "./runAs.vue_vue_type_script_setup_true_lang-msF4q50T.mjs";
4
+ import { _ as st } from "./updatePwd.vue_vue_type_script_setup_true_lang-Z21pA8yn.mjs";
5
+ import { _ as rt, E as ct } from "./runAs.vue_vue_type_script_setup_true_lang-owDiLD86.mjs";
6
6
  import { storeToRefs as ut } from "pinia";
7
7
  const dt = /* @__PURE__ */ D({
8
8
  __name: "index",
@@ -190,7 +190,7 @@ const dt = /* @__PURE__ */ D({
190
190
  ]);
191
191
  };
192
192
  }
193
- }), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-93831536"]]);
193
+ }), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-745304a4"]]);
194
194
  function gt(i) {
195
195
  for (var e = [], t = 0; t < i.length; ) {
196
196
  var o = i[t];
@@ -455,7 +455,7 @@ const kt = {
455
455
  });
456
456
  };
457
457
  }
458
- }), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-2ad27a3f"]]), Tt = /* @__PURE__ */ D({
458
+ }), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-6109c28e"]]), Tt = /* @__PURE__ */ D({
459
459
  __name: "index",
460
460
  props: {
461
461
  isActive: {
@@ -483,7 +483,7 @@ const kt = {
483
483
  ]);
484
484
  };
485
485
  }
486
- }), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-dc46f6f8"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
486
+ }), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-42e37629"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
487
487
  __name: "NavbarLeft",
488
488
  setup(i) {
489
489
  const e = Z();
@@ -509,7 +509,7 @@ function Lt(i, e) {
509
509
  p(o)
510
510
  ]);
511
511
  }
512
- const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-706e4188"]]);
512
+ const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-b1624593"]]);
513
513
  var Q = /* @__PURE__ */ ((i) => (i.LEFT = "left", i.TOP = "top", i.MIX = "mix", i))(Q || {});
514
514
  const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PURE__ */ D({
515
515
  __name: "LayoutSelect",
@@ -573,7 +573,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
573
573
  ]);
574
574
  };
575
575
  }
576
- }), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-d50a3d59"]]), Bt = /* @__PURE__ */ D({
576
+ }), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-2bdf1403"]]), Bt = /* @__PURE__ */ D({
577
577
  __name: "ThemeColorPicker",
578
578
  props: {
579
579
  modelValue: String
@@ -604,7 +604,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
604
604
  }, null, 8, ["modelValue"]);
605
605
  };
606
606
  }
607
- }), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-ba641afc"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
607
+ }), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-92c1fd79"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
608
608
  __name: "index",
609
609
  setup(i) {
610
610
  const e = pe(), t = Z(), o = te(), r = me(), n = B({
@@ -731,7 +731,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
731
731
  }, 8, ["modelValue", "title"]);
732
732
  };
733
733
  }
734
- }), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-f632744c"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
734
+ }), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-70f5bf10"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
735
735
  __name: "index",
736
736
  setup(i) {
737
737
  const e = B(() => we().cachedViews);
@@ -762,7 +762,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
762
762
  ]);
763
763
  };
764
764
  }
765
- }), en = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-36a58953"]]), tn = {
765
+ }), en = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-f32946ce"]]), tn = {
766
766
  viewBox: "0 0 1024 1024",
767
767
  width: "1.2em",
768
768
  height: "1.2em"
@@ -1199,7 +1199,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1199
1199
  ]);
1200
1200
  };
1201
1201
  }
1202
- }), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-4c486693"]]), cn = /* @__PURE__ */ D({
1202
+ }), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-77bfe9a5"]]), cn = /* @__PURE__ */ D({
1203
1203
  name: "AppLink",
1204
1204
  inheritAttrs: !1,
1205
1205
  __name: "index",
@@ -1260,7 +1260,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1260
1260
  ], 64);
1261
1261
  };
1262
1262
  }
1263
- }), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-e70291db"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
1263
+ }), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-992a058f"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
1264
1264
  name: "SidebarMenuItem",
1265
1265
  inheritAttrs: !1,
1266
1266
  __name: "SidebarMenuItem",
@@ -1348,7 +1348,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1348
1348
  ])) : T("", !0);
1349
1349
  };
1350
1350
  }
1351
- }), _n = "_dark_168i3_12", ae = {
1351
+ }), _n = "_dark_1sua6_13", ae = {
1352
1352
  "sidebar-width": "210px",
1353
1353
  "navbar-height": "50px",
1354
1354
  "menu-background": "var(--menu-background)",
@@ -1504,7 +1504,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1504
1504
  ]);
1505
1505
  };
1506
1506
  }
1507
- }), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-c6f65ed6"]]), Cn = {
1507
+ }), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-210c85a9"]]), Cn = {
1508
1508
  key: 0,
1509
1509
  class: "flex w-full"
1510
1510
  }, Vn = /* @__PURE__ */ D({
@@ -1542,7 +1542,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1542
1542
  ], 2);
1543
1543
  };
1544
1544
  }
1545
- }), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-64d75c6a"]]), $n = {
1545
+ }), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-a6d3f8e9"]]), $n = {
1546
1546
  key: 1,
1547
1547
  class: "mix-container"
1548
1548
  }, An = { class: "mix-container__left" }, Mn = { class: "sidebar-toggle" }, En = 992, Ln = /* @__PURE__ */ D({
@@ -1627,7 +1627,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1627
1627
  ], 2);
1628
1628
  };
1629
1629
  }
1630
- }), Nn = /* @__PURE__ */ q(Ln, [["__scopeId", "data-v-12059947"]]);
1630
+ }), Nn = /* @__PURE__ */ q(Ln, [["__scopeId", "data-v-71891bc2"]]);
1631
1631
  export {
1632
1632
  Nn as default
1633
1633
  };