@jx3box/jx3box-ui 2.1.11 → 2.1.13

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.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -101,6 +101,6 @@
101
101
  },
102
102
  "repository": {
103
103
  "type": "git",
104
- "url": "git+https://github.com/JX3BOX/jx3box-vue3-ui.git"
104
+ "url": "git+https://github.com/JX3BOX/jx3box-ui.git"
105
105
  }
106
106
  }
@@ -112,6 +112,7 @@ export default {
112
112
  remark: "",
113
113
  star: 0,
114
114
  subtype: "",
115
+ type: "",
115
116
  version: "std",
116
117
  },
117
118
  colors: ["#99A9BF", "#F7BA2A", "#FF9900"],
@@ -135,6 +136,9 @@ export default {
135
136
  if (val) {
136
137
  if (this.post) {
137
138
  this.form.title = this.post.post_title;
139
+ if (["achievement", "item", "quest", "knowledge"].includes(this.post?.post_type)) {
140
+ this.form.type = "wiki";
141
+ }
138
142
  }
139
143
  this.loadLogs();
140
144
 
@@ -170,7 +174,10 @@ export default {
170
174
 
171
175
  data.source_type = this.post?.post_type;
172
176
  data.source_id = String(this.post?.ID);
173
- data.link = `/${this.post?.post_type}/${this.post?.ID}`;
177
+ data.link =
178
+ this.form.type === "wiki"
179
+ ? `/${this.post.post_type}/view/${this.post.ID}`
180
+ : `/${this.post?.post_type}/${this.post?.ID}`;
174
181
  data.flow = 0;
175
182
 
176
183
  createDesignTask(data).then(() => {