@jx3box/jx3box-ui 2.2.13 → 2.2.15

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.13",
3
+ "version": "2.2.15",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ export default {
71
71
  let only = honorConfig.only;
72
72
  let prefix = honorConfig.prefix;
73
73
  let regPrefix = honorConfig.prefix.match(/\{([^{}]+?)\}/g);
74
- let ranking = honorConfig.ranking;
74
+ let ranking = honorConfig.ranking || [];
75
75
  let honorStr = honorConfig.year || "";
76
76
 
77
77
  if (!only) {
@@ -179,7 +179,7 @@ export default {
179
179
  data.source_type = this.post?.post_type;
180
180
  data.source_id = String(this.post?.ID);
181
181
  data.link =
182
- this.form.type === "wiki"
182
+ this.form.type === "wiki" && data.source_type !== 'community'
183
183
  ? `/${this.post.post_type}/view/${this.post.ID}`
184
184
  : `/${this.post?.post_type}/${this.post?.ID}`;
185
185
  data.flow = 0;