@das-fed/web 7.0.7-hot.35 → 7.0.7-hot.36

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,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-9JwQzCBa.js";
2
+ import { _ as c } from "./index-zBCFw79i.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -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-9JwQzCBa.js";
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-zBCFw79i.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
@@ -794,15 +794,22 @@ const c1 = (n, v) => {
794
794
  }));
795
795
  let O = /* @__PURE__ */ new Map();
796
796
  const N = (T, W) => {
797
+ if (!T) return null;
797
798
  let D;
798
799
  return O.has(W) ? D = O.get(W) : (D = {
799
- name: W,
800
+ name: W.replace(/\//g, "_"),
801
+ // 给组件一个合法且唯一的 name
800
802
  render() {
801
803
  return N9("div", { style: { width: "100%", height: "100%" } }, [N9(T)]);
802
804
  }
803
805
  }, O.set(W, D)), D;
804
806
  };
805
- return (T, W) => {
807
+ return FA(
808
+ () => v.routeKeepAliveVisible,
809
+ (T) => {
810
+ T || O.clear();
811
+ }
812
+ ), (T, W) => {
806
813
  const D = Na("router-view");
807
814
  return cA(), ZA("div", ri, [
808
815
  q9(nA(
@@ -876,11 +883,11 @@ const c1 = (n, v) => {
876
883
  exclude: m.value
877
884
  }, [
878
885
  q.value && !((E = j(e).meta) != null && E.isIframe) ? (cA(), wA(q3(N(y, j(e).path)), {
879
- key: j(e).path
886
+ key: j(e).fullPath
880
887
  })) : mA("v-if", !0)
881
888
  ], 1032, ["exclude"])) : !j(e).meta.keepAlive && !j(e).meta.isIframe ? (cA(), ZA("div", {
882
889
  style: { width: "100%", height: "100%" },
883
- key: j(e).path
890
+ key: j(e).fullPath
884
891
  }, [
885
892
  (cA(), wA(q3(y)))
886
893
  ])) : mA("v-if", !0)
@@ -900,11 +907,11 @@ const c1 = (n, v) => {
900
907
  exclude: m.value
901
908
  }, [
902
909
  q.value && !j(e).meta.isIframe ? (cA(), wA(q3(N(y, j(e).path)), {
903
- key: j(e).path
910
+ key: j(e).fullPath
904
911
  })) : mA("v-if", !0)
905
912
  ], 1032, ["exclude"])) : !j(e).meta.keepAlive && !j(e).meta.isIframe ? (cA(), ZA("div", {
906
913
  style: { width: "100%", height: "100%" },
907
- key: j(e).path
914
+ key: j(e).fullPath
908
915
  }, [
909
916
  (cA(), wA(q3(y)))
910
917
  ])) : mA("v-if", !0)
@@ -953,7 +960,7 @@ const c1 = (n, v) => {
953
960
  ]);
954
961
  };
955
962
  }
956
- }), MZ = /* @__PURE__ */ m9(qi, [["__scopeId", "data-v-409b0736"]]), si = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], kZ = /* @__PURE__ */ SA({
963
+ }), MZ = /* @__PURE__ */ m9(qi, [["__scopeId", "data-v-50d047ed"]]), si = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], kZ = /* @__PURE__ */ SA({
957
964
  __name: "das-web-nav",
958
965
  setup(n) {
959
966
  const { nav: v } = We, e = lA(() => v.theme), t = lA(() => v.logo || ""), u = lA(() => v.activeItem || ""), P = lA(() => (v.items || []).filter((y) => y.fixed)), z = lA(() => (v.items || []).filter((y) => !y.fixed)), b = lA(() => {
@@ -18126,7 +18133,7 @@ g("@das-fed/web");
18126
18133
  const lN = [
18127
18134
  {
18128
18135
  path: ef,
18129
- component: () => import("./index-BNFskqO8.js"),
18136
+ component: () => import("./index-AM3Tb1_e.js"),
18130
18137
  meta: {
18131
18138
  layout: {
18132
18139
  minWidth: "0px"
@@ -18135,7 +18142,7 @@ const lN = [
18135
18142
  },
18136
18143
  {
18137
18144
  path: zd,
18138
- component: () => import("./index-BT3qbm5T.js")
18145
+ component: () => import("./index-6-zaGlHD.js")
18139
18146
  }
18140
18147
  ], YZ = {
18141
18148
  routes: lN,
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-9JwQzCBa.js";
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-zBCFw79i.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-hot.35",
3
+ "version": "7.0.7-hot.36",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "7.0.7-hot.35",
8
- "@das-fed/utils": "7.0.7-hot.35",
9
- "@das-fed/web": "7.0.7-hot.35",
10
- "@das-fed/web-components": "7.0.7-hot.35",
7
+ "@das-fed/ui": "7.0.7-hot.36",
8
+ "@das-fed/utils": "7.0.7-hot.36",
9
+ "@das-fed/web": "7.0.7-hot.36",
10
+ "@das-fed/web-components": "7.0.7-hot.36",
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-hot.35",
22
+ "@das-fed/cli": "7.0.7-hot.36",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",