@jx3box/jx3box-common-ui 7.0.9 → 7.1.0
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 +15 -15
package/package.json
CHANGED
package/src/header/manage.vue
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</span>
|
|
6
6
|
<ul class="u-menu u-pop-content">
|
|
7
7
|
<li v-for="item in finalPanel" :key="item.label">
|
|
8
|
-
<a :href="item.link" target="
|
|
8
|
+
<a :href="item.link" :target="item.target || '_self'"
|
|
9
9
|
><i :class="item.icon || 'el-icon-present'"></i> {{ item.label }}</a
|
|
10
10
|
>
|
|
11
11
|
</li>
|
|
@@ -34,8 +34,8 @@ export default {
|
|
|
34
34
|
return {
|
|
35
35
|
panel,
|
|
36
36
|
|
|
37
|
-
isTeamMember: false
|
|
38
|
-
}
|
|
37
|
+
isTeamMember: false,
|
|
38
|
+
};
|
|
39
39
|
},
|
|
40
40
|
computed: {
|
|
41
41
|
finalPanel: function () {
|
|
@@ -51,15 +51,15 @@ export default {
|
|
|
51
51
|
.slice(0, 2);
|
|
52
52
|
},
|
|
53
53
|
isAdmin() {
|
|
54
|
-
return User.isAdmin()
|
|
54
|
+
return User.isAdmin();
|
|
55
55
|
},
|
|
56
56
|
isEditor() {
|
|
57
|
-
return User.isEditor()
|
|
57
|
+
return User.isEditor();
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
mounted() {
|
|
61
61
|
this.loadPanel();
|
|
62
|
-
this.check()
|
|
62
|
+
this.check();
|
|
63
63
|
},
|
|
64
64
|
methods: {
|
|
65
65
|
loadPanel: function () {
|
|
@@ -78,24 +78,24 @@ export default {
|
|
|
78
78
|
console.log("loadPanel error", e);
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
check: function() {
|
|
81
|
+
check: function () {
|
|
82
82
|
try {
|
|
83
83
|
const isTeamMember = JSON.parse(localStorage.getItem("BoxTeam3"));
|
|
84
84
|
|
|
85
85
|
if (isTeamMember) {
|
|
86
|
-
this.isTeamMember = isTeamMember === "true"
|
|
86
|
+
this.isTeamMember = isTeamMember === "true";
|
|
87
87
|
} else {
|
|
88
|
-
checkTeamMember().then(res => {
|
|
89
|
-
this.isTeamMember = res.data.data
|
|
90
|
-
localStorage.setItem("BoxTeam3", this.isTeamMember)
|
|
91
|
-
})
|
|
88
|
+
checkTeamMember().then((res) => {
|
|
89
|
+
this.isTeamMember = res.data.data;
|
|
90
|
+
localStorage.setItem("BoxTeam3", this.isTeamMember);
|
|
91
|
+
});
|
|
92
92
|
}
|
|
93
93
|
} catch (e) {
|
|
94
94
|
console.log("check error", e);
|
|
95
95
|
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
99
|
</script>
|
|
100
100
|
|
|
101
101
|
<style lang="less">
|