jmash-core 0.1.17 → 0.1.19

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 (33) hide show
  1. package/dist/{401-B-xPz9LF.mjs → 401-CQMri0nX.mjs} +9 -9
  2. package/dist/{404-D6qLFrds.mjs → 404-CDfv-CCs.mjs} +4 -4
  3. package/dist/{BarChart-DUGSmZyQ.mjs → BarChart-CACxjw71.mjs} +6 -6
  4. package/dist/{index-CIsDsOWA.mjs → index-BD4Gujon.mjs} +9593 -9219
  5. package/dist/index-BLIB9EUa.mjs +2163 -0
  6. package/dist/{index-AwPbizZV.mjs → index-Dl15NUoZ.mjs} +21 -21
  7. package/dist/index-VxSky12H.mjs +257 -0
  8. package/dist/{index-DCziYkYK.mjs → index-dkuM7C9F.mjs} +14 -14
  9. package/dist/{index-CZJ3UhUM.mjs → index-gUMOTzZ1.mjs} +7 -7
  10. package/dist/index.mjs +61 -59
  11. package/dist/{profile-GQvC9C8o.mjs → profile-CeMFTyxu.mjs} +29 -29
  12. package/dist/{runAs-Dwg7Iuqd.mjs → runAs-CKJ26HTt.mjs} +1 -1
  13. package/dist/{runAs.vue_vue_type_script_setup_true_lang-BtQpSMZg.mjs → runAs.vue_vue_type_script_setup_true_lang-CIsxY_vn.mjs} +138 -138
  14. package/dist/style.css +1 -1
  15. package/dist/{types-BuuQJDxb.mjs → types-D9Z0uPWX.mjs} +10 -10
  16. package/dist/{updatePwd-5svDyP7G.mjs → updatePwd-D4kZMk8p.mjs} +1 -1
  17. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-C8rArYsn.mjs → updatePwd.vue_vue_type_script_setup_true_lang-C8mlen_N.mjs} +10 -10
  18. package/dts/src/api/auth/index.d.ts +2 -1
  19. package/dts/src/api/auth/types.d.ts +12 -0
  20. package/dts/src/api/change/index.d.ts +5 -0
  21. package/dts/src/api/change/types.d.ts +11 -5
  22. package/dts/src/components/ForgetPwd/index.vue.d.ts +6 -0
  23. package/dts/src/components/ForgotPwd/index.vue.d.ts +6 -0
  24. package/dts/src/components/GraphicValidate/index.vue.d.ts +8 -0
  25. package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +1 -1
  26. package/dts/src/components/NameValidate/index.vue.d.ts +63 -0
  27. package/dts/src/index.d.ts +4 -3
  28. package/dts/src/lang/package/zh-cn.d.ts +36 -1
  29. package/dts/src/layout/components/NavBar/components/ChangeWechatBind.vue.d.ts +6 -2
  30. package/dts/src/layout/components/NavBar/components/QrCode.vue.d.ts +18 -0
  31. package/package.json +1 -1
  32. package/dist/index-CNS2LvqZ.mjs +0 -244
  33. package/dist/index-Cb2jBye0.mjs +0 -1817
@@ -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-DUGSmZyQ.mjs";
4
- import { i as B, f as F, b as G, q as f, t as p, _ as H } from "./index-CIsDsOWA.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";
3
+ import F from "./BarChart-CACxjw71.mjs";
4
+ import { f as B, j as G, a as H, y as f, z as p, _ as R } from "./index-BD4Gujon.mjs";
5
+ import { createElementBlock as y, openBlock as C, createElementVNode as t, defineComponent as q, 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 y(), C("a", K, [
20
- (y(), C("svg", Q, _[0] || (_[0] = [
19
+ return C(), y("a", K, [
20
+ (C(), y("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,14 +33,14 @@ function W(I, _) {
33
33
  ])))
34
34
  ]);
35
35
  }
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({
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" }, yt = { class: "text-lg text-right" }, Ct = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, v = 5e3, bt = /* @__PURE__ */ q({
37
37
  name: "Dashboard",
38
38
  inheritAttrs: !1,
39
39
  __name: "index",
40
40
  setup(I) {
41
- const _ = k(() => F.imageUrl(b.user.avatar, 160, 160)), N = (o) => {
41
+ const _ = k(() => G.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
- }, b = G(), P = /* @__PURE__ */ new Date(), V = k(() => {
43
+ }, b = H(), P = /* @__PURE__ */ new Date(), V = k(() => {
44
44
  const o = P.getHours();
45
45
  let e = b.user.realName;
46
46
  if (o >= 6 && o < 8)
@@ -58,23 +58,23 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
58
58
  transition: p.easeOutExpo
59
59
  });
60
60
  w.value = 2e3;
61
- const M = x(0), E = f(M, {
61
+ const M = x(0), z = f(M, {
62
62
  duration: v,
63
63
  transition: p.easeOutExpo
64
64
  });
65
65
  M.value = 2e3;
66
- const O = x(0), z = f(O, {
66
+ const E = x(0), O = f(E, {
67
67
  duration: v,
68
68
  transition: p.easeOutExpo
69
69
  });
70
- O.value = 2e3;
70
+ E.value = 2e3;
71
71
  const L = x(0), $ = f(L, {
72
72
  duration: v,
73
73
  transition: p.easeOutExpo
74
74
  });
75
75
  return L.value = 2e3, (o, e) => {
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 y(), C("div", Y, [
76
+ const D = X, a = c("el-col"), i = R, h = c("el-statistic"), g = c("el-row"), d = c("el-card"), m = c("el-tag"), S = F, T = Z, U = A;
77
+ return C(), y("div", Y, [
78
78
  s(D, { class: "github-corner" }),
79
79
  s(d, { shadow: "never" }, {
80
80
  default: n(() => [
@@ -180,7 +180,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
180
180
  ]),
181
181
  default: n(() => [
182
182
  t("div", rt, [
183
- t("div", it, r(Math.round(l(E))), 1),
183
+ t("div", it, r(Math.round(l(z))), 1),
184
184
  s(i, {
185
185
  "icon-class": "visit",
186
186
  size: "2em"
@@ -188,7 +188,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
188
188
  ]),
189
189
  t("div", dt, [
190
190
  e[7] || (e[7] = t("span", null, " 总访客数 ", -1)),
191
- t("span", null, r(Math.round(l(E) * 15)), 1)
191
+ t("span", null, r(Math.round(l(z) * 15)), 1)
192
192
  ])
193
193
  ]),
194
194
  _: 1
@@ -217,7 +217,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
217
217
  ]),
218
218
  default: n(() => [
219
219
  t("div", ut, [
220
- t("div", _t, r(Math.round(l(z))), 1),
220
+ t("div", _t, r(Math.round(l(O))), 1),
221
221
  s(i, {
222
222
  "icon-class": "ip",
223
223
  size: "2em"
@@ -225,7 +225,7 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
225
225
  ]),
226
226
  t("div", mt, [
227
227
  e[10] || (e[10] = t("span", null, " 总IP数 ", -1)),
228
- t("span", null, r(Math.round(l(z))), 1)
228
+ t("span", null, r(Math.round(l(O))), 1)
229
229
  ])
230
230
  ]),
231
231
  _: 1
@@ -291,13 +291,13 @@ const X = /* @__PURE__ */ B(J, [["render", W], ["__scopeId", "data-v-431733f3"]]
291
291
  ]),
292
292
  default: n(() => [
293
293
  t("div", gt, [
294
- t("div", Ct, r(Math.round(l($))), 1),
294
+ t("div", yt, 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", yt, [
300
+ t("div", Ct, [
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-431733f3"]]
368
368
  ]);
369
369
  };
370
370
  }
371
- }), zt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-3f78985d"]]);
371
+ }), Ot = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-3f78985d"]]);
372
372
  export {
373
- zt as default
373
+ Ot as default
374
374
  };
@@ -0,0 +1,257 @@
1
+ import { v as k, u as _, a as G, w as J, k as X, l as Y, F as Z, H as ee, A as te, e as le, f as oe } from "./index-BD4Gujon.mjs";
2
+ import { defineComponent as se, ref as d, computed as re, watchEffect as ae, resolveComponent as c, createElementBlock as ne, openBlock as D, createElementVNode as l, createVNode as o, withDirectives as Q, createBlock as ie, createCommentVNode as ue, unref as V, withCtx as u, normalizeStyle as de, vShow as j, withKeys as z, withModifiers as ce, createTextVNode as pe, toDisplayString as B, normalizeClass as me } from "vue";
3
+ import fe from "./assets/0cda52992278af9e.png";
4
+ import { useI18n as ve } from "vue-i18n";
5
+ import "element-plus";
6
+ import { useRoute as ge, useRouter as _e } from "vue-router";
7
+ import he from "./assets/09fcc36c527efda6.jpg";
8
+ const we = { class: "login-container" }, ye = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Ce = { class: "qrcode-container" }, be = ["src"], ke = { class: "flex justify-between items-center w-full" }, Ve = ["src"], qe = { class: "flex justify-between items-center w-full" }, $e = { class: "bg-small" }, Ee = 992, Te = /* @__PURE__ */ se({
9
+ __name: "index",
10
+ setup(Ie) {
11
+ const { t: q } = ve(), h = d(k.APP_ACTIVE), K = (e) => {
12
+ e.props.name === "user" ? (C(), m()) : I(), h.value = e.props.name;
13
+ }, s = d({
14
+ scope: "",
15
+ username: "",
16
+ password: ""
17
+ }), N = re(() => {
18
+ const e = _().language === "en" ? "Please enter " : "请输入";
19
+ return {
20
+ username: [
21
+ {
22
+ required: !0,
23
+ trigger: "blur",
24
+ message: `${e}${q("login.username")}`
25
+ }
26
+ ],
27
+ password: [
28
+ {
29
+ required: !0,
30
+ trigger: "blur",
31
+ validator: (t, n, r) => {
32
+ n.length < 5 ? r(new Error("The password can not be less than 5 digits")) : r();
33
+ },
34
+ message: `${e}${q("login.password")}`
35
+ }
36
+ ],
37
+ captchaCode: [
38
+ {
39
+ required: !0,
40
+ trigger: "blur",
41
+ message: `${e}${q("login.captchaCode")}`
42
+ }
43
+ ]
44
+ };
45
+ }), $ = d(!1), P = d(), x = ge(), E = _e(), A = G(), T = () => {
46
+ var e;
47
+ (e = P.value) == null || e.validate((t) => {
48
+ t && ($.value = !0, A.login({ ...s.value, password: ee(s.value.password) }).then(() => {
49
+ const n = x.query, r = n.redirect ?? k.APP_REDIRECT, i = Object.keys(n).reduce(
50
+ (p, g) => (g !== "redirect" && (p[g] = n[g]), p),
51
+ {}
52
+ );
53
+ E.push({ path: r, query: i }), m();
54
+ }).catch(() => {
55
+ m();
56
+ }).finally(() => {
57
+ $.value = !1;
58
+ }));
59
+ });
60
+ }, R = d(""), m = () => {
61
+ te().then(({ data: e }) => {
62
+ s.value.captchaKey = e.captchaId, R.value = e.base64Image;
63
+ });
64
+ };
65
+ m();
66
+ let w = setInterval(S, 3e3);
67
+ const f = d({});
68
+ function I() {
69
+ le().then(({ data: e }) => {
70
+ f.value = e, v.value = !1, L(), w = setInterval(S, 3e3);
71
+ });
72
+ }
73
+ h.value === "qrCode" && I();
74
+ function S() {
75
+ f.value.ticket && A.loginByQrcode({ ticket: f.value.ticket }).then(() => {
76
+ C(), v.value = !1, f.value.qrcodeUrl = he;
77
+ const e = x.query, t = e.redirect ?? k.APP_REDIRECT, n = Object.keys(e).reduce(
78
+ (r, i) => (i !== "redirect" && (r[i] = e[i]), r),
79
+ {}
80
+ );
81
+ E.push({ path: t, query: n });
82
+ });
83
+ }
84
+ let y = null;
85
+ const v = d(!1);
86
+ function C() {
87
+ w && (clearInterval(w), w = null), y && (clearTimeout(y), y = null);
88
+ }
89
+ function L() {
90
+ C(), y = setTimeout(() => {
91
+ C(), v.value = !0;
92
+ }, k.APP_TIMEOUT);
93
+ }
94
+ function M() {
95
+ E.push({ path: "/register" });
96
+ }
97
+ const b = d(!1), U = _(), { width: O } = J();
98
+ return ae(() => {
99
+ O.value < Ee ? U.toggleDevice("mobile") : U.toggleDevice("desktop");
100
+ }), (e, t) => {
101
+ const n = X, r = c("el-tab-pane"), i = c("el-input"), p = c("el-form-item"), g = c("el-button"), H = c("el-form"), W = c("el-tabs"), F = c("el-card");
102
+ return D(), ne("div", we, [
103
+ l("div", ye, [
104
+ o(n, {
105
+ class: "ml-2 cursor-pointer",
106
+ style: { "font-size": "18px" }
107
+ })
108
+ ]),
109
+ o(F, {
110
+ device: V(_)().device,
111
+ class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
112
+ }, {
113
+ default: u(() => [
114
+ o(W, {
115
+ modelValue: h.value,
116
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => h.value = a),
117
+ class: "demo-tabs",
118
+ onTabClick: K
119
+ }, {
120
+ default: u(() => [
121
+ o(r, {
122
+ label: "扫码登录",
123
+ name: "qrCode"
124
+ }, {
125
+ default: u(() => [
126
+ l("div", Ce, [
127
+ l("img", {
128
+ src: f.value.qrcodeUrl,
129
+ style: de({ opacity: v.value ? 0.02 : 1 }),
130
+ alt: "二维码"
131
+ }, null, 12, be),
132
+ Q(l("div", null, [
133
+ t[6] || (t[6] = l("div", null, "二维码已过期", -1)),
134
+ l("div", { onClick: I }, "点击刷新")
135
+ ], 512), [
136
+ [j, v.value]
137
+ ])
138
+ ]),
139
+ t[7] || (t[7] = l("div", null, "微信扫一扫登录", -1))
140
+ ]),
141
+ _: 1,
142
+ __: [7]
143
+ }),
144
+ o(r, {
145
+ label: "账号登录",
146
+ name: "user"
147
+ }, {
148
+ default: u(() => [
149
+ o(H, {
150
+ ref_key: "formRef",
151
+ ref: P,
152
+ model: s.value,
153
+ rules: N.value
154
+ }, {
155
+ default: u(() => [
156
+ o(p, { prop: "username" }, {
157
+ default: u(() => [
158
+ o(i, {
159
+ modelValue: s.value.username,
160
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => s.value.username = a),
161
+ placeholder: e.$t("login.username")
162
+ }, null, 8, ["modelValue", "placeholder"])
163
+ ]),
164
+ _: 1
165
+ }),
166
+ o(p, { prop: "password" }, {
167
+ default: u(() => [
168
+ o(i, {
169
+ modelValue: s.value.password,
170
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => s.value.password = a),
171
+ placeholder: e.$t("login.password"),
172
+ type: "password",
173
+ "show-password": "",
174
+ onKeyup: z(T, ["enter"])
175
+ }, null, 8, ["modelValue", "placeholder"])
176
+ ]),
177
+ _: 1
178
+ }),
179
+ o(p, { prop: "captchaCode" }, {
180
+ default: u(() => [
181
+ l("div", ke, [
182
+ o(i, {
183
+ style: { width: "65%" },
184
+ modelValue: s.value.captchaCode,
185
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => s.value.captchaCode = a),
186
+ placeholder: e.$t("login.captchaCode"),
187
+ onKeyup: z(T, ["enter"])
188
+ }, null, 8, ["modelValue", "placeholder"]),
189
+ l("img", {
190
+ class: "flex-1 h-[40px] cursor-pointer ml-2",
191
+ src: R.value,
192
+ onClick: m,
193
+ alt: "验证码"
194
+ }, null, 8, Ve)
195
+ ])
196
+ ]),
197
+ _: 1
198
+ }),
199
+ o(g, {
200
+ loading: $.value,
201
+ type: "primary",
202
+ class: "w-full",
203
+ onClick: ce(T, ["prevent"])
204
+ }, {
205
+ default: u(() => [
206
+ pe(B(e.$t("login.login")), 1)
207
+ ]),
208
+ _: 1
209
+ }, 8, ["loading"])
210
+ ]),
211
+ _: 1
212
+ }, 8, ["model", "rules"])
213
+ ]),
214
+ _: 1
215
+ })
216
+ ]),
217
+ _: 1
218
+ }, 8, ["modelValue"]),
219
+ l("div", qe, [
220
+ l("div", {
221
+ class: "cursor-pointer register-btn",
222
+ onClick: t[4] || (t[4] = (a) => b.value = !0)
223
+ }, " 忘记密码 "),
224
+ l("div", {
225
+ class: "cursor-pointer register-btn",
226
+ onClick: M
227
+ }, " 没有密码,前往注册 ")
228
+ ])
229
+ ]),
230
+ _: 1
231
+ }, 8, ["device"]),
232
+ Q(l("div", $e, [
233
+ l("div", null, B(V(Y).title), 1),
234
+ t[8] || (t[8] = l("img", {
235
+ src: fe,
236
+ alt: "login-bg-small"
237
+ }, null, -1))
238
+ ], 512), [
239
+ [j, V(_)().device === "desktop"]
240
+ ]),
241
+ l("div", {
242
+ class: me(V(_)().device)
243
+ }, " Copyright © 2018-2025 Apache 2.0 开源协议. ", 2),
244
+ b.value ? (D(), ie(Z, {
245
+ key: 0,
246
+ width: "400",
247
+ modelValue: b.value,
248
+ "onUpdate:modelValue": t[5] || (t[5] = (a) => b.value = a),
249
+ title: e.$t("forgot.forgot")
250
+ }, null, 8, ["modelValue", "title"])) : ue("", !0)
251
+ ]);
252
+ };
253
+ }
254
+ }), Qe = /* @__PURE__ */ oe(Te, [["__scopeId", "data-v-60b95e49"]]);
255
+ export {
256
+ Qe as default
257
+ };
@@ -1,12 +1,12 @@
1
- import { defineComponent as v, ref as y, resolveComponent as d, createElementBlock as c, openBlock as i, 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, p as B, f as R, i as b } from "./index-CIsDsOWA.mjs";
3
- import { useRoute as q, useRouter as A } from "vue-router";
4
- const L = { class: "organ-container" }, N = { class: "organ-content" }, O = ["onClick"], S = ["src"], U = { style: { "margin-right": "auto" } }, E = /* @__PURE__ */ v({
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 { a as p, x as B, j as R, f as q } from "./index-BD4Gujon.mjs";
3
+ import { useRoute as A, useRouter as L } from "vue-router";
4
+ const N = { class: "organ-container" }, O = { class: "organ-content" }, S = ["onClick"], U = ["src"], b = { style: { "margin-right": "auto" } }, j = /* @__PURE__ */ v({
5
5
  __name: "index",
6
- setup(I) {
7
- const m = q(), h = A(), f = p(), l = y([]);
6
+ setup(E) {
7
+ const m = A(), h = L(), f = p(), i = y([]);
8
8
  B().then((e) => {
9
- e.data.results.length === 1 && u(e.data.results[0]), l.value = e.data.results;
9
+ e.data.results.length === 1 && u(e.data.results[0]), i.value = e.data.results;
10
10
  });
11
11
  const u = (e) => {
12
12
  f.loginOrgan(e.tenant).then(() => {
@@ -20,10 +20,10 @@ const L = { class: "organ-container" }, N = { class: "organ-content" }, O = ["on
20
20
  };
21
21
  return (e, n) => {
22
22
  const a = d("ArrowRightBold"), o = d("el-icon");
23
- return i(), c("div", L, [
23
+ return l(), c("div", N, [
24
24
  n[0] || (n[0] = s("h1", null, "请选择一个组织进入", -1)),
25
- s("div", N, [
26
- (i(!0), c(x, null, k(_(l), (t) => (i(), c("div", {
25
+ s("div", O, [
26
+ (l(!0), c(x, null, k(_(i), (t) => (l(), c("div", {
27
27
  class: "organ-content_item",
28
28
  key: t.organId,
29
29
  onClick: (r) => u(t)
@@ -35,20 +35,20 @@ const L = { class: "organ-container" }, N = { class: "organ-content" }, O = ["on
35
35
  60
36
36
  ),
37
37
  alt: "logo"
38
- }, null, 8, S),
39
- s("div", U, C(t.organName), 1),
38
+ }, null, 8, U),
39
+ s("div", b, C(t.organName), 1),
40
40
  g(o, null, {
41
41
  default: w(() => [
42
42
  g(a)
43
43
  ]),
44
44
  _: 1
45
45
  })
46
- ], 8, O))), 128))
46
+ ], 8, S))), 128))
47
47
  ])
48
48
  ]);
49
49
  };
50
50
  }
51
- }), F = /* @__PURE__ */ b(E, [["__scopeId", "data-v-30bc9ae2"]]);
51
+ }), F = /* @__PURE__ */ q(j, [["__scopeId", "data-v-30bc9ae2"]]);
52
52
  export {
53
53
  F as default
54
54
  };
@@ -1,17 +1,17 @@
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 i } from "vue";
2
- import { u as _, aE as p, i as l } from "./index-CIsDsOWA.mjs";
3
- const m = { class: "register-container" }, u = /* @__PURE__ */ r({
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, aK as p, f as l } from "./index-BD4Gujon.mjs";
3
+ const m = { class: "register-container" }, f = /* @__PURE__ */ r({
4
4
  __name: "index",
5
- setup(f) {
5
+ setup(u) {
6
6
  return (v, e) => {
7
7
  const o = n("el-card");
8
8
  return a(), s("div", m, [
9
9
  t(o, {
10
- device: c(_)().device,
10
+ device: c(i)().device,
11
11
  class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
12
12
  }, {
13
13
  default: d(() => [
14
- e[0] || (e[0] = i("h3", { class: "register-container_title" }, "账号注册", -1)),
14
+ e[0] || (e[0] = _("h3", { class: "register-container_title" }, "账号注册", -1)),
15
15
  t(p)
16
16
  ]),
17
17
  _: 1,
@@ -20,7 +20,7 @@ const m = { class: "register-container" }, u = /* @__PURE__ */ r({
20
20
  ]);
21
21
  };
22
22
  }
23
- }), w = /* @__PURE__ */ l(u, [["__scopeId", "data-v-321a6d52"]]);
23
+ }), w = /* @__PURE__ */ l(f, [["__scopeId", "data-v-321a6d52"]]);
24
24
  export {
25
25
  w as default
26
26
  };
package/dist/index.mjs CHANGED
@@ -1,75 +1,77 @@
1
- import { b1 as t, b2 as r, bs as i, b3 as o, bq as b, b5 as n, A as u, bo as g, bp as d, bk as p, bl as l, bm as c, bn as m, br as P, aE as S, bt as v, S as E, bc as k, aQ as y, aL as A, aM as M, aG as R, aU as f, z as h, aS as C, aV as D, aI as L, h as H, aH as U, b4 as z, f as V, aW as B, g as I, aT as O, aX as T, j as F, aK as Q, b9 as W, b7 as j, aJ as q, p as w, y as x, b8 as K, aF as N, bi as G, r as J, ba as X, aC as Y, b6 as Z, bd as _, aN as $, bj as aa, aR as ea, aO as sa, aP as ta, u as ra, be as ia, bh as oa, k as ba, bf as na, c as ua, bb as ga, a as da, b as pa, bg as la, a_ as ca, b0 as ma, a$ as Pa, aY as Sa, aZ as va, v as Ea } from "./index-CIsDsOWA.mjs";
1
+ import { b4 as t, b5 as r, bw as o, b6 as i, bu as b, b8 as n, I as u, bs as g, bt as d, F as l, bo as p, bp as m, bq as c, br as P, bv as S, aK as v, bx as E, S as h, bg as A, aV as M, aQ as R, aR as f, aL as k, aZ as y, e as D, aX as L, a_ as C, aN as H, l as U, aM as I, b7 as V, j as w, bd as x, a$ as z, A as B, aY as F, b0 as O, m as T, aP as Q, bc as W, ba as j, aO as q, x as K, H as N, bb as X, s as Y, bm as Z, r as _, be as $, aI as G, b9 as J, bh as aa, aS as ea, bn as sa, aW as ta, aT as ra, aU as oa, u as ia, bi as ba, bl as na, n as ua, bj as ga, h as da, bf as la, g as pa, a as ma, bk as ca, b2 as Pa, d as Sa, b3 as va, c as Ea, b1 as ha, v as Aa } from "./index-BD4Gujon.mjs";
2
2
  import "element-plus";
3
3
  export {
4
4
  t as BizDict,
5
5
  r as BizLayDict,
6
- i as ChangeOrgan,
7
- o as CustomBizDict,
6
+ o as ChangeOrgan,
7
+ i as CustomBizDict,
8
8
  b as DashboardPage,
9
9
  n as EnableBizDict,
10
10
  u as EnumDict,
11
11
  g as Error401Page,
12
12
  d as Error404Page,
13
+ l as ForgotPwd,
13
14
  p as Layout,
14
- l as LoginPage,
15
+ m as LoginPage,
15
16
  c as MultiFactorLoginPage,
16
- m as ProfilePage,
17
- P as RedirectPage,
18
- S as RegisterForm,
19
- v as RegisterPage,
20
- E as SysApiImpl,
21
- k as TableHooks,
22
- y as addDynamicRoute,
23
- A as addViteMenus,
24
- M as addWebpackMenus,
25
- R as axiosConfig,
26
- f as clearEmpty,
27
- h as createLoginQrcode,
28
- C as cssImageVar,
29
- D as deepMerge,
30
- L as default,
31
- H as defaultSettings,
32
- U as directive,
33
- z as enumMapCache,
34
- V as fileApi,
35
- B as generateRandomKey,
36
- I as getCaptchaApi,
37
- O as getQueryParams,
38
- T as handlePreview,
39
- F as i18n,
17
+ P as ProfilePage,
18
+ S as RedirectPage,
19
+ v as RegisterForm,
20
+ E as RegisterPage,
21
+ h as SysApiImpl,
22
+ A as TableHooks,
23
+ M as addDynamicRoute,
24
+ R as addViteMenus,
25
+ f as addWebpackMenus,
26
+ k as axiosConfig,
27
+ y as clearEmpty,
28
+ D as createLoginQrcode,
29
+ L as cssImageVar,
30
+ C as deepMerge,
31
+ H as default,
32
+ U as defaultSettings,
33
+ I as directive,
34
+ V as enumMapCache,
35
+ w as fileApi,
36
+ x as forgotPhoneEmail,
37
+ z as generateRandomKey,
38
+ B as getCaptchaApi,
39
+ F as getQueryParams,
40
+ O as handlePreview,
41
+ T as i18n,
40
42
  Q as imageUrl,
41
43
  W as loginApi,
42
44
  j as loginOrganApi,
43
45
  q as menus,
44
- w as myorganList,
45
- x as netEncrypt,
46
- K as registerApi,
47
- N as request,
48
- G as resetRouter,
49
- J as routerRef,
50
- X as routerUtil,
51
- Y as runAsUser,
52
- Z as selectDsdRoles,
53
- _ as store,
54
- $ as updateMetaEnv,
55
- aa as updateRouter,
56
- ea as updateSettings,
57
- sa as updateViteMetaEnv,
58
- ta as updateWebpackMetaEnv,
59
- ra as useAppStore,
60
- ia as useAppStoreHook,
61
- oa as useListStoreHook,
62
- ba as usePermissionStore,
63
- na as usePermissionStoreHook,
64
- ua as useSettingsStore,
65
- ga as useTableHooks,
66
- da as useTagsViewStore,
67
- pa as useUserStore,
68
- la as useUserStoreHook,
69
- ca as validateCreditCode,
70
- ma as validateEmail,
71
- Pa as validateIDCard,
72
- Sa as validatePhoneNumber,
73
- va as validatePhoneOrLandline,
74
- Ea as vueMetaEnv
46
+ K as myorganList,
47
+ N as netEncrypt,
48
+ X as registerApi,
49
+ Y as request,
50
+ Z as resetRouter,
51
+ _ as routerRef,
52
+ $ as routerUtil,
53
+ G as runAsUser,
54
+ J as selectDsdRoles,
55
+ aa as store,
56
+ ea as updateMetaEnv,
57
+ sa as updateRouter,
58
+ ta as updateSettings,
59
+ ra as updateViteMetaEnv,
60
+ oa as updateWebpackMetaEnv,
61
+ ia as useAppStore,
62
+ ba as useAppStoreHook,
63
+ na as useListStoreHook,
64
+ ua as usePermissionStore,
65
+ ga as usePermissionStoreHook,
66
+ da as useSettingsStore,
67
+ la as useTableHooks,
68
+ pa as useTagsViewStore,
69
+ ma as useUserStore,
70
+ ca as useUserStoreHook,
71
+ Pa as validateCreditCode,
72
+ Sa as validateEmail,
73
+ va as validateIDCard,
74
+ Ea as validatePhoneNumber,
75
+ ha as validatePhoneOrLandline,
76
+ Aa as vueMetaEnv
75
77
  };