@jx3box/jx3box-common-ui 8.4.0 → 8.4.3

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.4.0",
3
+ "version": "8.4.3",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.8.7",
34
- "@jx3box/jx3box-common": "^8.2.11",
34
+ "@jx3box/jx3box-common": "^8.2.13",
35
35
  "@jx3box/jx3box-data": "^3.5.8",
36
36
  "@jx3box/jx3box-editor": "^2.1.9",
37
37
  "@jx3box/reporter": "^0.0.4",
@@ -11,7 +11,7 @@
11
11
  <el-dropdown-item v-if="isEditor" command="directMessage" icon="el-icon-message">
12
12
  <span>私信</span>
13
13
  </el-dropdown-item>
14
- <el-dropdown-item icon="el-icon-upload" command="designTask">
14
+ <el-dropdown-item icon="el-icon-upload" command="designTask" v-if="hasPermission('push_banner')">
15
15
  <span>推送</span>
16
16
  </el-dropdown-item>
17
17
  </el-dropdown-menu>
@@ -100,6 +100,9 @@ export default {
100
100
  },
101
101
  designTask() {
102
102
  this.showDesignTask = true;
103
+ },
104
+ hasPermission(permission) {
105
+ return User.hasPermission(permission);
103
106
  }
104
107
  }
105
108
  };
@@ -188,6 +188,8 @@ export default {
188
188
  this.user = data;
189
189
  this.isSuperAuthor = !!data.sign;
190
190
  this.isTeammate = this.user?.is_teammate;
191
+ localStorage.setItem("is_teammate", this.isTeammate);
192
+ localStorage.setItem("permission", this.user?.permission);
191
193
  this.$emit("update", this.user);
192
194
  })
193
195
  .catch((err) => {