@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.
Files changed (33) hide show
  1. package/{packages/main-app-framework/index-csrvxtZY.js → index-3xCfFiyN.js} +1 -1
  2. package/index-3xCfFiyN.js.gz +0 -0
  3. package/{index-B0_oruhN.js → index-BePRIUZj.js} +1 -1
  4. package/{index-E3_VNsYI.js → index-CIytPmSg.js} +15 -16
  5. package/index-CIytPmSg.js.gz +0 -0
  6. package/{index-C2ZSdOo4.js → index-Cp6SD-TQ.js} +2731 -2466
  7. package/index-Cp6SD-TQ.js.gz +0 -0
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/index.js +40 -40
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/layout/index.js +202 -214
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +1 -1
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/{index-BmlzT8Nw.js → index-CXsP6QiJ.js} +1 -1
  17. package/{index-DCv0mp9Q.js → packages/main-app-framework/index-CY7DAPNF.js} +1 -1
  18. package/packages/main-app-framework/index-CY7DAPNF.js.gz +0 -0
  19. package/packages/main-app-framework/{index-DGFe8dVS.js → index-DQRCs8SS.js} +15 -16
  20. package/packages/main-app-framework/index-DQRCs8SS.js.gz +0 -0
  21. package/packages/main-app-framework/{index-BKvL69_g.js → index-DtmpkTTl.js} +2321 -2044
  22. package/packages/main-app-framework/index-DtmpkTTl.js.gz +0 -0
  23. package/packages/main-app-framework/index.js +1 -1
  24. package/packages/micro-frontend/index.js +22 -34
  25. package/packages/micro-frontend/index.js.gz +0 -0
  26. package/style.css +1 -1
  27. package/style.css.gz +0 -0
  28. package/index-C2ZSdOo4.js.gz +0 -0
  29. package/index-DCv0mp9Q.js.gz +0 -0
  30. package/index-E3_VNsYI.js.gz +0 -0
  31. package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
  32. package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
  33. 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-BKvL69_g.js";
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,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-C2ZSdOo4.js";
2
+ import { _ as c } from "./index-Cp6SD-TQ.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -1,14 +1,13 @@
1
- import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
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 $, a as c, c as l, b as x, l as T, d as b } from "./index-C2ZSdOo4.js";
8
- const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
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(q) {
11
- const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
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 (T.innerSet = !0, e.routeUrl) {
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 [i, a] = await L().run({ accessToken: t });
36
- if (a) {
37
- const s = (a == null ? void 0 : a.auth_code) ?? "";
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 i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
- d({ microApp: e, menuCode: a, route: { query: s } });
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 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
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) => (y(), k(p(v), {
53
+ return (o, n) => (_(), k(p(v), {
55
54
  full: "",
56
- spinning: p(x)
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
- G as default
69
+ V as default
71
70
  };
Binary file