ss-component-new 1.3.739 → 1.3.741
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
|
-
import { f as C, h as L, d as b, b as N, p as
|
|
1
|
+
import { f as C, h as L, d as b, b as N, p as j, s as R, i as T } from "./index-yOnrK71-.js";
|
|
2
2
|
import { E as k } from "./request-1RPa2bBn.js";
|
|
3
|
-
const q = N(
|
|
4
|
-
var c,
|
|
3
|
+
const q = N(j), { isDefaultModel: D } = b(), E = async (m, a) => {
|
|
4
|
+
var c, o, i, r, l, s, g, f, _, y, h, S, w, A;
|
|
5
5
|
let e = Object.values(m), t = await C({
|
|
6
6
|
userName: (c = e == null ? void 0 : e[0]) == null ? void 0 : c.trim(),
|
|
7
|
-
password: (
|
|
7
|
+
password: (o = e == null ? void 0 : e[1]) == null ? void 0 : o.trim()
|
|
8
8
|
});
|
|
9
9
|
if (((i = t == null ? void 0 : t.data) == null ? void 0 : i.status) === 200 && ((l = (r = t == null ? void 0 : t.data) == null ? void 0 : r.result) == null ? void 0 : l.length) <= 0 && (t = await L({
|
|
10
10
|
userName: (s = e == null ? void 0 : e[0]) == null ? void 0 : s.trim(),
|
|
@@ -12,15 +12,15 @@ const q = N(P), { isDefaultModel: D } = b(), E = async (m, a) => {
|
|
|
12
12
|
path: "系统管理/用户管理",
|
|
13
13
|
platId: a
|
|
14
14
|
})), ((f = t == null ? void 0 : t.data) == null ? void 0 : f.status) === 200 && ((y = (_ = t == null ? void 0 : t.data) == null ? void 0 : _.result) == null ? void 0 : y.length) > 0) {
|
|
15
|
-
const
|
|
16
|
-
sessionStorage.setItem("systemKey", a && a !== "" ? a :
|
|
17
|
-
let u =
|
|
18
|
-
return u.plat_id = u.plat_id ?? a, q.setLoginUserInfo(u), q.setSystemKey(a && a !== "" ? a :
|
|
15
|
+
const n = ((S = (h = t == null ? void 0 : t.data) == null ? void 0 : h.result) == null ? void 0 : S.find((P) => D(P))) || ((A = (w = t == null ? void 0 : t.data) == null ? void 0 : w.result) == null ? void 0 : A[0]);
|
|
16
|
+
sessionStorage.setItem("systemKey", a && a !== "" ? a : n == null ? void 0 : n.plat_id);
|
|
17
|
+
let u = n;
|
|
18
|
+
return u.plat_id = u.plat_id ?? a, q.setLoginUserInfo(u), q.setSystemKey(a && a !== "" ? a : n == null ? void 0 : n.plat_id), !0;
|
|
19
19
|
} else
|
|
20
20
|
return k.error("输入的密码错误,请重新输入"), !1;
|
|
21
|
-
}, I = N(
|
|
22
|
-
var
|
|
23
|
-
(
|
|
21
|
+
}, I = N(j), { systemInfo: d, loginUserInfo: p } = R(I), { initSystemInfo: K } = b(), O = async () => (sessionStorage.setItem("loginToken", "111"), !0), x = async () => (sessionStorage.setItem("magicToken", "123456"), !0), J = async (m) => {
|
|
22
|
+
var o, i, r, l;
|
|
23
|
+
(o = d.value) != null && o.plat_id || await K();
|
|
24
24
|
let a = [E(m, (i = d.value) == null ? void 0 : i.plat_id), O(), x()];
|
|
25
25
|
const e = await Promise.all(a), t = e == null ? void 0 : e.every((s) => s);
|
|
26
26
|
let c = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as W, ref as z, computed as N, watch as y, nextTick as V, onMounted as k, onUnmounted as G, resolveComponent as $, createElementBlock as L, openBlock as w, createBlock as q } from "vue";
|
|
2
2
|
import { b as J, p as h, s as v, d as Q, a as X, u as Y, g as Z, v as p } from "./index-yOnrK71-.js";
|
|
3
|
-
import { l as ee } from "./index-
|
|
3
|
+
import { l as ee } from "./index-BCem4LDt.js";
|
|
4
4
|
import { useRouter as te } from "vue-router";
|
|
5
5
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const oe = { key: 0 }, ae = /* @__PURE__ */ W({
|
|
@@ -6,7 +6,7 @@ import { c as qe, a as Ae, f as Ie, b as re, E as ce } from "./request-1RPa2bBn.
|
|
|
6
6
|
import "./JSEncrypt-B36c1iN5.js";
|
|
7
7
|
import { u as De } from "./index-Cryd-gMS.js";
|
|
8
8
|
import { useRouter as Fe } from "vue-router";
|
|
9
|
-
import { l as xe } from "./index-
|
|
9
|
+
import { l as xe } from "./index-BCem4LDt.js";
|
|
10
10
|
const Re = {}, Ne = { class: "left-wrap" }, Se = { class: "left-bg" };
|
|
11
11
|
function Ee(y, T) {
|
|
12
12
|
return L(), F("div", Ne, [
|
package/dist/ss-component.js
CHANGED
|
@@ -19,7 +19,7 @@ const r = o(() => import("./index-DrKojU3W.js").then((t) => t.i));
|
|
|
19
19
|
r.install = (t) => {
|
|
20
20
|
t.component("ssMenu", r);
|
|
21
21
|
};
|
|
22
|
-
const m = o(() => import("./index-
|
|
22
|
+
const m = o(() => import("./index-CdnLi1mI.js"));
|
|
23
23
|
m.install = (t) => {
|
|
24
24
|
t.component("ssMenuComponent", m);
|
|
25
25
|
};
|
package/dist/ss-component2.js
CHANGED