@vc-shell/framework 1.0.40 → 1.0.41

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 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBA2CE"}
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBA+CE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "main": "./dist/framework.js",
5
5
  "module": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -50,8 +50,8 @@
50
50
  "devDependencies": {
51
51
  "@originjs/vite-plugin-commonjs": "^1.0.3",
52
52
  "@rollup/plugin-commonjs": "^21.0.2",
53
- "@vc-shell/api-client-generator": "^1.0.40",
54
- "@vc-shell/config-generator": "^1.0.40",
53
+ "@vc-shell/api-client-generator": "^1.0.41",
54
+ "@vc-shell/config-generator": "^1.0.41",
55
55
  "@vue-macros/volar": "^0.5.7",
56
56
  "sass": "^1.49.0",
57
57
  "typescript": "^4.6.2",
@@ -67,5 +67,5 @@
67
67
  "access": "public",
68
68
  "registry": "https://registry.npmjs.org/"
69
69
  },
70
- "gitHead": "826168937f288def939c0a249181bc3fcc87d7f2"
70
+ "gitHead": "8d27eda29c90810a82dc3fbfaa42a5b852f6ce4d"
71
71
  }
@@ -22,7 +22,9 @@
22
22
  :key="item.id"
23
23
  @click="switchApp(item)"
24
24
  class="tw-flex tw-flex-row tw-items-center tw-cursor-pointer tw-group"
25
- :class="{ '[&>p]:tw-font-extrabold': locationHandler(item.relativeUrl) }"
25
+ :class="{
26
+ '[&>p]:tw-font-extrabold': locationHandler(item.relativeUrl),
27
+ }"
26
28
  >
27
29
  <img
28
30
  :src="imageUrl(item.iconUrl)"
@@ -60,7 +62,8 @@ const emit = defineEmits<Emits>();
60
62
 
61
63
  const isVisible = ref(false);
62
64
 
63
- const imageUrl = (url: string) => window.location.origin + url;
65
+ const imageUrl = (url: string) =>
66
+ import.meta.env.APP_PLATFORM_URL.replace(/\/+$/, "") + url;
64
67
 
65
68
  const locationHandler = (url: string) => {
66
69
  const cleanUrl = window.location.pathname.replace(/\/+$/, "");