@10yun/open-sdk 0.3.100 → 0.3.102
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/{404-Dge6mEmg.js → 404-BQxGIlBK.js} +1 -1
- package/dist/{404-DOJrP53c.cjs → 404-CFoEcHUj.cjs} +1 -1
- package/dist/{alone_run-D0vsS5Na.js → alone_run-B4bN0u0d.js} +1 -1
- package/dist/{alone_run-Py4EaXPg.cjs → alone_run-BafnY9Vd.cjs} +1 -1
- package/dist/{index-BNhYVmAX.js → index-2TtE1ani.js} +361 -321
- package/dist/index-Bd95Z9XS.cjs +25 -0
- package/dist/{login-BAzOP8jW.js → login-CqOphaH-.js} +2 -2
- package/dist/{login-0GSUTlNW.cjs → login-Dr4aVE1c.cjs} +1 -1
- package/dist/{none-CrgAZnxI.js → none-BiPWdYyC.js} +1 -1
- package/dist/{none-C3Hz3In2.cjs → none-MWhFNsHM.cjs} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-zX3YjWaQ.cjs +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
-
import { effectScope as ks, ref as Ps, shallowRef as Fs, computed as
|
|
2
|
+
import { effectScope as ks, ref as Ps, shallowRef as Fs, computed as pt, watch as wn, isRef as Ms, defineComponent as Jn, getCurrentInstance as Tt, h as Aa, Fragment as he, inject as Us, onMounted as Bs, onUnmounted as xs, createVNode as w, Text as Vs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as R, createElementVNode as P, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as fe, Transition as Gs, normalizeClass as ya, resolveDynamicComponent as $s, withDirectives as Na, withModifiers as Ws, normalizeStyle as Dn, vShow as Ta, mergeProps as Ys, renderSlot as Hs } from "vue";
|
|
3
3
|
import Ks, { ElMessage as vr, ElMessageBox as js, ElNotification as qs } from "element-plus";
|
|
4
4
|
import * as Xs from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
@@ -12,7 +12,7 @@ let Oa = {};
|
|
|
12
12
|
function Zs(e = {}) {
|
|
13
13
|
Oa = e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function lt() {
|
|
16
16
|
return Oa;
|
|
17
17
|
}
|
|
18
18
|
/*!
|
|
@@ -26,14 +26,14 @@ var me = typeof window < "u" ? window.proxy || window : {}, eo = function(e) {
|
|
|
26
26
|
function to(e = "/", t = null, n = {}) {
|
|
27
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var Nt = {};
|
|
30
|
+
function Et(e) {
|
|
31
31
|
if (!me.__POWERED_BY_QIANKUN__)
|
|
32
32
|
return !1;
|
|
33
33
|
if (!Object.prototype.toString.call(e) === "[object Object]")
|
|
34
34
|
throw Error("data必须是对象格式");
|
|
35
|
-
|
|
36
|
-
ignore:
|
|
35
|
+
Nt.setGlobalState && Nt.setGlobalState({
|
|
36
|
+
ignore: Nt.name,
|
|
37
37
|
msg: {
|
|
38
38
|
...e
|
|
39
39
|
}
|
|
@@ -50,7 +50,7 @@ function no(e) {
|
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
Ot().SA_MSG_CONTENT(n.msg);
|
|
53
|
-
}, !0),
|
|
53
|
+
}, !0), Nt.setGlobalState = e && e.setGlobalState, Nt.name = e && e.name;
|
|
54
54
|
}
|
|
55
55
|
function ro(e, t, n) {
|
|
56
56
|
eo({
|
|
@@ -100,24 +100,24 @@ const Ot = De("cloudSdkQiankunStore", {
|
|
|
100
100
|
async init() {
|
|
101
101
|
},
|
|
102
102
|
QK_SEND_LOGIN_MSG() {
|
|
103
|
-
|
|
103
|
+
Et({
|
|
104
104
|
COMM_TYPE: "LoginSucc"
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
QK_SEND_LOGOUT_MSG() {
|
|
108
|
-
|
|
108
|
+
Et({
|
|
109
109
|
COMM_TYPE: "LoginLogout"
|
|
110
110
|
});
|
|
111
111
|
},
|
|
112
112
|
QK_SEND_MSG_REG_SUBMENU(e) {
|
|
113
|
-
|
|
113
|
+
Et({
|
|
114
114
|
COMM_TYPE: "MicroRegisterMenu",
|
|
115
115
|
COMM_TYPESTR: "注册子应用菜单",
|
|
116
116
|
data: e || []
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
119
|
QK_SEND_MSG_ROUTER_BEFORE(e) {
|
|
120
|
-
|
|
120
|
+
Et({
|
|
121
121
|
COMM_TYPE: "routerBefore",
|
|
122
122
|
routerBase: e
|
|
123
123
|
// toData: toPath
|
|
@@ -136,7 +136,7 @@ const Ot = De("cloudSdkQiankunStore", {
|
|
|
136
136
|
},
|
|
137
137
|
// 发送消息给主应用
|
|
138
138
|
QIANKUN_SEND_MSG_TO_MAIN(e, t) {
|
|
139
|
-
|
|
139
|
+
Et({
|
|
140
140
|
COMM_TYPE: e,
|
|
141
141
|
data: t || ""
|
|
142
142
|
});
|
|
@@ -171,7 +171,7 @@ const ao = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
171
171
|
function Xt(e, ...t) {
|
|
172
172
|
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ao, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
173
173
|
}
|
|
174
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), so = (e, t, n) => oo({ l: e, k: t, s: n }), oo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), io = (e) => zn(e) === "[object Date]",
|
|
174
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), so = (e, t, n) => oo({ l: e, k: t, s: n }), oo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), io = (e) => zn(e) === "[object Date]", ct = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, lo = Object.create, K = (e = null) => lo(e);
|
|
175
175
|
let Ar;
|
|
176
176
|
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
177
177
|
function yr(e) {
|
|
@@ -303,7 +303,7 @@ const M = {
|
|
|
303
303
|
// minimizer error messages
|
|
304
304
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
305
305
|
};
|
|
306
|
-
function
|
|
306
|
+
function _t(e, t, n = {}) {
|
|
307
307
|
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || po)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
308
308
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
309
309
|
}
|
|
@@ -364,20 +364,20 @@ function Io(e, t = {}) {
|
|
|
364
364
|
inLinked: !1,
|
|
365
365
|
text: ""
|
|
366
366
|
}, c = () => l, { onError: f } = t;
|
|
367
|
-
function u(_, d, y, ...
|
|
367
|
+
function u(_, d, y, ...k) {
|
|
368
368
|
const z = c();
|
|
369
369
|
if (d.column += y, d.offset += y, f) {
|
|
370
|
-
const Z = n ? Rn(z.startLoc, d) : null, W =
|
|
370
|
+
const Z = n ? Rn(z.startLoc, d) : null, W = _t(_, Z, {
|
|
371
371
|
domain: Oo,
|
|
372
|
-
args:
|
|
372
|
+
args: k
|
|
373
373
|
});
|
|
374
374
|
f(W);
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
function m(_, d, y) {
|
|
378
378
|
_.endLoc = s(), _.currentType = d;
|
|
379
|
-
const
|
|
380
|
-
return n && (
|
|
379
|
+
const k = { type: d };
|
|
380
|
+
return n && (k.loc = Rn(_.startLoc, _.endLoc)), y != null && (k.value = y), k;
|
|
381
381
|
}
|
|
382
382
|
const p = (_) => m(
|
|
383
383
|
_,
|
|
@@ -416,15 +416,15 @@ function Io(e, t = {}) {
|
|
|
416
416
|
if (y !== 2)
|
|
417
417
|
return !1;
|
|
418
418
|
E(_);
|
|
419
|
-
const
|
|
420
|
-
return _.resetPeek(),
|
|
419
|
+
const k = h(_.currentPeek());
|
|
420
|
+
return _.resetPeek(), k;
|
|
421
421
|
}
|
|
422
422
|
function S(_, d) {
|
|
423
423
|
const { currentType: y } = d;
|
|
424
424
|
if (y !== 2)
|
|
425
425
|
return !1;
|
|
426
426
|
E(_);
|
|
427
|
-
const
|
|
427
|
+
const k = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), z = g(k);
|
|
428
428
|
return _.resetPeek(), z;
|
|
429
429
|
}
|
|
430
430
|
function O(_, d) {
|
|
@@ -432,41 +432,41 @@ function Io(e, t = {}) {
|
|
|
432
432
|
if (y !== 2)
|
|
433
433
|
return !1;
|
|
434
434
|
E(_);
|
|
435
|
-
const
|
|
436
|
-
return _.resetPeek(),
|
|
435
|
+
const k = _.currentPeek() === Or;
|
|
436
|
+
return _.resetPeek(), k;
|
|
437
437
|
}
|
|
438
438
|
function L(_, d) {
|
|
439
439
|
const { currentType: y } = d;
|
|
440
440
|
if (y !== 7)
|
|
441
441
|
return !1;
|
|
442
442
|
E(_);
|
|
443
|
-
const
|
|
444
|
-
return _.resetPeek(),
|
|
443
|
+
const k = _.currentPeek() === ".";
|
|
444
|
+
return _.resetPeek(), k;
|
|
445
445
|
}
|
|
446
446
|
function v(_, d) {
|
|
447
447
|
const { currentType: y } = d;
|
|
448
448
|
if (y !== 8)
|
|
449
449
|
return !1;
|
|
450
450
|
E(_);
|
|
451
|
-
const
|
|
452
|
-
return _.resetPeek(),
|
|
451
|
+
const k = h(_.currentPeek());
|
|
452
|
+
return _.resetPeek(), k;
|
|
453
453
|
}
|
|
454
454
|
function x(_, d) {
|
|
455
455
|
const { currentType: y } = d;
|
|
456
456
|
if (!(y === 7 || y === 11))
|
|
457
457
|
return !1;
|
|
458
458
|
E(_);
|
|
459
|
-
const
|
|
460
|
-
return _.resetPeek(),
|
|
459
|
+
const k = _.currentPeek() === ":";
|
|
460
|
+
return _.resetPeek(), k;
|
|
461
461
|
}
|
|
462
462
|
function Y(_, d) {
|
|
463
463
|
const { currentType: y } = d;
|
|
464
464
|
if (y !== 9)
|
|
465
465
|
return !1;
|
|
466
|
-
const
|
|
466
|
+
const k = () => {
|
|
467
467
|
const Z = _.currentPeek();
|
|
468
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(),
|
|
469
|
-
}, z =
|
|
468
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), k()) : Se(_, !1);
|
|
469
|
+
}, z = k();
|
|
470
470
|
return _.resetPeek(), z;
|
|
471
471
|
}
|
|
472
472
|
function se(_) {
|
|
@@ -478,8 +478,8 @@ function Io(e, t = {}) {
|
|
|
478
478
|
const y = (z = !1, Z = "") => {
|
|
479
479
|
const W = _.currentPeek();
|
|
480
480
|
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
481
|
-
},
|
|
482
|
-
return d && _.resetPeek(),
|
|
481
|
+
}, k = y();
|
|
482
|
+
return d && _.resetPeek(), k;
|
|
483
483
|
}
|
|
484
484
|
function oe(_, d) {
|
|
485
485
|
const y = _.currentChar();
|
|
@@ -524,7 +524,7 @@ function Io(e, t = {}) {
|
|
|
524
524
|
function Ie(_) {
|
|
525
525
|
return oe(_, cn);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function dt(_) {
|
|
528
528
|
let d = "", y = "";
|
|
529
529
|
for (; d = ln(_); )
|
|
530
530
|
y += d;
|
|
@@ -559,7 +559,7 @@ function Io(e, t = {}) {
|
|
|
559
559
|
function _n(_) {
|
|
560
560
|
C(_);
|
|
561
561
|
let d = "";
|
|
562
|
-
return _.currentChar() === "-" ? (_.next(), d += `-${
|
|
562
|
+
return _.currentChar() === "-" ? (_.next(), d += `-${dt(_)}`) : d += dt(_), _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d;
|
|
563
563
|
}
|
|
564
564
|
function dn(_) {
|
|
565
565
|
return _ !== Or && _ !== ce;
|
|
@@ -569,8 +569,8 @@ function Io(e, t = {}) {
|
|
|
569
569
|
let d = "", y = "";
|
|
570
570
|
for (; d = oe(_, dn); )
|
|
571
571
|
d === "\\" ? y += mn(_) : y += d;
|
|
572
|
-
const
|
|
573
|
-
return
|
|
572
|
+
const k = _.currentChar();
|
|
573
|
+
return k === ce || k === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), k === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
574
574
|
}
|
|
575
575
|
function mn(_) {
|
|
576
576
|
const d = _.currentChar();
|
|
@@ -588,16 +588,16 @@ function Io(e, t = {}) {
|
|
|
588
588
|
}
|
|
589
589
|
function Mt(_, d, y) {
|
|
590
590
|
A(_, d);
|
|
591
|
-
let
|
|
591
|
+
let k = "";
|
|
592
592
|
for (let z = 0; z < y; z++) {
|
|
593
593
|
const Z = Ie(_);
|
|
594
594
|
if (!Z) {
|
|
595
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
595
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${k}${_.currentChar()}`);
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
k += Z;
|
|
599
599
|
}
|
|
600
|
-
return `\\${d}${
|
|
600
|
+
return `\\${d}${k}`;
|
|
601
601
|
}
|
|
602
602
|
function hn(_) {
|
|
603
603
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -617,12 +617,12 @@ function Io(e, t = {}) {
|
|
|
617
617
|
}
|
|
618
618
|
function En(_) {
|
|
619
619
|
const d = (y) => {
|
|
620
|
-
const
|
|
621
|
-
return
|
|
620
|
+
const k = _.currentChar();
|
|
621
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Ce ? y : (y += k, _.next(), d(y));
|
|
622
622
|
};
|
|
623
623
|
return d("");
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function mt(_) {
|
|
626
626
|
C(_);
|
|
627
627
|
const d = A(
|
|
628
628
|
_,
|
|
@@ -631,7 +631,7 @@ function Io(e, t = {}) {
|
|
|
631
631
|
);
|
|
632
632
|
return C(_), d;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ht(_, d) {
|
|
635
635
|
let y = null;
|
|
636
636
|
switch (_.currentChar()) {
|
|
637
637
|
case "{":
|
|
@@ -653,9 +653,9 @@ function Io(e, t = {}) {
|
|
|
653
653
|
default: {
|
|
654
654
|
let z = !0, Z = !0, W = !0;
|
|
655
655
|
if (se(_))
|
|
656
|
-
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = m(d, 1,
|
|
656
|
+
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = m(d, 1, mt(_)), d.braceNest = 0, d.inLinked = !1, y;
|
|
657
657
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
658
|
-
return u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d.braceNest = 0,
|
|
658
|
+
return u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d.braceNest = 0, gt(_, d);
|
|
659
659
|
if (z = N(_, d))
|
|
660
660
|
return y = m(d, 4, fn(_)), C(_), y;
|
|
661
661
|
if (Z = S(_, d))
|
|
@@ -671,16 +671,16 @@ function Io(e, t = {}) {
|
|
|
671
671
|
}
|
|
672
672
|
function $e(_, d) {
|
|
673
673
|
const { currentType: y } = d;
|
|
674
|
-
let
|
|
674
|
+
let k = null;
|
|
675
675
|
const z = _.currentChar();
|
|
676
676
|
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
677
677
|
case "@":
|
|
678
|
-
return _.next(),
|
|
678
|
+
return _.next(), k = m(
|
|
679
679
|
d,
|
|
680
680
|
7,
|
|
681
681
|
"@"
|
|
682
682
|
/* TokenChars.LinkedAlias */
|
|
683
|
-
), d.inLinked = !0,
|
|
683
|
+
), d.inLinked = !0, k;
|
|
684
684
|
case ".":
|
|
685
685
|
return C(_), _.next(), m(
|
|
686
686
|
d,
|
|
@@ -696,21 +696,21 @@ function Io(e, t = {}) {
|
|
|
696
696
|
/* TokenChars.LinkedDelimiter */
|
|
697
697
|
);
|
|
698
698
|
default:
|
|
699
|
-
return se(_) ? (
|
|
699
|
+
return se(_) ? (k = m(d, 1, mt(_)), d.braceNest = 0, d.inLinked = !1, k) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? ht(_, d) || k : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, gt(_, d));
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function gt(_, d) {
|
|
703
703
|
let y = {
|
|
704
704
|
type: 13
|
|
705
705
|
/* TokenTypes.EOF */
|
|
706
706
|
};
|
|
707
707
|
if (d.braceNest > 0)
|
|
708
|
-
return
|
|
708
|
+
return ht(_, d) || p(d);
|
|
709
709
|
if (d.inLinked)
|
|
710
710
|
return $e(_, d) || p(d);
|
|
711
711
|
switch (_.currentChar()) {
|
|
712
712
|
case "{":
|
|
713
|
-
return
|
|
713
|
+
return ht(_, d) || p(d);
|
|
714
714
|
case "}":
|
|
715
715
|
return u(M.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), m(
|
|
716
716
|
d,
|
|
@@ -722,7 +722,7 @@ function Io(e, t = {}) {
|
|
|
722
722
|
return $e(_, d) || p(d);
|
|
723
723
|
default: {
|
|
724
724
|
if (se(_))
|
|
725
|
-
return y = m(d, 1,
|
|
725
|
+
return y = m(d, 1, mt(_)), d.braceNest = 0, d.inLinked = !1, y;
|
|
726
726
|
if (Se(_))
|
|
727
727
|
return m(d, 0, un(_));
|
|
728
728
|
break;
|
|
@@ -731,12 +731,12 @@ function Io(e, t = {}) {
|
|
|
731
731
|
return y;
|
|
732
732
|
}
|
|
733
733
|
function bn() {
|
|
734
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
735
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
734
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: k } = l;
|
|
735
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = k, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
736
736
|
l,
|
|
737
737
|
13
|
|
738
738
|
/* TokenTypes.EOF */
|
|
739
|
-
) :
|
|
739
|
+
) : gt(r, l);
|
|
740
740
|
}
|
|
741
741
|
return {
|
|
742
742
|
nextToken: bn,
|
|
@@ -764,7 +764,7 @@ function Do(e = {}) {
|
|
|
764
764
|
function r(h, g, N, S, ...O) {
|
|
765
765
|
const L = h.currentPosition();
|
|
766
766
|
if (L.offset += S, L.column += S, n) {
|
|
767
|
-
const v = t ? Rn(N, L) : null, x =
|
|
767
|
+
const v = t ? Rn(N, L) : null, x = _t(g, v, {
|
|
768
768
|
domain: Co,
|
|
769
769
|
args: O
|
|
770
770
|
});
|
|
@@ -1029,7 +1029,7 @@ function st(e) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
default:
|
|
1031
1031
|
if (process.env.NODE_ENV !== "production")
|
|
1032
|
-
throw
|
|
1032
|
+
throw _t(M.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1033
1033
|
domain: Fo,
|
|
1034
1034
|
args: [e.type]
|
|
1035
1035
|
});
|
|
@@ -1084,7 +1084,7 @@ function Bo(e, t) {
|
|
|
1084
1084
|
e.push(`${n(
|
|
1085
1085
|
"linked"
|
|
1086
1086
|
/* HelperNameMap.LINKED */
|
|
1087
|
-
)}(`),
|
|
1087
|
+
)}(`), ut(e, t.key), t.modifier ? (e.push(", "), ut(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1088
1088
|
}
|
|
1089
1089
|
function xo(e, t) {
|
|
1090
1090
|
const { helper: n, needIndent: r } = e;
|
|
@@ -1093,7 +1093,7 @@ function xo(e, t) {
|
|
|
1093
1093
|
/* HelperNameMap.NORMALIZE */
|
|
1094
1094
|
)}([`), e.indent(r());
|
|
1095
1095
|
const a = t.items.length;
|
|
1096
|
-
for (let s = 0; s < a && (
|
|
1096
|
+
for (let s = 0; s < a && (ut(e, t.items[s]), s !== a - 1); s++)
|
|
1097
1097
|
e.push(", ");
|
|
1098
1098
|
e.deindent(r()), e.push("])");
|
|
1099
1099
|
}
|
|
@@ -1105,15 +1105,15 @@ function Vo(e, t) {
|
|
|
1105
1105
|
/* HelperNameMap.PLURAL */
|
|
1106
1106
|
)}([`), e.indent(r());
|
|
1107
1107
|
const a = t.cases.length;
|
|
1108
|
-
for (let s = 0; s < a && (
|
|
1108
|
+
for (let s = 0; s < a && (ut(e, t.cases[s]), s !== a - 1); s++)
|
|
1109
1109
|
e.push(", ");
|
|
1110
1110
|
e.deindent(r()), e.push("])");
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
function Go(e, t) {
|
|
1114
|
-
t.body ?
|
|
1114
|
+
t.body ? ut(e, t.body) : e.push("null");
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function ut(e, t) {
|
|
1117
1117
|
const { helper: n } = e;
|
|
1118
1118
|
switch (t.type) {
|
|
1119
1119
|
case 0:
|
|
@@ -1160,7 +1160,7 @@ function ct(e, t) {
|
|
|
1160
1160
|
break;
|
|
1161
1161
|
default:
|
|
1162
1162
|
if (process.env.NODE_ENV !== "production")
|
|
1163
|
-
throw
|
|
1163
|
+
throw _t(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1164
1164
|
domain: Mo,
|
|
1165
1165
|
args: [t.type]
|
|
1166
1166
|
});
|
|
@@ -1175,7 +1175,7 @@ const $o = (e, t = {}) => {
|
|
|
1175
1175
|
breakLineCode: a,
|
|
1176
1176
|
needIndent: s
|
|
1177
1177
|
});
|
|
1178
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${Zn(o.map((f) => `${f}: _${f}`), ", ")} } = ctx`), i.newline()), i.push("return "),
|
|
1178
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${Zn(o.map((f) => `${f}: _${f}`), ", ")} } = ctx`), i.newline()), i.push("return "), ut(i, e), i.deindent(s), i.push("}"), delete e.helpers;
|
|
1179
1179
|
const { code: l, map: c } = i.context();
|
|
1180
1180
|
return {
|
|
1181
1181
|
ast: e,
|
|
@@ -1389,7 +1389,7 @@ const le = {
|
|
|
1389
1389
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1390
1390
|
}, ii = 24;
|
|
1391
1391
|
function we(e) {
|
|
1392
|
-
return
|
|
1392
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: li } : void 0);
|
|
1393
1393
|
}
|
|
1394
1394
|
const li = {
|
|
1395
1395
|
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
@@ -1805,7 +1805,7 @@ const Pr = (e) => {
|
|
|
1805
1805
|
}, Li = () => $a;
|
|
1806
1806
|
let Fr = 0;
|
|
1807
1807
|
function wi(e = {}) {
|
|
1808
|
-
const t = q(e.onWarn) ? e.onWarn : mo, n = I(e.version) ? e.version : Ai, r = I(e.locale) || q(e.locale) ? e.locale : Lt, a = q(r) ? Lt : r, s = re(e.fallbackLocale) || V(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : An(a), i = V(e.datetimeFormats) ? e.datetimeFormats : An(a), l = V(e.numberFormats) ? e.numberFormats : An(a), c = ie(K(), e.modifiers, yi()), f = e.pluralRules || K(), u = q(e.missing) ? e.missing : null, m = $(e.missingWarn) ||
|
|
1808
|
+
const t = q(e.onWarn) ? e.onWarn : mo, n = I(e.version) ? e.version : Ai, r = I(e.locale) || q(e.locale) ? e.locale : Lt, a = q(r) ? Lt : r, s = re(e.fallbackLocale) || V(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : An(a), i = V(e.datetimeFormats) ? e.datetimeFormats : An(a), l = V(e.numberFormats) ? e.numberFormats : An(a), c = ie(K(), e.modifiers, yi()), f = e.pluralRules || K(), u = q(e.missing) ? e.missing : null, m = $(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, p = $(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, E = !!e.unresolving, C = q(e.postTranslation) ? e.postTranslation : null, h = V(e.processor) ? e.processor : null, g = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, S = q(e.messageCompiler) ? e.messageCompiler : Ba;
|
|
1809
1809
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1810
1810
|
const O = q(e.messageResolver) ? e.messageResolver : xa || Ei, L = q(e.localeFallbacker) ? e.localeFallbacker : Va || ci, v = G(e.fallbackContext) ? e.fallbackContext : void 0, x = e, Y = G(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), se = G(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), Se = G(x.__meta) ? x.__meta : {};
|
|
1811
1811
|
Fr++;
|
|
@@ -1859,7 +1859,7 @@ function sr(e, t, n, r, a) {
|
|
|
1859
1859
|
} else
|
|
1860
1860
|
return process.env.NODE_ENV !== "production" && Wa(r, t) && o(Je(_e.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function bt(e, t, n) {
|
|
1863
1863
|
const r = e;
|
|
1864
1864
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1865
1865
|
}
|
|
@@ -2402,7 +2402,7 @@ const X = {
|
|
|
2402
2402
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2403
2403
|
};
|
|
2404
2404
|
function de(e, ...t) {
|
|
2405
|
-
return
|
|
2405
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: tl, args: t } : void 0);
|
|
2406
2406
|
}
|
|
2407
2407
|
const tl = {
|
|
2408
2408
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -2521,10 +2521,10 @@ function Yr(e) {
|
|
|
2521
2521
|
const Hr = "__INTLIFY_META__", Kr = () => [], rl = () => !1;
|
|
2522
2522
|
let jr = 0;
|
|
2523
2523
|
function qr(e) {
|
|
2524
|
-
return (t, n, r, a) => e(n, r,
|
|
2524
|
+
return (t, n, r, a) => e(n, r, Tt() || void 0, a);
|
|
2525
2525
|
}
|
|
2526
2526
|
const al = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2527
|
-
const e =
|
|
2527
|
+
const e = Tt();
|
|
2528
2528
|
let t = null;
|
|
2529
2529
|
return e && (t = Za(e)[Hr]) ? { [Hr]: t } : null;
|
|
2530
2530
|
};
|
|
@@ -2538,7 +2538,7 @@ function ir(e = {}) {
|
|
|
2538
2538
|
// prettier-ignore
|
|
2539
2539
|
t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2540
2540
|
), c = s(or(i.value, e)), f = s(V(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), u = s(V(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2541
|
-
let m = t ? t.missingWarn : $(e.missingWarn) ||
|
|
2541
|
+
let m = t ? t.missingWarn : $(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : $(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, A = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, E = !!e.fallbackFormat, C = q(e.missing) ? e.missing : null, h = q(e.missing) ? qr(e.missing) : null, g = q(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter;
|
|
2542
2542
|
const O = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2543
2543
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2544
2544
|
v = (() => {
|
|
@@ -2565,7 +2565,7 @@ function ir(e = {}) {
|
|
|
2565
2565
|
b.datetimeFormats = f.value, b.numberFormats = u.value, b.__datetimeFormatters = V(v) ? v.__datetimeFormatters : void 0, b.__numberFormatters = V(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = V(v) ? v.__v_emitter : void 0);
|
|
2566
2566
|
const T = wi(b);
|
|
2567
2567
|
return r && Pr(T), T;
|
|
2568
|
-
})(),
|
|
2568
|
+
})(), bt(v, i.value, l.value);
|
|
2569
2569
|
function Y() {
|
|
2570
2570
|
return [
|
|
2571
2571
|
i.value,
|
|
@@ -2575,17 +2575,17 @@ function ir(e = {}) {
|
|
|
2575
2575
|
u.value
|
|
2576
2576
|
];
|
|
2577
2577
|
}
|
|
2578
|
-
const se =
|
|
2578
|
+
const se = pt({
|
|
2579
2579
|
get: () => i.value,
|
|
2580
2580
|
set: (b) => {
|
|
2581
2581
|
v.locale = b, i.value = b;
|
|
2582
2582
|
}
|
|
2583
|
-
}), Se =
|
|
2583
|
+
}), Se = pt({
|
|
2584
2584
|
get: () => l.value,
|
|
2585
2585
|
set: (b) => {
|
|
2586
|
-
v.fallbackLocale = b, l.value = b,
|
|
2586
|
+
v.fallbackLocale = b, l.value = b, bt(v, i.value, b);
|
|
2587
2587
|
}
|
|
2588
|
-
}), oe =
|
|
2588
|
+
}), oe = pt(() => c.value), Ze = /* @__PURE__ */ pt(() => f.value), rn = /* @__PURE__ */ pt(() => u.value);
|
|
2589
2589
|
function an() {
|
|
2590
2590
|
return q(g) ? g : null;
|
|
2591
2591
|
}
|
|
@@ -2631,14 +2631,14 @@ function ir(e = {}) {
|
|
|
2631
2631
|
throw de(X.UNEXPECTED_RETURN_TYPE);
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
|
-
function
|
|
2634
|
+
function dt(...b) {
|
|
2635
2635
|
return Ie((T) => Reflect.apply(Wr, null, [T, ...b]), () => Mn(...b), "translate", (T) => Reflect.apply(T.t, T, [...b]), (T) => T, (T) => I(T));
|
|
2636
2636
|
}
|
|
2637
2637
|
function un(...b) {
|
|
2638
2638
|
const [T, H, ee] = b;
|
|
2639
2639
|
if (ee && !G(ee))
|
|
2640
2640
|
throw de(X.INVALID_ARGUMENT);
|
|
2641
|
-
return
|
|
2641
|
+
return dt(T, H, ie({ resolvedMessage: !0 }, ee || {}));
|
|
2642
2642
|
}
|
|
2643
2643
|
function fn(...b) {
|
|
2644
2644
|
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => Reflect.apply(T.d, T, [...b]), () => Ht, (T) => I(T));
|
|
@@ -2683,7 +2683,7 @@ function ir(e = {}) {
|
|
|
2683
2683
|
return Ee(We) || pe(We) || I(We);
|
|
2684
2684
|
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), rl, (H) => $(H));
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function mt(b) {
|
|
2687
2687
|
let T = null;
|
|
2688
2688
|
const H = Ua(v, l.value, i.value);
|
|
2689
2689
|
for (let ee = 0; ee < H.length; ee++) {
|
|
@@ -2695,14 +2695,14 @@ function ir(e = {}) {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
return T;
|
|
2697
2697
|
}
|
|
2698
|
-
function
|
|
2699
|
-
const T =
|
|
2698
|
+
function ht(b) {
|
|
2699
|
+
const T = mt(b);
|
|
2700
2700
|
return T ?? (t ? t.tm(b) || {} : {});
|
|
2701
2701
|
}
|
|
2702
2702
|
function $e(b) {
|
|
2703
2703
|
return c.value[b] || {};
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function gt(b, T) {
|
|
2706
2706
|
if (a) {
|
|
2707
2707
|
const H = { [b]: T };
|
|
2708
2708
|
for (const ee in H)
|
|
@@ -2728,7 +2728,7 @@ function ir(e = {}) {
|
|
|
2728
2728
|
function y(b, T) {
|
|
2729
2729
|
f.value[b] = ie(f.value[b] || {}, T), v.datetimeFormats = f.value, Br(v, b, T);
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function k(b) {
|
|
2732
2732
|
return u.value[b] || {};
|
|
2733
2733
|
}
|
|
2734
2734
|
function z(b, T) {
|
|
@@ -2738,9 +2738,9 @@ function ir(e = {}) {
|
|
|
2738
2738
|
u.value[b] = ie(u.value[b] || {}, T), v.numberFormats = u.value, Vr(v, b, T);
|
|
2739
2739
|
}
|
|
2740
2740
|
jr++, t && Ae && (wn(t.locale, (b) => {
|
|
2741
|
-
o && (i.value = b, v.locale = b,
|
|
2741
|
+
o && (i.value = b, v.locale = b, bt(v, i.value, l.value));
|
|
2742
2742
|
}), wn(t.fallbackLocale, (b) => {
|
|
2743
|
-
o && (l.value = b, v.fallbackLocale = b,
|
|
2743
|
+
o && (l.value = b, v.fallbackLocale = b, bt(v, i.value, l.value));
|
|
2744
2744
|
}));
|
|
2745
2745
|
const W = {
|
|
2746
2746
|
id: jr,
|
|
@@ -2750,7 +2750,7 @@ function ir(e = {}) {
|
|
|
2750
2750
|
return o;
|
|
2751
2751
|
},
|
|
2752
2752
|
set inheritLocale(b) {
|
|
2753
|
-
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value,
|
|
2753
|
+
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, bt(v, i.value, l.value));
|
|
2754
2754
|
},
|
|
2755
2755
|
get availableLocales() {
|
|
2756
2756
|
return Object.keys(c.value).sort();
|
|
@@ -2801,9 +2801,9 @@ function ir(e = {}) {
|
|
|
2801
2801
|
set escapeParameter(b) {
|
|
2802
2802
|
S = b, v.escapeParameter = b;
|
|
2803
2803
|
},
|
|
2804
|
-
t:
|
|
2804
|
+
t: dt,
|
|
2805
2805
|
getLocaleMessage: $e,
|
|
2806
|
-
setLocaleMessage:
|
|
2806
|
+
setLocaleMessage: gt,
|
|
2807
2807
|
mergeLocaleMessage: bn,
|
|
2808
2808
|
getPostTranslationHandler: an,
|
|
2809
2809
|
setPostTranslationHandler: sn,
|
|
@@ -2811,7 +2811,7 @@ function ir(e = {}) {
|
|
|
2811
2811
|
setMissingHandler: ln,
|
|
2812
2812
|
[Ja]: pn
|
|
2813
2813
|
};
|
|
2814
|
-
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm =
|
|
2814
|
+
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = ht, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat = k, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[za] = n, W[Bn] = Mt, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2815
2815
|
v.__v_emitter = b;
|
|
2816
2816
|
}, W[wt] = () => {
|
|
2817
2817
|
v.__v_emitter = void 0;
|
|
@@ -3078,7 +3078,7 @@ function pl(e, t) {
|
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
3080
|
function El(e) {
|
|
3081
|
-
const t = I(e.locale) ? e.locale : Lt, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) ||
|
|
3081
|
+
const t = I(e.locale) ? e.locale : Lt, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) || ct(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = $(e.silentFallbackWarn) || ct(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = $(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = q(e.postTranslation) ? e.postTranslation : void 0, u = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, p = $(e.sync) ? e.sync : !0;
|
|
3082
3082
|
let A = e.messages;
|
|
3083
3083
|
if (V(e.sharedMessages)) {
|
|
3084
3084
|
const O = e.sharedMessages;
|
|
@@ -3284,7 +3284,7 @@ function Wn(e = {}) {
|
|
|
3284
3284
|
function bl(e, t, n) {
|
|
3285
3285
|
return {
|
|
3286
3286
|
beforeCreate() {
|
|
3287
|
-
const r =
|
|
3287
|
+
const r = Tt();
|
|
3288
3288
|
if (!r)
|
|
3289
3289
|
throw de(X.UNEXPECTED_ERROR);
|
|
3290
3290
|
const a = this.$options;
|
|
@@ -3323,7 +3323,7 @@ function bl(e, t, n) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
},
|
|
3325
3325
|
unmounted() {
|
|
3326
|
-
const r =
|
|
3326
|
+
const r = Tt();
|
|
3327
3327
|
if (!r)
|
|
3328
3328
|
throw de(X.UNEXPECTED_ERROR);
|
|
3329
3329
|
const a = this.$i18n;
|
|
@@ -3568,7 +3568,7 @@ function Cl(e = {}) {
|
|
|
3568
3568
|
return f;
|
|
3569
3569
|
}
|
|
3570
3570
|
function ur(e = {}) {
|
|
3571
|
-
const t =
|
|
3571
|
+
const t = Tt();
|
|
3572
3572
|
if (t == null)
|
|
3573
3573
|
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3574
3574
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -3743,7 +3743,7 @@ function Gl(e) {
|
|
|
3743
3743
|
const Pt = De("cloudSdkLanguageStore", {
|
|
3744
3744
|
state: () => ({
|
|
3745
3745
|
languageDefault: rt,
|
|
3746
|
-
languageName:
|
|
3746
|
+
languageName: D.localGet(nt) || rt,
|
|
3747
3747
|
/**
|
|
3748
3748
|
* 语言类型
|
|
3749
3749
|
*/
|
|
@@ -3779,7 +3779,7 @@ const Pt = De("cloudSdkLanguageStore", {
|
|
|
3779
3779
|
t.language && (e = t.language), e = Gl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3780
3780
|
},
|
|
3781
3781
|
async clear_cache() {
|
|
3782
|
-
|
|
3782
|
+
D.localSet(nt, rt);
|
|
3783
3783
|
},
|
|
3784
3784
|
/**
|
|
3785
3785
|
* 默认语言
|
|
@@ -3807,7 +3807,7 @@ const Pt = De("cloudSdkLanguageStore", {
|
|
|
3807
3807
|
* @param silence
|
|
3808
3808
|
*/
|
|
3809
3809
|
SA_LANGUAGE_SET(e) {
|
|
3810
|
-
this.languageName = e,
|
|
3810
|
+
this.languageName = e, D.localSet(nt, e), Ke.locale.value = e;
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
3813
|
}), ra = "__system:themes__", $l = "light", Nn = "__system:layoutSidebarState__", Wl = "on", aa = "__system:layoutNavTabs__", Yl = "on", Hl = "__system:layoutWatermark__", Kl = "on";
|
|
@@ -3821,17 +3821,17 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3821
3821
|
/**
|
|
3822
3822
|
* 上边切换卡
|
|
3823
3823
|
*/
|
|
3824
|
-
layoutNavTabs:
|
|
3824
|
+
layoutNavTabs: D.localGet(aa) || Yl,
|
|
3825
3825
|
/**
|
|
3826
3826
|
* 左边侧栏
|
|
3827
3827
|
*/
|
|
3828
|
-
layoutSidebarState:
|
|
3828
|
+
layoutSidebarState: D.localGet(Nn) || Wl,
|
|
3829
3829
|
/**
|
|
3830
3830
|
* 主题皮肤
|
|
3831
3831
|
* auto|light|dark
|
|
3832
3832
|
* 自动生成
|
|
3833
3833
|
*/
|
|
3834
|
-
themesName:
|
|
3834
|
+
themesName: D.localGet(ra) || $l,
|
|
3835
3835
|
themesList: [
|
|
3836
3836
|
{ name: "跟随系统", value: "auto" },
|
|
3837
3837
|
{ name: "明亮", value: "light" },
|
|
@@ -3840,7 +3840,7 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3840
3840
|
/**
|
|
3841
3841
|
* 水印
|
|
3842
3842
|
*/
|
|
3843
|
-
watermarkState:
|
|
3843
|
+
watermarkState: D.localGet(Hl) || Kl
|
|
3844
3844
|
}),
|
|
3845
3845
|
actions: {
|
|
3846
3846
|
async init() {
|
|
@@ -3856,19 +3856,19 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3856
3856
|
SA_LAYOUT_WATERMARK_SET(e) {
|
|
3857
3857
|
this.watermarkState = e;
|
|
3858
3858
|
const t = document.querySelector("html");
|
|
3859
|
-
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"),
|
|
3859
|
+
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"), D.localSet(Nn, e);
|
|
3860
3860
|
},
|
|
3861
3861
|
// 设置左边侧栏
|
|
3862
3862
|
SA_LAYOUT_SLIDEBAR_SET(e) {
|
|
3863
3863
|
this.layoutSidebarState = e;
|
|
3864
3864
|
const t = document.querySelector("html");
|
|
3865
|
-
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"),
|
|
3865
|
+
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"), D.localSet(Nn, e);
|
|
3866
3866
|
},
|
|
3867
3867
|
// 设置上边nav
|
|
3868
3868
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
3869
3869
|
me.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
3870
3870
|
const t = document.querySelector("html");
|
|
3871
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ ||
|
|
3871
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ || D.localSet(aa, e);
|
|
3872
3872
|
},
|
|
3873
3873
|
/**
|
|
3874
3874
|
* 设置主题
|
|
@@ -3904,7 +3904,7 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3904
3904
|
break;
|
|
3905
3905
|
}
|
|
3906
3906
|
const n = document.querySelector("html");
|
|
3907
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName),
|
|
3907
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), D.localSet(ra, this.themesName);
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
3910
|
});
|
|
@@ -3974,7 +3974,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
3974
3974
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
|
-
}),
|
|
3977
|
+
}), St = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", ca = "cacheClientId", ua = "cacheClientVersion", fr = De("cloudSdkSystemStore", {
|
|
3978
3978
|
state: () => ({
|
|
3979
3979
|
// ServerUrl
|
|
3980
3980
|
cacheServerUrl: "",
|
|
@@ -4021,37 +4021,37 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4021
4021
|
await gbIdbObj.idbSetItem(ua, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), this.SA_KEYBOARD_SET();
|
|
4022
4022
|
},
|
|
4023
4023
|
async clear_cache() {
|
|
4024
|
-
const e =
|
|
4025
|
-
|
|
4024
|
+
const e = D.localGet(St);
|
|
4025
|
+
D.localSet(St, e), await gbIdbObj.idbDelItem("clearCache"), await gbIdbObj.idbDelItem(On), await gbIdbObj.idbDelItem(In);
|
|
4026
4026
|
},
|
|
4027
4027
|
async cache_read() {
|
|
4028
4028
|
this.cacheServerUrl = await gbIdbObj.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemInfo.apiUrl = this.cacheServerUrl);
|
|
4029
4029
|
},
|
|
4030
4030
|
async __load_api_flag() {
|
|
4031
4031
|
let e = await gbIdbObj.idbGetItem(On);
|
|
4032
|
-
e || await
|
|
4032
|
+
e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
|
|
4033
4033
|
e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(On, e);
|
|
4034
|
-
}), await
|
|
4034
|
+
}), await ue.appendApiFlag(e);
|
|
4035
4035
|
},
|
|
4036
4036
|
async __load_api_auth() {
|
|
4037
4037
|
let e = await gbIdbObj.idbGetItem(In);
|
|
4038
|
-
e || await
|
|
4038
|
+
e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
|
|
4039
4039
|
e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(In, e);
|
|
4040
|
-
}), await
|
|
4040
|
+
}), await ue.appendApiAuth(e);
|
|
4041
4041
|
},
|
|
4042
4042
|
async __load_api_code() {
|
|
4043
4043
|
let e = await gbIdbObj.idbGetItem(oa);
|
|
4044
|
-
e || await
|
|
4044
|
+
e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
|
|
4045
4045
|
e = t.data || {}, gbIdbObj.idbSetItem(oa, e);
|
|
4046
4046
|
});
|
|
4047
4047
|
},
|
|
4048
4048
|
async __load_api_key() {
|
|
4049
4049
|
let e = await gbIdbObj.idbGetString(ca);
|
|
4050
|
-
e || (e = cvUtils.randomString(6), await gbIdbObj.idbSetItem(ca, e)), this.cacheClientId = e, this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await
|
|
4050
|
+
e || (e = cvUtils.randomString(6), await gbIdbObj.idbSetItem(ca, e)), this.cacheClientId = e, this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
|
|
4051
4051
|
client_id: e
|
|
4052
4052
|
}).then(({ data: t }) => {
|
|
4053
4053
|
this.apiKeyData = t, gbIdbObj.idbSetItem(ia, this.apiKeyData);
|
|
4054
|
-
}),
|
|
4054
|
+
}), ue.setHeaders({
|
|
4055
4055
|
"Sy-Client-Id": e
|
|
4056
4056
|
});
|
|
4057
4057
|
},
|
|
@@ -4060,7 +4060,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4060
4060
|
* @returns {Promise<unknown>}
|
|
4061
4061
|
*/
|
|
4062
4062
|
async __load_system_config() {
|
|
4063
|
-
this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await
|
|
4063
|
+
this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: e }) => {
|
|
4064
4064
|
this.systemConfig = Object.assign({}, this.systemConfig, e), gbIdbObj.idbSetItem(la, this.systemConfig);
|
|
4065
4065
|
});
|
|
4066
4066
|
},
|
|
@@ -4071,10 +4071,10 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4071
4071
|
*/
|
|
4072
4072
|
SA_KEYBOARD_SET(e) {
|
|
4073
4073
|
return new Promise((t) => {
|
|
4074
|
-
let n =
|
|
4075
|
-
n || (
|
|
4074
|
+
let n = D.localGet(St);
|
|
4075
|
+
n || (D.localSet(St, D.localGet("__keyboard:data__")), D.localDel("__keyboard:data__"));
|
|
4076
4076
|
const r = e || n || {};
|
|
4077
|
-
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter",
|
|
4077
|
+
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", D.localSet(St, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
|
|
4078
4078
|
});
|
|
4079
4079
|
},
|
|
4080
4080
|
/**
|
|
@@ -4086,7 +4086,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4086
4086
|
if (!cvUtils.strExists(e, "."))
|
|
4087
4087
|
return;
|
|
4088
4088
|
let n = "__ip" + e.substring(0, 1) + "__";
|
|
4089
|
-
const r =
|
|
4089
|
+
const r = D.localSet(n);
|
|
4090
4090
|
let a = cvUtils.strGetMiddle(e, "", "."), s = r[a] || e;
|
|
4091
4091
|
if (typeof s == "object") {
|
|
4092
4092
|
typeof t == "function" && t(s);
|
|
@@ -4095,8 +4095,8 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4095
4095
|
const o = {
|
|
4096
4096
|
keyId: s || e
|
|
4097
4097
|
};
|
|
4098
|
-
|
|
4099
|
-
|
|
4098
|
+
ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
|
|
4099
|
+
D.localSet(n, o), typeof t == "function" && t(s);
|
|
4100
4100
|
});
|
|
4101
4101
|
}
|
|
4102
4102
|
}
|
|
@@ -4104,7 +4104,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
|
4104
4104
|
function Yn(e) {
|
|
4105
4105
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4106
4106
|
}
|
|
4107
|
-
const at = "syCacheAppInfo", Me = "syCacheAppToken",
|
|
4107
|
+
const at = "syCacheAppInfo", Me = "syCacheAppToken", vt = "syCacheAppJwt", At = "syCacheAppRbac", fa = {
|
|
4108
4108
|
nickname: "",
|
|
4109
4109
|
staff_nickname: "",
|
|
4110
4110
|
id: 0,
|
|
@@ -4131,9 +4131,9 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4131
4131
|
// 权限
|
|
4132
4132
|
accountRbacData: [],
|
|
4133
4133
|
// 账号信息
|
|
4134
|
-
accountInfo:
|
|
4135
|
-
accountToken:
|
|
4136
|
-
accountJwt:
|
|
4134
|
+
accountInfo: D.localGet(at) || {},
|
|
4135
|
+
accountToken: D.localGet(Me) || "",
|
|
4136
|
+
accountJwt: D.localGet(vt) || ""
|
|
4137
4137
|
}),
|
|
4138
4138
|
getters: {
|
|
4139
4139
|
cacheBizsId: (e) => {
|
|
@@ -4156,13 +4156,13 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4156
4156
|
},
|
|
4157
4157
|
accRoleIsAdmin: (e) => {
|
|
4158
4158
|
var t;
|
|
4159
|
-
return ((t = e.accountInfo) == null ? void 0 : t.
|
|
4159
|
+
return ((t = e.accountInfo) == null ? void 0 : t.acc_rules_type) == "sy-org-admin";
|
|
4160
4160
|
}
|
|
4161
4161
|
},
|
|
4162
4162
|
actions: {
|
|
4163
4163
|
init() {
|
|
4164
4164
|
const e = cvUtils.urlGetParameterAll();
|
|
4165
|
-
e.token &&
|
|
4165
|
+
e.token && D.localSet("ACC_TOKEN_CACHE_KEY", e.token), this.SA_ACCOUNT_RBAC_REFRESH(), this.accountIsLogin ? this.SA_ACCOUNT_REFRESH() : this.SA_ACCOUNT_LOGOUT();
|
|
4166
4166
|
},
|
|
4167
4167
|
async clear_cache() {
|
|
4168
4168
|
this.ACCOUNT_SET_PREV();
|
|
@@ -4170,7 +4170,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4170
4170
|
async clear_all() {
|
|
4171
4171
|
},
|
|
4172
4172
|
SA_ACCOUNT_IS_LOGGED() {
|
|
4173
|
-
return this.accountToken =
|
|
4173
|
+
return this.accountToken = D.localGet(Me) || "", !!Yn(this.accountToken);
|
|
4174
4174
|
},
|
|
4175
4175
|
SA_ACCOUNT_JWT_GET() {
|
|
4176
4176
|
return this.accountJwt || "";
|
|
@@ -4179,7 +4179,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4179
4179
|
return this.accountToken || "";
|
|
4180
4180
|
},
|
|
4181
4181
|
SA_ACCOUNT_TOKEN_SET(e) {
|
|
4182
|
-
this.accountToken = e,
|
|
4182
|
+
this.accountToken = e, D.localSet(Me, this.accountToken);
|
|
4183
4183
|
},
|
|
4184
4184
|
/**
|
|
4185
4185
|
* 获取用户信息(并保存)
|
|
@@ -4187,11 +4187,11 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4187
4187
|
* @returns Object
|
|
4188
4188
|
*/
|
|
4189
4189
|
SA_ACCOUNT_INFO_GET() {
|
|
4190
|
-
return
|
|
4190
|
+
return D.localGet("accountInfo");
|
|
4191
4191
|
},
|
|
4192
4192
|
SA_ACCOUNT_INFO_REFRESH() {
|
|
4193
4193
|
return new Promise((e, t) => {
|
|
4194
|
-
|
|
4194
|
+
ue.flagGet("BASE_ACCSYS_COMMON_INFO", {}).then(({ data: n }) => {
|
|
4195
4195
|
n = this._SA_ACCOUNT_INFO_PARSE(n), e(n);
|
|
4196
4196
|
}).catch((n) => {
|
|
4197
4197
|
t(n);
|
|
@@ -4209,28 +4209,28 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4209
4209
|
SA_ACCOUNT_INFO_SET(e) {
|
|
4210
4210
|
return new Promise(async (t) => {
|
|
4211
4211
|
const n = JSON.parse(JSON.stringify(e));
|
|
4212
|
-
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n),
|
|
4212
|
+
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n), D.localSet(at, this.accountInfo), t();
|
|
4213
4213
|
});
|
|
4214
4214
|
},
|
|
4215
4215
|
SA_ACCOUNT_GET_NICK() {
|
|
4216
4216
|
return this.account_nick;
|
|
4217
4217
|
},
|
|
4218
4218
|
SA_ACCOUNT_REFRESH() {
|
|
4219
|
-
this.accountInfo =
|
|
4219
|
+
this.accountInfo = D.localGet(at) || fa, this.accountToken = D.localGet(Me) || "", this.accountJwt = D.localGet(vt) || "", ue.setDefHeaders({
|
|
4220
4220
|
syOpenAppToken: this.accountToken || "",
|
|
4221
4221
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4222
4222
|
});
|
|
4223
4223
|
},
|
|
4224
4224
|
// 登录
|
|
4225
4225
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4226
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e),
|
|
4226
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(Me, e.token_access || ""), D.localSet(vt, e.token_jwt || ""), D.localSet(At, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(Me, e.token_access || ""), Ot().QK_SEND_LOGIN_MSG();
|
|
4227
4227
|
},
|
|
4228
4228
|
/**
|
|
4229
4229
|
* 登出(打开登录页面)
|
|
4230
4230
|
* @param appendFrom
|
|
4231
4231
|
*/
|
|
4232
4232
|
SA_ACCOUNT_LOGOUT() {
|
|
4233
|
-
this.ACCOUNT_SET_PREV(),
|
|
4233
|
+
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(Me, ""), D.localSet(vt, ""), D.localSet(At, ""), D.localDel(at), D.localDel(Me), D.localDel(vt), D.localDel(At), this.SA_ACCOUNT_REFRESH(), Ot().QK_SEND_LOGOUT_MSG();
|
|
4234
4234
|
},
|
|
4235
4235
|
/**
|
|
4236
4236
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4238,9 +4238,9 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4238
4238
|
async SA_ACCOUNT_RBAC_REFRESH(e) {
|
|
4239
4239
|
return e = e || !1, new Promise(async (t) => {
|
|
4240
4240
|
if (this.accountToken) {
|
|
4241
|
-
let n =
|
|
4242
|
-
e && n == "" ? await
|
|
4243
|
-
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (
|
|
4241
|
+
let n = D.localGet(At) || "";
|
|
4242
|
+
e && n == "" ? await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
|
|
4243
|
+
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (D.localSet(At, r.data || ""), t(r.data || ""));
|
|
4244
4244
|
}).catch(() => {
|
|
4245
4245
|
t("");
|
|
4246
4246
|
}) : t(n);
|
|
@@ -4277,7 +4277,7 @@ function fs(e) {
|
|
|
4277
4277
|
let t = Object.prototype.toString.call(e);
|
|
4278
4278
|
if (t != "[object String]" && t != "[object Array]")
|
|
4279
4279
|
return !1;
|
|
4280
|
-
let n =
|
|
4280
|
+
let n = D.localGet("syCacheAppRbac") || "";
|
|
4281
4281
|
if (t == "[object String]")
|
|
4282
4282
|
return Kt(e, n);
|
|
4283
4283
|
if (t === "[object Array]") {
|
|
@@ -4292,7 +4292,7 @@ function Kt(e, t) {
|
|
|
4292
4292
|
if (e = e || "", e = e.trim(), e == "")
|
|
4293
4293
|
return !1;
|
|
4294
4294
|
e.includes("@") || (e = `${Jl}@${e}`);
|
|
4295
|
-
let n = t ||
|
|
4295
|
+
let n = t || D.localGet("syCacheAppRbac") || "";
|
|
4296
4296
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4297
4297
|
}
|
|
4298
4298
|
const Zt = De("cloudSdkProductStore", {
|
|
@@ -4301,7 +4301,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4301
4301
|
* 默认应用信息
|
|
4302
4302
|
*/
|
|
4303
4303
|
defaultProductInfo: {
|
|
4304
|
-
info_title:
|
|
4304
|
+
info_title: lt().syProductTitle || "ShiyunProduct",
|
|
4305
4305
|
info_logo: "",
|
|
4306
4306
|
info_version: "v1.25.xxxx"
|
|
4307
4307
|
// 版本
|
|
@@ -4352,7 +4352,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4352
4352
|
}
|
|
4353
4353
|
return i;
|
|
4354
4354
|
}
|
|
4355
|
-
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r =
|
|
4355
|
+
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r = D.localGet("syCacheAppRbac") || "", a = t(n, r);
|
|
4356
4356
|
return this.menuOpeneds = e, this.menuOnly = a, a;
|
|
4357
4357
|
},
|
|
4358
4358
|
// 获取菜单
|
|
@@ -4366,7 +4366,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4366
4366
|
isAlone: !0,
|
|
4367
4367
|
name: "login",
|
|
4368
4368
|
path: "/login",
|
|
4369
|
-
component: () => import("./login-
|
|
4369
|
+
component: () => import("./login-CqOphaH-.js")
|
|
4370
4370
|
}
|
|
4371
4371
|
], Zl = [
|
|
4372
4372
|
{
|
|
@@ -4374,14 +4374,14 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4374
4374
|
isAlone: !0,
|
|
4375
4375
|
name: "alone_run",
|
|
4376
4376
|
path: "/alone_run",
|
|
4377
|
-
component: () => import("./alone_run-
|
|
4377
|
+
component: () => import("./alone_run-B4bN0u0d.js")
|
|
4378
4378
|
},
|
|
4379
4379
|
{
|
|
4380
4380
|
meta: { title: "错误", isAlone: !0 },
|
|
4381
4381
|
isAlone: !0,
|
|
4382
4382
|
name: "404",
|
|
4383
4383
|
path: "/:catchAll(.*)",
|
|
4384
|
-
component: () => import("./404-
|
|
4384
|
+
component: () => import("./404-BQxGIlBK.js")
|
|
4385
4385
|
}
|
|
4386
4386
|
], ec = [
|
|
4387
4387
|
{
|
|
@@ -4389,7 +4389,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4389
4389
|
isAlone: !1,
|
|
4390
4390
|
name: "none",
|
|
4391
4391
|
path: "/none",
|
|
4392
|
-
component: () => import("./none-
|
|
4392
|
+
component: () => import("./none-BiPWdYyC.js")
|
|
4393
4393
|
}
|
|
4394
4394
|
], en = De("cloudSdkPermissionStore", {
|
|
4395
4395
|
state: () => ({
|
|
@@ -4399,7 +4399,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4399
4399
|
// 窗口刷新
|
|
4400
4400
|
routeAlive: 0,
|
|
4401
4401
|
// 权限列表
|
|
4402
|
-
rbacLastStr:
|
|
4402
|
+
rbacLastStr: D.localGet("syCacheAppRbac") || "",
|
|
4403
4403
|
rbacArr: []
|
|
4404
4404
|
}),
|
|
4405
4405
|
actions: {
|
|
@@ -4440,7 +4440,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4440
4440
|
"org-agent": "代理商平台",
|
|
4441
4441
|
"org-admin": "超管平台"
|
|
4442
4442
|
};
|
|
4443
|
-
let tc = da[
|
|
4443
|
+
let tc = da[lt().syAppConnectRole] ? da[lt().syAppConnectRole] : "管理系统";
|
|
4444
4444
|
const nc = De("cloudSdkApplicationStore", {
|
|
4445
4445
|
state: () => ({
|
|
4446
4446
|
/**
|
|
@@ -4474,7 +4474,7 @@ const nc = De("cloudSdkApplicationStore", {
|
|
|
4474
4474
|
});
|
|
4475
4475
|
function rc() {
|
|
4476
4476
|
return new Promise(async (e) => {
|
|
4477
|
-
Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("
|
|
4477
|
+
Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("cacheClearHandle", "handle").then((t) => {
|
|
4478
4478
|
e();
|
|
4479
4479
|
});
|
|
4480
4480
|
});
|
|
@@ -4590,19 +4590,19 @@ function lc(e, t, n, r, a, s) {
|
|
|
4590
4590
|
size: "450px",
|
|
4591
4591
|
"before-close": s.frameTopSysSettClose
|
|
4592
4592
|
}, {
|
|
4593
|
-
default:
|
|
4594
|
-
|
|
4593
|
+
default: R(() => [
|
|
4594
|
+
P("div", oc, [
|
|
4595
4595
|
w(p, {
|
|
4596
4596
|
labelWidth: "auto",
|
|
4597
4597
|
"label-position": "left"
|
|
4598
4598
|
}, {
|
|
4599
|
-
default:
|
|
4599
|
+
default: R(() => [
|
|
4600
4600
|
w(i, {
|
|
4601
4601
|
label: "风格",
|
|
4602
4602
|
"label-position": "top"
|
|
4603
4603
|
}, {
|
|
4604
|
-
default:
|
|
4605
|
-
|
|
4604
|
+
default: R(() => [
|
|
4605
|
+
P("div", ic, [
|
|
4606
4606
|
w(o),
|
|
4607
4607
|
w(o),
|
|
4608
4608
|
w(o)
|
|
@@ -4611,20 +4611,20 @@ function lc(e, t, n, r, a, s) {
|
|
|
4611
4611
|
_: 1
|
|
4612
4612
|
}),
|
|
4613
4613
|
w(i, { label: "主题" }, {
|
|
4614
|
-
default:
|
|
4614
|
+
default: R(() => [
|
|
4615
4615
|
w(c, {
|
|
4616
4616
|
modelValue: a.frameSysTheme,
|
|
4617
4617
|
"onUpdate:modelValue": t[0] || (t[0] = (E) => a.frameSysTheme = E),
|
|
4618
4618
|
placeholder: e.$t("选项主题"),
|
|
4619
4619
|
style: { width: "150px" }
|
|
4620
4620
|
}, {
|
|
4621
|
-
default:
|
|
4621
|
+
default: R(() => [
|
|
4622
4622
|
(U(!0), Q(he, null, Xe(e.themesList, (E, C) => (U(), J(l, {
|
|
4623
4623
|
label: e.$t(E.name),
|
|
4624
4624
|
value: E.value,
|
|
4625
4625
|
key: C
|
|
4626
4626
|
}, {
|
|
4627
|
-
default:
|
|
4627
|
+
default: R(() => [
|
|
4628
4628
|
te(ne(e.$t(E.name)), 1)
|
|
4629
4629
|
]),
|
|
4630
4630
|
_: 2
|
|
@@ -4636,32 +4636,32 @@ function lc(e, t, n, r, a, s) {
|
|
|
4636
4636
|
_: 1
|
|
4637
4637
|
}),
|
|
4638
4638
|
w(i, { label: "暗黑模式" }, {
|
|
4639
|
-
default:
|
|
4639
|
+
default: R(() => [
|
|
4640
4640
|
a.frameSysTheme == "light" ? (U(), J(u, {
|
|
4641
4641
|
key: 0,
|
|
4642
4642
|
onClick: t[1] || (t[1] = (E) => a.frameSysTheme = "dark"),
|
|
4643
4643
|
class: "light-switch"
|
|
4644
4644
|
}, {
|
|
4645
|
-
default:
|
|
4645
|
+
default: R(() => [
|
|
4646
4646
|
w(f, { type: "cvSvgViewModeDark" })
|
|
4647
4647
|
]),
|
|
4648
4648
|
_: 1
|
|
4649
|
-
})) :
|
|
4649
|
+
})) : fe("", !0),
|
|
4650
4650
|
a.frameSysTheme == "dark" ? (U(), J(u, {
|
|
4651
4651
|
key: 1,
|
|
4652
4652
|
onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
|
|
4653
4653
|
class: "dark-switch"
|
|
4654
4654
|
}, {
|
|
4655
|
-
default:
|
|
4655
|
+
default: R(() => [
|
|
4656
4656
|
w(f, { type: "cvSvgViewModeLight" })
|
|
4657
4657
|
]),
|
|
4658
4658
|
_: 1
|
|
4659
|
-
})) :
|
|
4659
|
+
})) : fe("", !0)
|
|
4660
4660
|
]),
|
|
4661
4661
|
_: 1
|
|
4662
4662
|
}),
|
|
4663
4663
|
w(i, { label: "侧栏显示" }, {
|
|
4664
|
-
default:
|
|
4664
|
+
default: R(() => [
|
|
4665
4665
|
w(m, {
|
|
4666
4666
|
modelValue: a.frameSidebarState,
|
|
4667
4667
|
"onUpdate:modelValue": t[3] || (t[3] = (E) => a.frameSidebarState = E),
|
|
@@ -4674,7 +4674,7 @@ function lc(e, t, n, r, a, s) {
|
|
|
4674
4674
|
_: 1
|
|
4675
4675
|
}),
|
|
4676
4676
|
w(i, { label: "导航标签栏" }, {
|
|
4677
|
-
default:
|
|
4677
|
+
default: R(() => [
|
|
4678
4678
|
w(m, {
|
|
4679
4679
|
modelValue: a.frameSysNavTabs,
|
|
4680
4680
|
"onUpdate:modelValue": t[4] || (t[4] = (E) => a.frameSysNavTabs = E),
|
|
@@ -4687,19 +4687,19 @@ function lc(e, t, n, r, a, s) {
|
|
|
4687
4687
|
_: 1
|
|
4688
4688
|
}),
|
|
4689
4689
|
w(i, { label: "语言" }, {
|
|
4690
|
-
default:
|
|
4690
|
+
default: R(() => [
|
|
4691
4691
|
w(c, {
|
|
4692
4692
|
modelValue: a.frameSysLanguage,
|
|
4693
4693
|
"onUpdate:modelValue": t[5] || (t[5] = (E) => a.frameSysLanguage = E),
|
|
4694
4694
|
placeholder: e.$t("选项语言"),
|
|
4695
4695
|
style: { width: "150px" }
|
|
4696
4696
|
}, {
|
|
4697
|
-
default:
|
|
4697
|
+
default: R(() => [
|
|
4698
4698
|
(U(!0), Q(he, null, Xe(e.languageSelect, (E, C) => (U(), J(l, {
|
|
4699
4699
|
label: E.label,
|
|
4700
4700
|
value: E.value
|
|
4701
4701
|
}, {
|
|
4702
|
-
default:
|
|
4702
|
+
default: R(() => [
|
|
4703
4703
|
te(ne(E.label), 1)
|
|
4704
4704
|
]),
|
|
4705
4705
|
_: 2
|
|
@@ -4711,9 +4711,9 @@ function lc(e, t, n, r, a, s) {
|
|
|
4711
4711
|
_: 1
|
|
4712
4712
|
}),
|
|
4713
4713
|
w(i, { label: "版本" }, {
|
|
4714
|
-
default:
|
|
4714
|
+
default: R(() => [
|
|
4715
4715
|
w(u, { onClick: s.frameUpdateVersion }, {
|
|
4716
|
-
default:
|
|
4716
|
+
default: R(() => [
|
|
4717
4717
|
te(ne(e.$t("更新版本")), 1)
|
|
4718
4718
|
]),
|
|
4719
4719
|
_: 1
|
|
@@ -4722,9 +4722,9 @@ function lc(e, t, n, r, a, s) {
|
|
|
4722
4722
|
_: 1
|
|
4723
4723
|
}),
|
|
4724
4724
|
w(i, { label: "缓存" }, {
|
|
4725
|
-
default:
|
|
4725
|
+
default: R(() => [
|
|
4726
4726
|
w(u, { onClick: s.frameClearCache }, {
|
|
4727
|
-
default:
|
|
4727
|
+
default: R(() => [
|
|
4728
4728
|
te(ne(e.$t("清除缓存")), 1)
|
|
4729
4729
|
]),
|
|
4730
4730
|
_: 1
|
|
@@ -4765,13 +4765,13 @@ const cc = /* @__PURE__ */ Re(sc, [["render", lc]]), uc = {
|
|
|
4765
4765
|
function fc(e, t, n, r, a, s) {
|
|
4766
4766
|
const o = B("router-view");
|
|
4767
4767
|
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4768
|
-
default:
|
|
4768
|
+
default: R(({ Component: i, route: l }) => [
|
|
4769
4769
|
w(Gs, {
|
|
4770
4770
|
name: a.routeRefreshAnimation,
|
|
4771
4771
|
mode: "out-in",
|
|
4772
4772
|
appear: ""
|
|
4773
4773
|
}, {
|
|
4774
|
-
default:
|
|
4774
|
+
default: R(() => [
|
|
4775
4775
|
(U(), Q("div", {
|
|
4776
4776
|
class: ya(n.className),
|
|
4777
4777
|
key: l.path
|
|
@@ -4911,20 +4911,20 @@ const _c = /* @__PURE__ */ Re(uc, [["render", fc]]), ma = (e) => Math.pow(e, 3),
|
|
|
4911
4911
|
function bc(e, t, n, r, a, s) {
|
|
4912
4912
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
4913
4913
|
return U(), Q("div", hc, [
|
|
4914
|
-
|
|
4914
|
+
P("div", gc, [
|
|
4915
4915
|
w(i, {
|
|
4916
4916
|
class: "btn-opt-left",
|
|
4917
4917
|
onClick: s.changeGdtLeft
|
|
4918
4918
|
}, {
|
|
4919
|
-
default:
|
|
4919
|
+
default: R(() => [
|
|
4920
4920
|
w(o, { type: "ElIconArrowLeft" })
|
|
4921
4921
|
]),
|
|
4922
4922
|
_: 1
|
|
4923
4923
|
}, 8, ["onClick"]),
|
|
4924
|
-
|
|
4924
|
+
P("div", pc, [
|
|
4925
4925
|
w(c, { ref: "navScroll1" }, {
|
|
4926
|
-
default:
|
|
4927
|
-
|
|
4926
|
+
default: R(() => [
|
|
4927
|
+
P("div", Ec, [
|
|
4928
4928
|
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4929
4929
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
4930
4930
|
class: ya(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
@@ -4935,7 +4935,7 @@ function bc(e, t, n, r, a, s) {
|
|
|
4935
4935
|
"disable-transitions": "",
|
|
4936
4936
|
onContextmenu: Ws(s.openContextMenu, ["prevent"])
|
|
4937
4937
|
}, {
|
|
4938
|
-
default:
|
|
4938
|
+
default: R(() => [
|
|
4939
4939
|
te(ne(u.title), 1)
|
|
4940
4940
|
]),
|
|
4941
4941
|
_: 2
|
|
@@ -4949,72 +4949,72 @@ function bc(e, t, n, r, a, s) {
|
|
|
4949
4949
|
class: "btn-opt-right",
|
|
4950
4950
|
onClick: s.changeGdtRight
|
|
4951
4951
|
}, {
|
|
4952
|
-
default:
|
|
4952
|
+
default: R(() => [
|
|
4953
4953
|
w(o, { type: "ElIconArrowRight" })
|
|
4954
4954
|
]),
|
|
4955
4955
|
_: 1
|
|
4956
4956
|
}, 8, ["onClick"]),
|
|
4957
4957
|
w(i, { class: "btn-opt-close" }, {
|
|
4958
|
-
default:
|
|
4958
|
+
default: R(() => [
|
|
4959
4959
|
t[5] || (t[5] = te(" 关闭操作 ")),
|
|
4960
4960
|
w(o, { type: "ElIconCaretBottom" })
|
|
4961
4961
|
]),
|
|
4962
4962
|
_: 1
|
|
4963
4963
|
}),
|
|
4964
|
-
Na(
|
|
4964
|
+
Na(P("div", {
|
|
4965
4965
|
class: "cloud-navtabs__contextmenu",
|
|
4966
4966
|
style: Dn(a.contextMenuStyle)
|
|
4967
4967
|
}, [
|
|
4968
|
-
|
|
4968
|
+
P("ul", {
|
|
4969
4969
|
style: Dn({ left: a.left + "px", top: a.top + "px" })
|
|
4970
4970
|
}, [
|
|
4971
|
-
|
|
4971
|
+
P("li", null, [
|
|
4972
4972
|
w(f, {
|
|
4973
4973
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
4974
4974
|
}, {
|
|
4975
|
-
default:
|
|
4975
|
+
default: R(() => t[6] || (t[6] = [
|
|
4976
4976
|
te("重新加载")
|
|
4977
4977
|
])),
|
|
4978
4978
|
_: 1
|
|
4979
4979
|
})
|
|
4980
4980
|
]),
|
|
4981
|
-
|
|
4981
|
+
P("li", null, [
|
|
4982
4982
|
w(f, {
|
|
4983
4983
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
4984
4984
|
}, {
|
|
4985
|
-
default:
|
|
4985
|
+
default: R(() => t[7] || (t[7] = [
|
|
4986
4986
|
te("关闭所有")
|
|
4987
4987
|
])),
|
|
4988
4988
|
_: 1
|
|
4989
4989
|
})
|
|
4990
4990
|
]),
|
|
4991
|
-
|
|
4991
|
+
P("li", null, [
|
|
4992
4992
|
w(f, {
|
|
4993
4993
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
4994
4994
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
4995
4995
|
}, {
|
|
4996
|
-
default:
|
|
4996
|
+
default: R(() => t[8] || (t[8] = [
|
|
4997
4997
|
te("关闭左边")
|
|
4998
4998
|
])),
|
|
4999
4999
|
_: 1
|
|
5000
5000
|
}, 8, ["disabled"])
|
|
5001
5001
|
]),
|
|
5002
|
-
|
|
5002
|
+
P("li", null, [
|
|
5003
5003
|
w(f, {
|
|
5004
5004
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
5005
5005
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
5006
5006
|
}, {
|
|
5007
|
-
default:
|
|
5007
|
+
default: R(() => t[9] || (t[9] = [
|
|
5008
5008
|
te("关闭右边")
|
|
5009
5009
|
])),
|
|
5010
5010
|
_: 1
|
|
5011
5011
|
}, 8, ["disabled"])
|
|
5012
5012
|
]),
|
|
5013
|
-
|
|
5013
|
+
P("li", null, [
|
|
5014
5014
|
w(f, {
|
|
5015
5015
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
5016
5016
|
}, {
|
|
5017
|
-
default:
|
|
5017
|
+
default: R(() => t[10] || (t[10] = [
|
|
5018
5018
|
te("关闭其他")
|
|
5019
5019
|
])),
|
|
5020
5020
|
_: 1
|
|
@@ -5087,18 +5087,18 @@ function Oc(e, t, n, r, a, s) {
|
|
|
5087
5087
|
key: u.name,
|
|
5088
5088
|
index: u.name
|
|
5089
5089
|
}, {
|
|
5090
|
-
title:
|
|
5091
|
-
|
|
5090
|
+
title: R(() => [
|
|
5091
|
+
P("div", Ac, [
|
|
5092
5092
|
u.meta.icon ? (U(), J(o, {
|
|
5093
5093
|
key: 0,
|
|
5094
5094
|
type: u.meta.icon,
|
|
5095
5095
|
size: "16"
|
|
5096
|
-
}, null, 8, ["type"])) :
|
|
5097
|
-
!u.meta.icon && n.collapse ? (U(), Q("span", yc, ne(u.meta.short || u.meta.title), 1)) :
|
|
5096
|
+
}, null, 8, ["type"])) : fe("", !0),
|
|
5097
|
+
!u.meta.icon && n.collapse ? (U(), Q("span", yc, ne(u.meta.short || u.meta.title), 1)) : fe("", !0)
|
|
5098
5098
|
]),
|
|
5099
|
-
|
|
5099
|
+
P("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5100
5100
|
]),
|
|
5101
|
-
default:
|
|
5101
|
+
default: R(() => [
|
|
5102
5102
|
w(i, {
|
|
5103
5103
|
appData: n.appData,
|
|
5104
5104
|
menuData: u.children,
|
|
@@ -5112,16 +5112,16 @@ function Oc(e, t, n, r, a, s) {
|
|
|
5112
5112
|
key: "b" + u.name,
|
|
5113
5113
|
onClick: (m) => s.handleOpenMenu(u)
|
|
5114
5114
|
}, {
|
|
5115
|
-
title:
|
|
5115
|
+
title: R(() => [
|
|
5116
5116
|
te(ne(u.meta.short || u.meta.title), 1)
|
|
5117
5117
|
]),
|
|
5118
|
-
default:
|
|
5118
|
+
default: R(() => [
|
|
5119
5119
|
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Nc, ne(u.meta.short || u.meta.title), 1)) : (U(), Q("div", Tc, [
|
|
5120
5120
|
u.meta.icon ? (U(), J(o, {
|
|
5121
5121
|
key: 0,
|
|
5122
5122
|
type: u.meta.icon,
|
|
5123
5123
|
size: "16"
|
|
5124
|
-
}, null, 8, ["type"])) :
|
|
5124
|
+
}, null, 8, ["type"])) : fe("", !0)
|
|
5125
5125
|
])),
|
|
5126
5126
|
u.meta.badge && s.currBadge(u.meta.badge) ? (U(), Q(he, { key: 2 }, [
|
|
5127
5127
|
s.currBadge(u.meta.badge) > 0 ? (U(), J(c, {
|
|
@@ -5131,12 +5131,12 @@ function Oc(e, t, n, r, a, s) {
|
|
|
5131
5131
|
max: 999,
|
|
5132
5132
|
value: s.currBadge(u.meta.badge),
|
|
5133
5133
|
style: Dn(s.badgeStyle)
|
|
5134
|
-
}, null, 8, ["value", "style"])) :
|
|
5135
|
-
], 64)) :
|
|
5134
|
+
}, null, 8, ["value", "style"])) : fe("", !0)
|
|
5135
|
+
], 64)) : fe("", !0)
|
|
5136
5136
|
]),
|
|
5137
5137
|
_: 2
|
|
5138
5138
|
}, 1032, ["index", "onClick"]))
|
|
5139
|
-
], 64)) :
|
|
5139
|
+
], 64)) : fe("", !0)
|
|
5140
5140
|
], 64))), 256);
|
|
5141
5141
|
}
|
|
5142
5142
|
const Ic = /* @__PURE__ */ Re(vc, [["render", Oc]]), Cc = {
|
|
@@ -5187,8 +5187,8 @@ const Ic = /* @__PURE__ */ Re(vc, [["render", Oc]]), Cc = {
|
|
|
5187
5187
|
function Rc(e, t, n, r, a, s) {
|
|
5188
5188
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
5189
5189
|
return U(), Q("div", Lc, [
|
|
5190
|
-
|
|
5191
|
-
|
|
5190
|
+
P("div", wc, ne(e.openProductInfo.info_title), 1),
|
|
5191
|
+
P("div", Dc, [
|
|
5192
5192
|
w(i, {
|
|
5193
5193
|
collapse: n.collapse,
|
|
5194
5194
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -5196,7 +5196,7 @@ function Rc(e, t, n, r, a, s) {
|
|
|
5196
5196
|
onOpen: s.handleOpen,
|
|
5197
5197
|
onClose: s.handleClose
|
|
5198
5198
|
}, {
|
|
5199
|
-
default:
|
|
5199
|
+
default: R(() => [
|
|
5200
5200
|
w(o, {
|
|
5201
5201
|
appData: e.openProductInfo,
|
|
5202
5202
|
menuData: a.menuCurrList,
|
|
@@ -5219,7 +5219,13 @@ const kc = /* @__PURE__ */ Re(Cc, [["render", Rc]]), Pc = {
|
|
|
5219
5219
|
data() {
|
|
5220
5220
|
return {
|
|
5221
5221
|
visible: !1,
|
|
5222
|
-
formData: {}
|
|
5222
|
+
formData: {},
|
|
5223
|
+
//校验规则
|
|
5224
|
+
formRules: {
|
|
5225
|
+
old_pwd: [{ required: !0, message: "请输入旧密码" }],
|
|
5226
|
+
new_pwd1: [{ required: !0, message: "请输入新密码" }],
|
|
5227
|
+
new_pwd2: [{ required: !0, message: "请重新输入新密码" }]
|
|
5228
|
+
}
|
|
5223
5229
|
};
|
|
5224
5230
|
},
|
|
5225
5231
|
watch: {
|
|
@@ -5246,6 +5252,8 @@ const kc = /* @__PURE__ */ Re(Cc, [["render", Rc]]), Pc = {
|
|
|
5246
5252
|
});
|
|
5247
5253
|
},
|
|
5248
5254
|
handleBeforeOk() {
|
|
5255
|
+
if (this.formData.new_pwd1 !== this.formData.new_pwd2)
|
|
5256
|
+
return this.$message.error("两次密码不一致"), !1;
|
|
5249
5257
|
this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD", this.formData).then((e) => {
|
|
5250
5258
|
this.$confirm("修改成功,请重新登录", "重新登录", {
|
|
5251
5259
|
confirmButtonText: "确定",
|
|
@@ -5269,10 +5277,10 @@ function Mc(e, t, n, r, a, s) {
|
|
|
5269
5277
|
title: "修改密码",
|
|
5270
5278
|
onClose: s.handleCancel
|
|
5271
5279
|
}, {
|
|
5272
|
-
footer:
|
|
5273
|
-
|
|
5280
|
+
footer: R(() => [
|
|
5281
|
+
P("div", Fc, [
|
|
5274
5282
|
w(c, { onClick: s.handleCancel }, {
|
|
5275
|
-
default:
|
|
5283
|
+
default: R(() => t[4] || (t[4] = [
|
|
5276
5284
|
te("取 消")
|
|
5277
5285
|
])),
|
|
5278
5286
|
_: 1
|
|
@@ -5281,24 +5289,24 @@ function Mc(e, t, n, r, a, s) {
|
|
|
5281
5289
|
type: "primary",
|
|
5282
5290
|
onClick: s.handleBeforeOk
|
|
5283
5291
|
}, {
|
|
5284
|
-
default:
|
|
5292
|
+
default: R(() => t[5] || (t[5] = [
|
|
5285
5293
|
te("确 定")
|
|
5286
5294
|
])),
|
|
5287
5295
|
_: 1
|
|
5288
5296
|
}, 8, ["onClick"])
|
|
5289
5297
|
])
|
|
5290
5298
|
]),
|
|
5291
|
-
default:
|
|
5299
|
+
default: R(() => [
|
|
5292
5300
|
w(l, {
|
|
5293
5301
|
model: a.formData,
|
|
5294
5302
|
"label-width": "auto"
|
|
5295
5303
|
}, {
|
|
5296
|
-
default:
|
|
5304
|
+
default: R(() => [
|
|
5297
5305
|
w(i, {
|
|
5298
5306
|
prop: "old_pwd",
|
|
5299
5307
|
label: "原密码"
|
|
5300
5308
|
}, {
|
|
5301
|
-
default:
|
|
5309
|
+
default: R(() => [
|
|
5302
5310
|
w(o, {
|
|
5303
5311
|
type: "password",
|
|
5304
5312
|
"show-password": "",
|
|
@@ -5312,7 +5320,7 @@ function Mc(e, t, n, r, a, s) {
|
|
|
5312
5320
|
prop: "new_pwd1",
|
|
5313
5321
|
label: "新密码"
|
|
5314
5322
|
}, {
|
|
5315
|
-
default:
|
|
5323
|
+
default: R(() => [
|
|
5316
5324
|
w(o, {
|
|
5317
5325
|
type: "password",
|
|
5318
5326
|
"show-password": "",
|
|
@@ -5326,7 +5334,7 @@ function Mc(e, t, n, r, a, s) {
|
|
|
5326
5334
|
prop: "new_pwd2",
|
|
5327
5335
|
label: "确认密码"
|
|
5328
5336
|
}, {
|
|
5329
|
-
default:
|
|
5337
|
+
default: R(() => [
|
|
5330
5338
|
w(o, {
|
|
5331
5339
|
type: "password",
|
|
5332
5340
|
"show-password": "",
|
|
@@ -5431,17 +5439,17 @@ const Uc = /* @__PURE__ */ Re(Pc, [["render", Mc]]), Bc = {
|
|
|
5431
5439
|
function eu(e, t, n, r, a, s) {
|
|
5432
5440
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
5433
5441
|
return U(), Q("div", xc, [
|
|
5434
|
-
|
|
5435
|
-
|
|
5442
|
+
P("div", Vc, [
|
|
5443
|
+
P("div", {
|
|
5436
5444
|
class: "cloud-login-change-reset",
|
|
5437
5445
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
5438
5446
|
}, ne(n.reselectTitle), 1),
|
|
5439
|
-
t[3] || (t[3] =
|
|
5440
|
-
t[4] || (t[4] =
|
|
5441
|
-
|
|
5442
|
-
|
|
5447
|
+
t[3] || (t[3] = P("div", { class: "cloud-login-change-title" }, "选择商户", -1)),
|
|
5448
|
+
t[4] || (t[4] = P("div", { class: "cloud-login-change-desc" }, [
|
|
5449
|
+
P("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
5450
|
+
P("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
5443
5451
|
], -1)),
|
|
5444
|
-
|
|
5452
|
+
P("div", Gc, [
|
|
5445
5453
|
w(o, {
|
|
5446
5454
|
modelValue: a.chainKeyword,
|
|
5447
5455
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -5455,37 +5463,37 @@ function eu(e, t, n, r, a, s) {
|
|
|
5455
5463
|
size: "large",
|
|
5456
5464
|
onClick: s.handleSearch
|
|
5457
5465
|
}, {
|
|
5458
|
-
default:
|
|
5466
|
+
default: R(() => t[2] || (t[2] = [
|
|
5459
5467
|
te("搜索")
|
|
5460
5468
|
])),
|
|
5461
5469
|
_: 1
|
|
5462
5470
|
}, 8, ["onClick"])
|
|
5463
5471
|
]),
|
|
5464
|
-
|
|
5465
|
-
|
|
5472
|
+
P("div", $c, [
|
|
5473
|
+
P("div", Wc, [
|
|
5466
5474
|
(U(!0), Q(he, null, Xe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
5467
5475
|
class: "cloud-login-change-group-item",
|
|
5468
5476
|
key: f
|
|
5469
5477
|
}, [
|
|
5470
|
-
|
|
5471
|
-
|
|
5478
|
+
P("div", Yc, ne(c.title || "无") + "(" + ne(c.total) + ")", 1),
|
|
5479
|
+
P("div", Hc, [
|
|
5472
5480
|
(U(!0), Q(he, null, Xe(c.list, (u, m) => (U(), Q("div", {
|
|
5473
5481
|
class: "cloud-login-change-item-bao",
|
|
5474
5482
|
key: m,
|
|
5475
5483
|
onClick: (p) => s.chainSelection(u)
|
|
5476
5484
|
}, [
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5485
|
+
P("div", jc, [
|
|
5486
|
+
P("div", qc, [
|
|
5487
|
+
P("img", {
|
|
5480
5488
|
src: u.business_icon_cdn
|
|
5481
5489
|
}, null, 8, Xc)
|
|
5482
5490
|
])
|
|
5483
5491
|
]),
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5492
|
+
P("div", Qc, [
|
|
5493
|
+
P("div", Jc, ne(u.business_name), 1),
|
|
5494
|
+
P("div", zc, "【" + ne(u.acc_rules_type_str) + "】", 1)
|
|
5487
5495
|
]),
|
|
5488
|
-
|
|
5496
|
+
P("div", Zc, [
|
|
5489
5497
|
w(l, { type: "ElIconArrowRight" })
|
|
5490
5498
|
])
|
|
5491
5499
|
], 8, Kc))), 128))
|
|
@@ -5625,7 +5633,7 @@ const tu = /* @__PURE__ */ Re(Bc, [["render", eu]]), nu = {
|
|
|
5625
5633
|
},
|
|
5626
5634
|
chainSelection(e) {
|
|
5627
5635
|
let t = "";
|
|
5628
|
-
e.
|
|
5636
|
+
e.acc_rules_type == "sy-org-admin" ? t = "OrgAdminPwdLogin" : e.acc_rules_type == "sy-org-staff" && (t = "OrgStaffPwdLogin"), this.$request.flagPost("ORG_SYS_BASE_CHANGE", {
|
|
5629
5637
|
handleType: t,
|
|
5630
5638
|
business_id: e.business_id || 0
|
|
5631
5639
|
}).then(async (n) => {
|
|
@@ -5651,18 +5659,18 @@ const tu = /* @__PURE__ */ Re(Bc, [["render", eu]]), nu = {
|
|
|
5651
5659
|
function pu(e, t, n, r, a, s) {
|
|
5652
5660
|
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), A = B("SameRouteView"), E = B("HeaderSysSettDrawer"), C = B("ChangePassword"), h = B("SwitchBusiness");
|
|
5653
5661
|
return U(), Q("div", ru, [
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5662
|
+
P("header", au, [
|
|
5663
|
+
P("div", su, [
|
|
5664
|
+
P("a", ou, [
|
|
5665
|
+
P("img", {
|
|
5658
5666
|
class: "cloud-header__logo-img",
|
|
5659
5667
|
src: e.openCaseInfo.platinfo_logo,
|
|
5660
5668
|
alt: ""
|
|
5661
5669
|
}, null, 8, iu)
|
|
5662
5670
|
]),
|
|
5663
|
-
|
|
5671
|
+
P("div", lu, ne(e.openCaseInfo.platinfo_title), 1)
|
|
5664
5672
|
]),
|
|
5665
|
-
|
|
5673
|
+
P("div", {
|
|
5666
5674
|
class: "cloud-header__opt",
|
|
5667
5675
|
onClick: t[0] || (t[0] = (...g) => s.frameSwicthMenu && s.frameSwicthMenu(...g))
|
|
5668
5676
|
}, [
|
|
@@ -5670,14 +5678,14 @@ function pu(e, t, n, r, a, s) {
|
|
|
5670
5678
|
key: 0,
|
|
5671
5679
|
type: "ElIconFold",
|
|
5672
5680
|
size: "20"
|
|
5673
|
-
})) :
|
|
5681
|
+
})) : fe("", !0),
|
|
5674
5682
|
a.frameSidebarOpen == "off" ? (U(), J(o, {
|
|
5675
5683
|
key: 1,
|
|
5676
5684
|
type: "ElIconExpand",
|
|
5677
5685
|
size: "20"
|
|
5678
|
-
})) :
|
|
5686
|
+
})) : fe("", !0)
|
|
5679
5687
|
]),
|
|
5680
|
-
|
|
5688
|
+
P("div", {
|
|
5681
5689
|
class: "cloud-header__opt",
|
|
5682
5690
|
onClick: t[1] || (t[1] = (...g) => s.framePageRefresh && s.framePageRefresh(...g))
|
|
5683
5691
|
}, [
|
|
@@ -5686,15 +5694,15 @@ function pu(e, t, n, r, a, s) {
|
|
|
5686
5694
|
size: "20"
|
|
5687
5695
|
})
|
|
5688
5696
|
]),
|
|
5689
|
-
|
|
5697
|
+
P("div", cu, [
|
|
5690
5698
|
w(l, { separator: "/" }, {
|
|
5691
|
-
default:
|
|
5699
|
+
default: R(() => [
|
|
5692
5700
|
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
5693
5701
|
N == a.breadcrumbPath.length - 1 || !g.path || g.path == "" ? (U(), J(i, {
|
|
5694
5702
|
key: N,
|
|
5695
5703
|
class: "no-redirect"
|
|
5696
5704
|
}, {
|
|
5697
|
-
default:
|
|
5705
|
+
default: R(() => [
|
|
5698
5706
|
te(ne(g.title), 1)
|
|
5699
5707
|
]),
|
|
5700
5708
|
_: 2
|
|
@@ -5702,7 +5710,7 @@ function pu(e, t, n, r, a, s) {
|
|
|
5702
5710
|
key: "b" + N,
|
|
5703
5711
|
to: { path: g.path }
|
|
5704
5712
|
}, {
|
|
5705
|
-
default:
|
|
5713
|
+
default: R(() => [
|
|
5706
5714
|
te(ne(g.title), 1)
|
|
5707
5715
|
]),
|
|
5708
5716
|
_: 2
|
|
@@ -5712,8 +5720,8 @@ function pu(e, t, n, r, a, s) {
|
|
|
5712
5720
|
_: 1
|
|
5713
5721
|
})
|
|
5714
5722
|
]),
|
|
5715
|
-
t[13] || (t[13] =
|
|
5716
|
-
|
|
5723
|
+
t[13] || (t[13] = P("div", { class: "cloud-header__seat" }, null, -1)),
|
|
5724
|
+
P("div", {
|
|
5717
5725
|
class: "cloud-header__opt chopt-relative",
|
|
5718
5726
|
onClick: t[2] || (t[2] = (g) => s.frameHandleCommand("msg"))
|
|
5719
5727
|
}, [
|
|
@@ -5721,9 +5729,9 @@ function pu(e, t, n, r, a, s) {
|
|
|
5721
5729
|
type: "ElIconChatLineRound",
|
|
5722
5730
|
size: "20"
|
|
5723
5731
|
}),
|
|
5724
|
-
a.chatUnreadTotal > 0 ? (U(), Q("em", uu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) :
|
|
5732
|
+
a.chatUnreadTotal > 0 ? (U(), Q("em", uu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : fe("", !0)
|
|
5725
5733
|
]),
|
|
5726
|
-
|
|
5734
|
+
P("div", {
|
|
5727
5735
|
class: "cloud-header__opt chopt-relative",
|
|
5728
5736
|
onClick: t[3] || (t[3] = (g) => s.frameHandleCommand("gongdan"))
|
|
5729
5737
|
}, [
|
|
@@ -5731,18 +5739,18 @@ function pu(e, t, n, r, a, s) {
|
|
|
5731
5739
|
type: "ElIconMessage",
|
|
5732
5740
|
size: "20"
|
|
5733
5741
|
}),
|
|
5734
|
-
a.emailUnreadTotal > 0 ? (U(), Q("em", fu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) :
|
|
5742
|
+
a.emailUnreadTotal > 0 ? (U(), Q("em", fu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : fe("", !0)
|
|
5735
5743
|
]),
|
|
5736
|
-
|
|
5744
|
+
P("div", _u, [
|
|
5737
5745
|
w(u, {
|
|
5738
5746
|
onCommand: s.frameHandleCommand,
|
|
5739
5747
|
"popper-class": "cloud-header__info_dropdown"
|
|
5740
5748
|
}, {
|
|
5741
|
-
dropdown:
|
|
5749
|
+
dropdown: R(() => [
|
|
5742
5750
|
w(f, null, {
|
|
5743
|
-
default:
|
|
5751
|
+
default: R(() => [
|
|
5744
5752
|
w(c, { command: "account_change" }, {
|
|
5745
|
-
default:
|
|
5753
|
+
default: R(() => [
|
|
5746
5754
|
w(o, {
|
|
5747
5755
|
type: "cvSvgPeopleSwitch",
|
|
5748
5756
|
size: "15"
|
|
@@ -5752,7 +5760,7 @@ function pu(e, t, n, r, a, s) {
|
|
|
5752
5760
|
_: 1
|
|
5753
5761
|
}),
|
|
5754
5762
|
w(c, { command: "account_chgpwd" }, {
|
|
5755
|
-
default:
|
|
5763
|
+
default: R(() => [
|
|
5756
5764
|
w(o, {
|
|
5757
5765
|
type: "cvSvgBaseLockOff",
|
|
5758
5766
|
size: "15"
|
|
@@ -5765,7 +5773,7 @@ function pu(e, t, n, r, a, s) {
|
|
|
5765
5773
|
command: "clearCache",
|
|
5766
5774
|
divided: ""
|
|
5767
5775
|
}, {
|
|
5768
|
-
default:
|
|
5776
|
+
default: R(() => [
|
|
5769
5777
|
w(o, {
|
|
5770
5778
|
type: "ElIconDelete",
|
|
5771
5779
|
size: "15"
|
|
@@ -5775,7 +5783,7 @@ function pu(e, t, n, r, a, s) {
|
|
|
5775
5783
|
_: 1
|
|
5776
5784
|
}),
|
|
5777
5785
|
w(c, { command: "logout" }, {
|
|
5778
|
-
default:
|
|
5786
|
+
default: R(() => [
|
|
5779
5787
|
w(o, {
|
|
5780
5788
|
type: "cvSvgArrowExportRight",
|
|
5781
5789
|
size: "14"
|
|
@@ -5788,27 +5796,27 @@ function pu(e, t, n, r, a, s) {
|
|
|
5788
5796
|
_: 1
|
|
5789
5797
|
})
|
|
5790
5798
|
]),
|
|
5791
|
-
default:
|
|
5792
|
-
|
|
5793
|
-
|
|
5799
|
+
default: R(() => [
|
|
5800
|
+
P("span", null, [
|
|
5801
|
+
P("img", {
|
|
5794
5802
|
class: "chinfo-avatar",
|
|
5795
5803
|
src: e.accountInfo.account_avatar_cdn,
|
|
5796
5804
|
title: "头像"
|
|
5797
5805
|
}, null, 8, du),
|
|
5798
|
-
|
|
5806
|
+
P("div", mu, ne(s.headerInfoName), 1),
|
|
5799
5807
|
w(o, { type: "ElIconArrowDown" })
|
|
5800
5808
|
])
|
|
5801
5809
|
]),
|
|
5802
5810
|
_: 1
|
|
5803
5811
|
}, 8, ["onCommand"])
|
|
5804
5812
|
]),
|
|
5805
|
-
|
|
5813
|
+
P("div", {
|
|
5806
5814
|
title: "全屏",
|
|
5807
5815
|
class: "cloud-header__opt",
|
|
5808
5816
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
5809
5817
|
style: { "min-width": "50px" }
|
|
5810
5818
|
}, [
|
|
5811
|
-
a.full_screen ?
|
|
5819
|
+
a.full_screen ? fe("", !0) : (U(), J(o, {
|
|
5812
5820
|
key: 0,
|
|
5813
5821
|
type: "cvSvgArrowScreenUnfold",
|
|
5814
5822
|
size: "20"
|
|
@@ -5817,9 +5825,9 @@ function pu(e, t, n, r, a, s) {
|
|
|
5817
5825
|
key: 1,
|
|
5818
5826
|
type: "cvSvgArrowScreenFold",
|
|
5819
5827
|
size: "20"
|
|
5820
|
-
})) :
|
|
5828
|
+
})) : fe("", !0)
|
|
5821
5829
|
]),
|
|
5822
|
-
|
|
5830
|
+
P("div", {
|
|
5823
5831
|
title: "设置",
|
|
5824
5832
|
class: "cloud-header__opt",
|
|
5825
5833
|
onClick: t[5] || (t[5] = (...g) => s.frameTopSysSettOpen && s.frameTopSysSettOpen(...g)),
|
|
@@ -5831,12 +5839,12 @@ function pu(e, t, n, r, a, s) {
|
|
|
5831
5839
|
})
|
|
5832
5840
|
])
|
|
5833
5841
|
]),
|
|
5834
|
-
|
|
5842
|
+
P("section", hu, [
|
|
5835
5843
|
w(m, {
|
|
5836
5844
|
collapse: a.frameSidebarOpen == "off"
|
|
5837
5845
|
}, null, 8, ["collapse"])
|
|
5838
5846
|
]),
|
|
5839
|
-
|
|
5847
|
+
P("section", gu, [
|
|
5840
5848
|
Na(w(p, null, null, 512), [
|
|
5841
5849
|
[Ta, e.layoutNavTabs == "on"]
|
|
5842
5850
|
]),
|
|
@@ -5858,7 +5866,7 @@ function pu(e, t, n, r, a, s) {
|
|
|
5858
5866
|
onReselectFunc: s.chainReselection,
|
|
5859
5867
|
onSelectFunc: s.chainSelection,
|
|
5860
5868
|
style: { background: "#fff", "z-index": "1005" }
|
|
5861
|
-
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) :
|
|
5869
|
+
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : fe("", !0)
|
|
5862
5870
|
]);
|
|
5863
5871
|
}
|
|
5864
5872
|
const Kf = /* @__PURE__ */ Re(nu, [["render", pu]]), Eu = {
|
|
@@ -5890,7 +5898,7 @@ const Kf = /* @__PURE__ */ Re(nu, [["render", pu]]), Eu = {
|
|
|
5890
5898
|
function bu(e, t, n, r, a, s) {
|
|
5891
5899
|
const o = B("el-watermark");
|
|
5892
5900
|
return U(), J(o, Ys(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5893
|
-
default:
|
|
5901
|
+
default: R(() => [
|
|
5894
5902
|
Hs(e.$slots, "default")
|
|
5895
5903
|
]),
|
|
5896
5904
|
_: 3
|
|
@@ -6041,10 +6049,10 @@ function Au() {
|
|
|
6041
6049
|
return;
|
|
6042
6050
|
}
|
|
6043
6051
|
}
|
|
6044
|
-
var
|
|
6052
|
+
var ft = Au();
|
|
6045
6053
|
function yu() {
|
|
6046
6054
|
try {
|
|
6047
|
-
if (!
|
|
6055
|
+
if (!ft || !ft.open)
|
|
6048
6056
|
return !1;
|
|
6049
6057
|
var e = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), t = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
6050
6058
|
return (!e || t) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
@@ -6145,7 +6153,7 @@ function _s(e, t) {
|
|
|
6145
6153
|
return n(e.db);
|
|
6146
6154
|
var a = [e.name];
|
|
6147
6155
|
t && a.push(e.version);
|
|
6148
|
-
var s =
|
|
6156
|
+
var s = ft.open.apply(ft, a);
|
|
6149
6157
|
t && (s.onupgradeneeded = function(o) {
|
|
6150
6158
|
var i = s.result;
|
|
6151
6159
|
try {
|
|
@@ -6540,7 +6548,7 @@ function Vu(e, t) {
|
|
|
6540
6548
|
p._dbInfo.db = null, p._dbInfo.version = l;
|
|
6541
6549
|
}
|
|
6542
6550
|
return new F((m, p) => {
|
|
6543
|
-
const A =
|
|
6551
|
+
const A = ft.open(e.name, l);
|
|
6544
6552
|
A.onerror = (E) => {
|
|
6545
6553
|
A.result.close(), p(E);
|
|
6546
6554
|
}, A.onupgradeneeded = () => {
|
|
@@ -6569,7 +6577,7 @@ function Vu(e, t) {
|
|
|
6569
6577
|
m._dbInfo.db = null;
|
|
6570
6578
|
}
|
|
6571
6579
|
return new F((m, p) => {
|
|
6572
|
-
var A =
|
|
6580
|
+
var A = ft.deleteDatabase(e.name);
|
|
6573
6581
|
A.onerror = () => {
|
|
6574
6582
|
const E = A.result;
|
|
6575
6583
|
E && E.close(), p(A.error);
|
|
@@ -7228,7 +7236,7 @@ const bf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7228
7236
|
return !1;
|
|
7229
7237
|
}, ws = Array.isArray || function(e) {
|
|
7230
7238
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7231
|
-
},
|
|
7239
|
+
}, yt = {}, Ea = {}, it = {
|
|
7232
7240
|
INDEXEDDB: Gu,
|
|
7233
7241
|
WEBSQL: rf,
|
|
7234
7242
|
LOCALSTORAGE: Ef
|
|
@@ -7280,7 +7288,7 @@ class Er {
|
|
|
7280
7288
|
for (let n in it)
|
|
7281
7289
|
if (it.hasOwnProperty(n)) {
|
|
7282
7290
|
const r = it[n], a = r._driver;
|
|
7283
|
-
this[n] = a,
|
|
7291
|
+
this[n] = a, yt[a] || this.defineDriver(r);
|
|
7284
7292
|
}
|
|
7285
7293
|
this._defaultConfig = Ln({}, Af), this._config = Ln({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
7286
7294
|
});
|
|
@@ -7346,7 +7354,7 @@ class Er {
|
|
|
7346
7354
|
}
|
|
7347
7355
|
})();
|
|
7348
7356
|
const u = function(m) {
|
|
7349
|
-
|
|
7357
|
+
yt[i], yt[i] = t, Ea[i] = m, s();
|
|
7350
7358
|
};
|
|
7351
7359
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, o) : u(!!t._support) : u(!0);
|
|
7352
7360
|
} catch (i) {
|
|
@@ -7359,7 +7367,7 @@ class Er {
|
|
|
7359
7367
|
return this._driver || null;
|
|
7360
7368
|
}
|
|
7361
7369
|
getDriver(t, n, r) {
|
|
7362
|
-
const a =
|
|
7370
|
+
const a = yt[t] ? F.resolve(yt[t]) : F.reject(new Error("Driver not found."));
|
|
7363
7371
|
return ot(a, n, r), a;
|
|
7364
7372
|
}
|
|
7365
7373
|
getSerializer(t) {
|
|
@@ -7539,7 +7547,7 @@ class Tf {
|
|
|
7539
7547
|
}
|
|
7540
7548
|
}
|
|
7541
7549
|
}
|
|
7542
|
-
const
|
|
7550
|
+
const D = new vu({
|
|
7543
7551
|
prefix: ""
|
|
7544
7552
|
}), Of = new Nf({
|
|
7545
7553
|
db_name: "ShiyunConsole"
|
|
@@ -7956,13 +7964,15 @@ const Lf = {
|
|
|
7956
7964
|
BASE_LOAD_COMMON_API_CODE: "/base.base_load/common/api_code",
|
|
7957
7965
|
BASE_ACCSYS_COMMON_KEYCLIENT: "/base.account_sys/common/key_client",
|
|
7958
7966
|
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting",
|
|
7959
|
-
BASE_SYS_COMMON_SYS_INFO: "/base.base_sys/common/system_info"
|
|
7967
|
+
BASE_SYS_COMMON_SYS_INFO: "/base.base_sys/common/system_info",
|
|
7968
|
+
SDK_FILE_COMMON_UPLOAD_SIGNATURE: "/sdks.sdk_file/common/upload_signature"
|
|
7960
7969
|
}, wf = {
|
|
7961
7970
|
BASE_LOAD_COMMON_API_FLAG: "app:true;auth:false;",
|
|
7962
7971
|
BASE_LOAD_COMMON_API_AUTH: "app:true;auth:false;",
|
|
7963
7972
|
BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
|
|
7964
7973
|
BASE_ACCSYS_COMMON_KEYCLIENT: "app:true;auth:false;",
|
|
7965
|
-
BASE_SYS_COMMON_PLAT_SETTING: "app:true;auth:false;"
|
|
7974
|
+
BASE_SYS_COMMON_PLAT_SETTING: "app:true;auth:false;",
|
|
7975
|
+
SDK_FILE_COMMON_UPLOAD_SIGNATURE: "app=true,token=true"
|
|
7966
7976
|
};
|
|
7967
7977
|
nn.prototype.resetNetError = function(e) {
|
|
7968
7978
|
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
@@ -7997,7 +8007,7 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
7997
8007
|
};
|
|
7998
8008
|
let qe = null;
|
|
7999
8009
|
function Ds(e = {}) {
|
|
8000
|
-
const t =
|
|
8010
|
+
const t = lt();
|
|
8001
8011
|
qe = new nn({
|
|
8002
8012
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
8003
8013
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
@@ -8006,9 +8016,9 @@ function Ds(e = {}) {
|
|
|
8006
8016
|
syOpenAppProject: t.syAppProjectSign || "",
|
|
8007
8017
|
syOpenAppId: t.syAppConnectId || "",
|
|
8008
8018
|
syOpenAppRole: t.syAppConnectRole || "",
|
|
8009
|
-
syOpenAppToken:
|
|
8019
|
+
syOpenAppToken: D.localGet("syCacheAppToken") || "",
|
|
8010
8020
|
"Sy-Client-Platform": "pc-web",
|
|
8011
|
-
Authorization: "Bearer " +
|
|
8021
|
+
Authorization: "Bearer " + D.localGet("syCacheAppJwt") || ""
|
|
8012
8022
|
},
|
|
8013
8023
|
requests: {
|
|
8014
8024
|
// '__Access-Control-Allow-Origin': true
|
|
@@ -8032,7 +8042,7 @@ function Ds(e = {}) {
|
|
|
8032
8042
|
function Df() {
|
|
8033
8043
|
return qe || (qe = Ds()), qe;
|
|
8034
8044
|
}
|
|
8035
|
-
const
|
|
8045
|
+
const ue = new Proxy(
|
|
8036
8046
|
{},
|
|
8037
8047
|
{
|
|
8038
8048
|
get(e, t) {
|
|
@@ -8105,7 +8115,7 @@ function kf(e, t, n) {
|
|
|
8105
8115
|
mounted: va
|
|
8106
8116
|
}), t.$_auth = fs;
|
|
8107
8117
|
}
|
|
8108
|
-
/*! Element Plus v2.9.
|
|
8118
|
+
/*! Element Plus v2.9.9 */
|
|
8109
8119
|
var Pf = {
|
|
8110
8120
|
name: "zh-cn",
|
|
8111
8121
|
el: {
|
|
@@ -8234,7 +8244,7 @@ var Pf = {
|
|
|
8234
8244
|
close: "关闭此对话框"
|
|
8235
8245
|
},
|
|
8236
8246
|
upload: {
|
|
8237
|
-
deleteTip: "按
|
|
8247
|
+
deleteTip: "按 Delete 键可删除",
|
|
8238
8248
|
delete: "删除",
|
|
8239
8249
|
preview: "查看图片",
|
|
8240
8250
|
continue: "继续上传"
|
|
@@ -8293,24 +8303,54 @@ function Ff(e) {
|
|
|
8293
8303
|
e.component("ElIcon" + t, n);
|
|
8294
8304
|
}
|
|
8295
8305
|
function Mf(e) {
|
|
8306
|
+
const t = lt(), n = {
|
|
8307
|
+
// upAction: lastConfig.VITE_SY_API_URL + 'sdks.sdk_file/common/upload_image',
|
|
8308
|
+
signatureFn: ue.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),
|
|
8309
|
+
upHeaders: {
|
|
8310
|
+
syOpenAppProject: t.syAppProjectSign || "",
|
|
8311
|
+
syOpenAppId: t.syAppConnectId || "",
|
|
8312
|
+
syOpenAppRole: t.syAppConnectRole || "",
|
|
8313
|
+
syOpenAppToken: D.localGet("syCacheAppToken") || "",
|
|
8314
|
+
"Sy-Client-Platform": "pc-web",
|
|
8315
|
+
Authorization: "Bearer " + D.localGet("syCacheAppJwt") || "",
|
|
8316
|
+
"Sy-Response-Type": "json"
|
|
8317
|
+
},
|
|
8318
|
+
// upName: 'file',
|
|
8319
|
+
// upData: {
|
|
8320
|
+
// file_name: 'file'
|
|
8321
|
+
// },
|
|
8322
|
+
upResponseFn(r, a, s) {
|
|
8323
|
+
return r;
|
|
8324
|
+
}
|
|
8325
|
+
};
|
|
8296
8326
|
e.use(Qs, {
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
}).then((r) => {
|
|
8306
|
-
n(r, t);
|
|
8307
|
-
});
|
|
8308
|
-
},
|
|
8309
|
-
// 处理响应结果,需要返回一个 URL给 value
|
|
8310
|
-
upResponseFn(t, n, r) {
|
|
8311
|
-
return t.data && t.data.img_time;
|
|
8312
|
-
}
|
|
8327
|
+
cvCodeSms: {
|
|
8328
|
+
apiFunc: ue.flagPost("SDK_SMS_COMMON_SMS_SEND")
|
|
8329
|
+
},
|
|
8330
|
+
cvUploadImage: {
|
|
8331
|
+
...n
|
|
8332
|
+
},
|
|
8333
|
+
upload: {
|
|
8334
|
+
...n
|
|
8313
8335
|
},
|
|
8336
|
+
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8337
|
+
// uploadImg: {
|
|
8338
|
+
// // fileSize: 5,
|
|
8339
|
+
// file_name: 'file',
|
|
8340
|
+
// upName: 'file',
|
|
8341
|
+
// upProceedFn: (file, call) => {
|
|
8342
|
+
// HttpObj.flagUpload('SDK_FILE_COMMON_UPLOAD_FILE', {
|
|
8343
|
+
// type: 'picture',
|
|
8344
|
+
// file: file
|
|
8345
|
+
// }).then((upRR) => {
|
|
8346
|
+
// call(upRR, file);
|
|
8347
|
+
// });
|
|
8348
|
+
// },
|
|
8349
|
+
// // 处理响应结果,需要返回一个 URL给 value
|
|
8350
|
+
// upResponseFn(response, file, fileList) {
|
|
8351
|
+
// return response.data && response.data.img_time;
|
|
8352
|
+
// }
|
|
8353
|
+
// },
|
|
8314
8354
|
cvEditorQuill: {
|
|
8315
8355
|
// upResponseFn(response, file) {
|
|
8316
8356
|
// return (response.data && response.data.img_cdn) || '';
|
|
@@ -8322,8 +8362,8 @@ function Mf(e) {
|
|
|
8322
8362
|
// }
|
|
8323
8363
|
}
|
|
8324
8364
|
});
|
|
8325
|
-
for (const [
|
|
8326
|
-
e.component("cvSvg" +
|
|
8365
|
+
for (const [r, a] of Object.entries(Js))
|
|
8366
|
+
e.component("cvSvg" + r, a);
|
|
8327
8367
|
}
|
|
8328
8368
|
async function qf(e, t) {
|
|
8329
8369
|
Zs(t), Ds(e), Pt().init(), Be().init(), await fr().init(), await Te().init();
|
|
@@ -8333,14 +8373,14 @@ async function Xf(e, t, n, r, a = "", s = null) {
|
|
|
8333
8373
|
let o = e.config.globalProperties;
|
|
8334
8374
|
o.$onLaunched = new Promise((l) => {
|
|
8335
8375
|
o.$isResolve = l;
|
|
8336
|
-
}), o.$request =
|
|
8376
|
+
}), o.$request = ue, o.$cache = D, Ff(e), Mf(e), kf(e, o), e.mixin(ac()), e.mixin(Rf), await Uf(t, r, a), e.use(os);
|
|
8337
8377
|
let i = Pt().SA_LANGUAGE_GET();
|
|
8338
8378
|
xl(i, s), window.$t = Ke.t;
|
|
8339
8379
|
}
|
|
8340
8380
|
async function Uf(e, t, n) {
|
|
8341
8381
|
const r = Ot(), a = Te(), s = Zt(), o = en();
|
|
8342
8382
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8343
|
-
let i =
|
|
8383
|
+
let i = lt().syProductSign || "";
|
|
8344
8384
|
o.SA_PERMS_ROUTER_ADD(e, i), s.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
8345
8385
|
let l = !1, c = !1, f = !1;
|
|
8346
8386
|
e.beforeEach((u, m, p) => {
|
|
@@ -8373,13 +8413,13 @@ async function Qf(e, t, n) {
|
|
|
8373
8413
|
me.__POWERED_BY_QIANKUN__ ? ro(e, t, n) : t();
|
|
8374
8414
|
}
|
|
8375
8415
|
export {
|
|
8376
|
-
|
|
8416
|
+
ue as H,
|
|
8377
8417
|
tu as S,
|
|
8378
8418
|
Re as _,
|
|
8379
8419
|
Be as a,
|
|
8380
8420
|
Te as b,
|
|
8381
8421
|
fr as c,
|
|
8382
|
-
|
|
8422
|
+
lt as d,
|
|
8383
8423
|
Kf as e,
|
|
8384
8424
|
_c as f,
|
|
8385
8425
|
jf as g,
|
|
@@ -8387,7 +8427,7 @@ export {
|
|
|
8387
8427
|
cs as i,
|
|
8388
8428
|
Zt as j,
|
|
8389
8429
|
en as k,
|
|
8390
|
-
|
|
8430
|
+
D as l,
|
|
8391
8431
|
Ds as m,
|
|
8392
8432
|
qf as n,
|
|
8393
8433
|
Xf as o,
|