@jx3box/jx3box-common-ui 9.0.31 → 9.0.32

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/Box.vue +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.0.31",
3
+ "version": "9.0.32",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Box.vue CHANGED
@@ -50,7 +50,7 @@
50
50
  import search from "./header/search.vue";
51
51
  import _ from "lodash";
52
52
  import Bus from "../service/bus";
53
- import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
53
+ import { __imgPath, __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
54
54
  import box from "../assets/data/box.json";
55
55
  import { getMenu } from "../service/header.js";
56
56
  import { trimSlash } from "../assets/js/utils";
@@ -92,7 +92,9 @@ export default {
92
92
  return client == "all" ? true : client == this.client;
93
93
  },
94
94
  getBoxIcon: function (val) {
95
- return __imgPath + "image/box/" + val;
95
+ val = val && val?.replace(".png", ".svg");
96
+ let web_url = __cdn + "logo-light/" + val;
97
+ return web_url;
96
98
  },
97
99
  getTarget: function (val) {
98
100
  if (window.innerWidth < 768 || val?.startsWith("/")) {