@das-fed/web 6.4.0-beta.7 → 6.4.0-dev.10
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/{packages/main-app-framework/index-csrvxtZY.js → index-3xCfFiyN.js} +1 -1
- package/index-3xCfFiyN.js.gz +0 -0
- package/{index-B0_oruhN.js → index-BePRIUZj.js} +1 -1
- package/{index-E3_VNsYI.js → index-CIytPmSg.js} +15 -16
- package/index-CIytPmSg.js.gz +0 -0
- package/{index-C2ZSdOo4.js → index-Cp6SD-TQ.js} +2731 -2466
- package/index-Cp6SD-TQ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +40 -40
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +202 -214
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-BmlzT8Nw.js → index-CXsP6QiJ.js} +1 -1
- package/{index-DCv0mp9Q.js → packages/main-app-framework/index-CY7DAPNF.js} +1 -1
- package/packages/main-app-framework/index-CY7DAPNF.js.gz +0 -0
- package/packages/main-app-framework/{index-DGFe8dVS.js → index-DQRCs8SS.js} +15 -16
- package/packages/main-app-framework/index-DQRCs8SS.js.gz +0 -0
- package/packages/main-app-framework/{index-BKvL69_g.js → index-DtmpkTTl.js} +2321 -2044
- package/packages/main-app-framework/index-DtmpkTTl.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +22 -34
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-C2ZSdOo4.js.gz +0 -0
- package/index-DCv0mp9Q.js.gz +0 -0
- package/index-E3_VNsYI.js.gz +0 -0
- package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
- package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
- package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
|
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
|
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
3
|
import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { layout as C } from "@das-fed/web/packages/layout/index";
|
|
5
|
-
import { I as R, e as L, _ as M } from "./index-
|
|
5
|
+
import { I as R, e as L, _ as M } from "./index-Cp6SD-TQ.js";
|
|
6
6
|
import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
|
|
7
7
|
import { getUrlParams as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
const N = {
|
|
Binary file
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
|
|
2
2
|
import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
3
|
import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
-
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
6
5
|
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index-Cp6SD-TQ.js";
|
|
7
|
+
const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
|
|
9
8
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const { beforeEntryApp: f, entryApp: d } =
|
|
9
|
+
setup(E) {
|
|
10
|
+
const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
|
|
12
11
|
if (!c.value || !c.value.length) return [];
|
|
13
12
|
const o = l(c.value);
|
|
14
13
|
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
@@ -24,7 +23,7 @@ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/
|
|
|
24
23
|
return;
|
|
25
24
|
}
|
|
26
25
|
const e = l(o);
|
|
27
|
-
if (
|
|
26
|
+
if (x.innerSet = !0, e.routeUrl) {
|
|
28
27
|
if (o.code === "Ioc") {
|
|
29
28
|
window.open(e.routeUrl, "_blank");
|
|
30
29
|
return;
|
|
@@ -32,9 +31,9 @@ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/
|
|
|
32
31
|
if (o.code === "wojiacloud") {
|
|
33
32
|
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
34
33
|
if (t) {
|
|
35
|
-
const [
|
|
36
|
-
if (
|
|
37
|
-
const s = (
|
|
34
|
+
const [a, i] = await D().run({ accessToken: t });
|
|
35
|
+
if (i) {
|
|
36
|
+
const s = (i == null ? void 0 : i.auth_code) ?? "";
|
|
38
37
|
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -43,17 +42,17 @@ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/
|
|
|
43
42
|
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
44
43
|
if (r === 1) {
|
|
45
44
|
if (!await f(o)) return;
|
|
46
|
-
const
|
|
47
|
-
d({ microApp: e, menuCode:
|
|
45
|
+
const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
|
|
46
|
+
d({ microApp: e, menuCode: i, route: { query: s } });
|
|
48
47
|
}
|
|
49
48
|
if (r === 2 && e.routeUrl) {
|
|
50
49
|
let t = "";
|
|
51
|
-
u === 1 ?
|
|
50
|
+
u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = L(e.routeUrl)), window.open(t, "_blank");
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
|
-
return (o, n) => (
|
|
53
|
+
return (o, n) => (_(), k(p(v), {
|
|
55
54
|
full: "",
|
|
56
|
-
spinning: p(
|
|
55
|
+
spinning: p($)
|
|
57
56
|
}, {
|
|
58
57
|
default: U(() => [
|
|
59
58
|
A(p(C), {
|
|
@@ -67,5 +66,5 @@ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/
|
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
V as default
|
|
71
70
|
};
|
|
Binary file
|