@jx3box/jx3box-common-ui 8.9.3 → 8.9.4

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-common-ui",
3
- "version": "8.9.3",
3
+ "version": "8.9.4",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  </span>
9
9
  <ul class="u-menu u-pop-content">
10
10
  <li v-for="item in userPanel" :key="item.label">
11
- <a :href="item.link" :target="item.target || '_self'" class="u-menu-item">
11
+ <a :href="item.link" :target="item.target || '_self'" class="u-menu-item" @click="onClick(item)">
12
12
  <img :src="resolveImg(item.icon)" svg-inline class="u-menu-icon" :alt="item.icon" />
13
13
  {{ item.label }}
14
14
  <span v-if="showPop" class="u-new">New!</span>
@@ -89,11 +89,17 @@ export default {
89
89
  const local = localStorage.getItem("jb_panel_meta");
90
90
 
91
91
  if (local) {
92
- this.showPop = item?.meta != local
92
+ this.showPop = item?.meta && item?.meta != local
93
93
  } else {
94
94
  localStorage.setItem("jb_panel_meta", item?.meta);
95
95
  this.showPop = true
96
96
  }
97
+ },
98
+ onClick(item) {
99
+ if (item.meta) {
100
+ localStorage.setItem("jb_panel_meta", item.meta);
101
+ this.showPop = false
102
+ }
97
103
  }
98
104
  },
99
105
  };