@jx3box/jx3box-common-ui 6.3.7 → 6.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-common-ui",
3
- "version": "6.3.7",
3
+ "version": "6.3.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -83,7 +83,7 @@
83
83
  <template v-for="(item, i) in panel">
84
84
  <li
85
85
  :key="'panel-' + i"
86
- v-if="isEditor || !item.onlyAdmin"
86
+ v-if="isAdmin || !item.onlyAdmin"
87
87
  >
88
88
  <a :href="item.link">{{ item.label }}</a>
89
89
  </li>
@@ -130,6 +130,7 @@ export default {
130
130
  return {
131
131
  panel,
132
132
  isEditor: false,
133
+ isAdmin: false,
133
134
 
134
135
  // 是否有消息
135
136
  pop: false,
@@ -308,6 +309,7 @@ export default {
308
309
  init: function () {
309
310
  if (this.isLogin) {
310
311
  this.isEditor = User.isEditor();
312
+ this.isAdmin = User.isAdmin();
311
313
  this.checkMSG();
312
314
  this.loadPanel();
313
315
  this.loadAsset();