@jx3box/jx3box-common-ui 8.4.3 → 8.4.5

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.3",
3
+ "version": "8.4.5",
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.13",
34
+ "@jx3box/jx3box-common": "^8.2.16",
35
35
  "@jx3box/jx3box-data": "^3.5.8",
36
36
  "@jx3box/jx3box-editor": "^2.1.9",
37
37
  "@jx3box/reporter": "^0.0.4",
@@ -103,12 +103,13 @@ export default {
103
103
  this.form.title = this.post.post_title;
104
104
  }
105
105
  this.loadLogs();
106
+
107
+ if (User.isTeammate()) {
108
+ this.loadConfig();
109
+ }
106
110
  }
107
111
  }
108
112
  },
109
- mounted() {
110
- this.isEditor && this.loadConfig();
111
- },
112
113
  methods: {
113
114
  close(){
114
115
  this.$emit("update:modelValue",false)
@@ -189,7 +189,8 @@ export default {
189
189
  this.isSuperAuthor = !!data.sign;
190
190
  this.isTeammate = this.user?.is_teammate;
191
191
  localStorage.setItem("is_teammate", this.isTeammate);
192
- localStorage.setItem("permission", this.user?.permission);
192
+ const permissions = this.user?.permission?.map(item => item.action)?.join(",");
193
+ localStorage.setItem("jx3box_permission", permissions);
193
194
  this.$emit("update", this.user);
194
195
  })
195
196
  .catch((err) => {