@jx3box/jx3box-ui 2.2.1 → 2.2.2

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-ui",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -139,6 +139,10 @@ export default {
139
139
  if (["achievement", "item", "quest", "knowledge"].includes(this.post?.post_type)) {
140
140
  this.form.type = "wiki";
141
141
  }
142
+ // 当传入的 post 对象包含 subtype 字段时,优先使用 subtype 作为类型
143
+ if (this.post?.subtype) {
144
+ this.form.type = this.post.subtype;
145
+ }
142
146
  }
143
147
  this.loadLogs();
144
148
 
@@ -191,7 +195,7 @@ export default {
191
195
  },
192
196
  loadLogs() {
193
197
  if (!this.post?.ID) return;
194
- getDesignTask({ source_id: this.post?.ID }).then((res) => {
198
+ getDesignTask({ source_id: this.post?.ID, source_type: this.post?.post_type }).then((res) => {
195
199
  this.logs = res.data.data || [];
196
200
  });
197
201
  },