@das-fed/web 7.0.7-beta.4 → 7.0.7-beta.5
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/{index-DhWdp0uT.js → index-D6IGKRGu.js} +1 -1
- package/index-D6IGKRGu.js.gz +0 -0
- package/{index-BbnOPBny.js → index-SDsWGps6.js} +9 -4
- package/index-SDsWGps6.js.gz +0 -0
- package/{index-BY9cu8Zg.js → index-bXoyCaGi.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +18 -13
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js.gz +0 -0
- package/index-BbnOPBny.js.gz +0 -0
- package/index-DhWdp0uT.js.gz +0 -0
|
@@ -6,7 +6,7 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as L } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-
|
|
9
|
+
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-SDsWGps6.js";
|
|
10
10
|
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
Binary file
|
|
@@ -97,8 +97,13 @@ const E0 = (n) => {
|
|
|
97
97
|
const t = e.meta || {};
|
|
98
98
|
return t.keepAlive = t.keepAlive ?? (v == null ? void 0 : v.keepAlive) ?? !0, { ...e, meta: t };
|
|
99
99
|
}), I0 = async () => {
|
|
100
|
-
const { baseURL: n = "" } = ee()
|
|
101
|
-
|
|
100
|
+
const { baseURL: n = "" } = ee();
|
|
101
|
+
try {
|
|
102
|
+
const e = await (await fetch(`${n}/oss/resource/front-end/web/_config/config.json`)).json().catch(() => ({})), { disableSaveToken: t = !1 } = e || {};
|
|
103
|
+
window.webConfig = { disableSaveToken: t };
|
|
104
|
+
} catch {
|
|
105
|
+
window.webConfig = { disableSaveToken: !1 };
|
|
106
|
+
}
|
|
102
107
|
}, mZ = (n) => {
|
|
103
108
|
n || (n = {});
|
|
104
109
|
const v = g(!0);
|
|
@@ -18014,11 +18019,11 @@ g("@das-fed/web");
|
|
|
18014
18019
|
const cN = [
|
|
18015
18020
|
{
|
|
18016
18021
|
path: xf,
|
|
18017
|
-
component: () => import("./index-
|
|
18022
|
+
component: () => import("./index-D6IGKRGu.js")
|
|
18018
18023
|
},
|
|
18019
18024
|
{
|
|
18020
18025
|
path: Pd,
|
|
18021
|
-
component: () => import("./index-
|
|
18026
|
+
component: () => import("./index-bXoyCaGi.js")
|
|
18022
18027
|
}
|
|
18023
18028
|
], kZ = {
|
|
18024
18029
|
routes: cN,
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-SDsWGps6.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "7.0.7-beta.
|
|
3
|
+
"version": "7.0.7-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.7-beta.
|
|
8
|
-
"@das-fed/utils": "7.0.7-beta.
|
|
9
|
-
"@das-fed/web": "7.0.7-beta.
|
|
10
|
-
"@das-fed/web-components": "7.0.7-beta.
|
|
7
|
+
"@das-fed/ui": "7.0.7-beta.5",
|
|
8
|
+
"@das-fed/utils": "7.0.7-beta.5",
|
|
9
|
+
"@das-fed/web": "7.0.7-beta.5",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-beta.5",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/cli": "7.0.7-beta.
|
|
22
|
+
"@das-fed/cli": "7.0.7-beta.5",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as v, createApp as w } from "vue";
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
2
|
+
import { initTheme as j } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as x } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as W } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as $ } from "pinia";
|
|
6
|
-
import
|
|
7
|
-
import { createRouter as
|
|
8
|
-
import { getConfig as
|
|
6
|
+
import k from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as y, createWebHistory as O } from "vue-router";
|
|
8
|
+
import { getConfig as P } from "@das-fed/utils/config";
|
|
9
9
|
const C = {
|
|
10
10
|
install: (e, t) => {
|
|
11
11
|
var u;
|
|
@@ -15,11 +15,11 @@ const C = {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}, m = $();
|
|
18
|
-
m.use(
|
|
18
|
+
m.use(k);
|
|
19
19
|
const D = (e) => {
|
|
20
|
-
var
|
|
21
|
-
const t = ((
|
|
22
|
-
let u = Object.assign(((
|
|
20
|
+
var o, d, b, g, h;
|
|
21
|
+
const t = ((o = e == null ? void 0 : e.router) == null ? void 0 : o.routerBase) ?? "/", c = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
|
|
22
|
+
let u = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
|
|
23
23
|
const a = Object.values(u).filter((s) => !!s).flat().sort((s, n) => (s.index ?? 0) - (n.index ?? 0)), l = [];
|
|
24
24
|
(g = e == null ? void 0 : e.microApps) == null || g.map((s) => {
|
|
25
25
|
var A;
|
|
@@ -39,17 +39,22 @@ const D = (e) => {
|
|
|
39
39
|
...i(f, e),
|
|
40
40
|
...i(l, e)
|
|
41
41
|
];
|
|
42
|
-
return { router:
|
|
42
|
+
return { router: y({ history: O(t), routes: p, ...c }) };
|
|
43
43
|
}, i = (e, t) => e.map((c) => {
|
|
44
44
|
const u = c.meta || {};
|
|
45
45
|
return u.keepAlive = u.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: u };
|
|
46
46
|
}), N = async () => {
|
|
47
|
-
const { baseURL: e = "" } =
|
|
48
|
-
|
|
47
|
+
const { baseURL: e = "" } = P();
|
|
48
|
+
try {
|
|
49
|
+
const c = await (await fetch(`${e}/oss/resource/front-end/web/_config/config.json`)).json().catch(() => ({})), { disableSaveToken: u = !1 } = c || {};
|
|
50
|
+
window.webConfig = { disableSaveToken: u };
|
|
51
|
+
} catch {
|
|
52
|
+
window.webConfig = { disableSaveToken: !1 };
|
|
53
|
+
}
|
|
49
54
|
}, _ = (e) => {
|
|
50
55
|
e || (e = {});
|
|
51
56
|
const t = v(!0);
|
|
52
|
-
Promise.all([N(),
|
|
57
|
+
Promise.all([N(), j(e), x(e)]).then(() => {
|
|
53
58
|
t.value = !1;
|
|
54
59
|
});
|
|
55
60
|
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = w(u || W, a);
|
|
Binary file
|
|
Binary file
|
package/index-BbnOPBny.js.gz
DELETED
|
Binary file
|
package/index-DhWdp0uT.js.gz
DELETED
|
Binary file
|