@jx3box/jx3box-common-ui 8.9.2 → 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 +1 -1
- package/src/header/manage.vue +12 -6
package/package.json
CHANGED
package/src/header/manage.vue
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="c-header-panel c-header-manage" id="c-header-manage">
|
|
3
3
|
<span class="u-post u-manage">
|
|
4
|
-
<i class="u-icon u-icon-msg">
|
|
4
|
+
<!-- <i class="u-icon u-icon-msg"> -->
|
|
5
5
|
<i class="u-pop" style="display: none" v-show="showPop"></i>
|
|
6
6
|
<img class="u-add" svg-inline src="../../assets/img/header/manage.svg" />
|
|
7
|
-
</i>
|
|
7
|
+
<!-- </i> -->
|
|
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
|
};
|
|
@@ -144,8 +150,8 @@ export default {
|
|
|
144
150
|
border: 2px solid #24292e;
|
|
145
151
|
border-radius: 50%;
|
|
146
152
|
position: absolute;
|
|
147
|
-
right:
|
|
148
|
-
top:
|
|
153
|
+
right: 4px;
|
|
154
|
+
top: 18px;
|
|
149
155
|
z-index: 1;
|
|
150
156
|
}
|
|
151
157
|
|