Skip to content

Commit

Permalink
fix: quest wiki interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Jan 6, 2024
1 parent 96c6c30 commit 68051b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@antv/g2": "^4.2.10",
"@jx3box/jx3box-comment-ui": "^1.8.6",
"@jx3box/jx3box-common": "^8.1.4",
"@jx3box/jx3box-common": "^8.1.5",
"@jx3box/jx3box-common-ui": "^8.0.16",
"@jx3box/jx3box-data": "^3.5.6",
"@jx3box/jx3box-dict": "^2.1.1",
Expand Down
5 changes: 3 additions & 2 deletions src/views/quest/single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ import QuestDialog from "@/components/quest/single/quest-dialog.vue";
import Notice from "@/components/quest/single/notice.vue";
import { postStat } from "@jx3box/jx3box-common/js/stat.js";
import { wiki } from "@jx3box/jx3box-common/js/wiki.js";
import { wiki } from "@jx3box/jx3box-common/js/wiki_v2.js";
import { getAppIcon } from "@jx3box/jx3box-common/js/utils";
import { publishLink, ts2str } from "@jx3box/jx3box-common/js/utils";
Expand Down Expand Up @@ -310,6 +310,7 @@ export default {
if (this.id) {
wiki.mix({ type: "quest", id: this.id, client: this.client }, { supply: 1 }).then((res) => {
const { post, source, compatible, isEmpty, users } = res;
console.log(res)
this.wiki_post = {
post: post,
source: source,
Expand All @@ -324,7 +325,7 @@ export default {
loadRevision: function () {
// 获取指定攻略
wiki.getById(this.post_id, { type: "quest" }).then((res) => {
this.wiki_post = res.data.data?.post;
this.wiki_post = res.data.data;
});
this.triggerStat();
},
Expand Down

0 comments on commit 68051b7

Please sign in to comment.