@jx3box/jx3box-ui 2.3.7 → 2.3.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -39,6 +39,7 @@ import { getMenu } from "../../service/header";
39
39
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
40
40
  import User from "@jx3box/jx3box-common/js/user";
41
41
  import i18nMixin from "../../i18n/mixin";
42
+ import { getConfig } from "../../service/cms";
42
43
  // import manageIcon from "@/assets/img/components/common/header/manage.svg";
43
44
  const { __imgPath } = JX3BOX;
44
45
  const defaultPanel = [
@@ -90,16 +91,22 @@ export default {
90
91
  if (item?.key) return this.$jx3boxT(`jx3boxUi.commonHeader.panel.${item.key}`, item.label || item.key);
91
92
  return item?.label || "";
92
93
  },
93
- loadPanel: function () {
94
+ loadPanel: async function () {
94
95
  try {
95
96
  const panel = JSON.parse(sessionStorage.getItem("panel"));
97
+ let config = await getConfig({ key: "important_notice_url" });
96
98
  if (panel) {
97
99
  this.panel = panel;
98
100
  const item = this.panel?.find((i) => i.meta);
99
101
  this.initMeta(item);
100
102
  } else {
101
103
  getMenu("panel").then((res) => {
102
- this.panel = res.data?.data?.val;
104
+ this.panel = res.data?.data?.val?.map(item => {
105
+ return {
106
+ ...item,
107
+ link: item.remark == 'feature' ? config.val : item.link
108
+ };
109
+ });
103
110
  const item = this.panel?.find((i) => i.meta);
104
111
  this.initMeta(item);
105
112
  sessionStorage.setItem("panel", JSON.stringify(this.panel));