@das-fed/web 6.4.0-beta.15.10 → 6.4.0-beta.15.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export declare const RootPath = "/";
1
+ export declare const HomePath = "/home";
2
2
  export declare const ApplicationPath = "/application";
3
3
  export declare const FixedPages: {};
4
4
  export declare const IframePath = "/outerView";
Binary file
package/index-DXgo7XbS.js DELETED
@@ -1,75 +0,0 @@
1
- import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
2
- import { layoutData as I } from "@das-fed/web/packages/layout/index";
3
- import { t as j } from "@das-fed/web/packages/i18n/index";
4
- import { DasAppContainer as D } from "@das-fed/ui/packages/business-components/app-container/index";
5
- import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
6
- import { getTabInfo as x } from "@das-fed/utils/common-info";
7
- import { setShowLayout as T } from "@das-fed/utils/common-tools";
8
- import { createService as b } from "@das-fed/utils/create-api-service";
9
- import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-B-PNux9j.js";
10
- const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
11
- __name: "index",
12
- setup(O) {
13
- const { beforeEntryApp: d, entryApp: m } = E(), g = l(() => !!I.menu.items.length), h = l(() => {
14
- if (!c.value || !c.value.length) return [];
15
- const o = f(c.value);
16
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
17
- }), w = (o, n) => {
18
- const t = [];
19
- for (let r = 0; r < o.length; r += n)
20
- t.push(o.slice(r, r + n));
21
- return t;
22
- }, y = async (o) => {
23
- if (!o) return;
24
- if (!sessionStorage.getItem("projectInfo")) {
25
- window.confirm(j("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
- return;
27
- }
28
- const t = f(o);
29
- if (q.innerSet = !0, t.routeUrl) {
30
- if (o.code === "Ioc") {
31
- window.open(t.routeUrl, "_blank");
32
- return;
33
- }
34
- if (o.code === "wojiacloud") {
35
- const e = sessionStorage.getItem("kingdee_token") || "";
36
- if (e) {
37
- const [i, a] = await N().run({ accessToken: e });
38
- if (a) {
39
- const s = (a == null ? void 0 : a.auth_code) ?? "";
40
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
41
- }
42
- }
43
- }
44
- }
45
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
46
- if (r === 1) {
47
- if (!await d(o)) return;
48
- const i = x().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
49
- m({ microApp: t, menuCode: a, route: { query: s } });
50
- }
51
- if (r === 2 && t.routeUrl) {
52
- let e = "";
53
- u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = T(e)) : u === 2 && (e = B(t.routeUrl)), window.open(e, "_blank");
54
- }
55
- };
56
- return (o, n) => k((v(), A(p($), {
57
- full: "",
58
- spinning: p(L)
59
- }, {
60
- default: U(() => [
61
- C(p(D), {
62
- appCategorys: h.value,
63
- onOpenApp: y
64
- }, null, 8, ["appCategorys"])
65
- ]),
66
- _: 1
67
- /* STABLE */
68
- }, 8, ["spinning"])), [
69
- [S, !g.value]
70
- ]);
71
- }
72
- });
73
- export {
74
- X as default
75
- };
Binary file
@@ -1,75 +0,0 @@
1
- import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
2
- import { layoutData as I } from "@das-fed/web/packages/layout/index";
3
- import { t as j } from "@das-fed/web/packages/i18n/index";
4
- import { DasAppContainer as D } from "@das-fed/ui/packages/business-components/app-container/index";
5
- import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
6
- import { getTabInfo as x } from "@das-fed/utils/common-info";
7
- import { setShowLayout as T } from "@das-fed/utils/common-tools";
8
- import { createService as b } from "@das-fed/utils/create-api-service";
9
- import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-NHFTE4a4.js";
10
- const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
11
- __name: "index",
12
- setup(O) {
13
- const { beforeEntryApp: d, entryApp: m } = E(), g = l(() => !!I.menu.items.length), h = l(() => {
14
- if (!c.value || !c.value.length) return [];
15
- const o = f(c.value);
16
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
17
- }), w = (o, n) => {
18
- const t = [];
19
- for (let r = 0; r < o.length; r += n)
20
- t.push(o.slice(r, r + n));
21
- return t;
22
- }, y = async (o) => {
23
- if (!o) return;
24
- if (!sessionStorage.getItem("projectInfo")) {
25
- window.confirm(j("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
- return;
27
- }
28
- const t = f(o);
29
- if (q.innerSet = !0, t.routeUrl) {
30
- if (o.code === "Ioc") {
31
- window.open(t.routeUrl, "_blank");
32
- return;
33
- }
34
- if (o.code === "wojiacloud") {
35
- const e = sessionStorage.getItem("kingdee_token") || "";
36
- if (e) {
37
- const [i, a] = await N().run({ accessToken: e });
38
- if (a) {
39
- const s = (a == null ? void 0 : a.auth_code) ?? "";
40
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
41
- }
42
- }
43
- }
44
- }
45
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
46
- if (r === 1) {
47
- if (!await d(o)) return;
48
- const i = x().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
49
- m({ microApp: t, menuCode: a, route: { query: s } });
50
- }
51
- if (r === 2 && t.routeUrl) {
52
- let e = "";
53
- u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = T(e)) : u === 2 && (e = B(t.routeUrl)), window.open(e, "_blank");
54
- }
55
- };
56
- return (o, n) => k((v(), A(p($), {
57
- full: "",
58
- spinning: p(L)
59
- }, {
60
- default: U(() => [
61
- C(p(D), {
62
- appCategorys: h.value,
63
- onOpenApp: y
64
- }, null, 8, ["appCategorys"])
65
- ]),
66
- _: 1
67
- /* STABLE */
68
- }, 8, ["spinning"])), [
69
- [S, !g.value]
70
- ]);
71
- }
72
- });
73
- export {
74
- X as default
75
- };