Skip to content

Commit

Permalink
perf: update wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Dec 19, 2023
1 parent 0e5b01d commit 77960a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions js/wiki_v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ export const wiki = {
getById(post_id) {
return $cms().get(`/api/cms/wiki/post/id/${post_id}`)
},
// 获取历史版本
versions({ type, id }, params) {
return $cms().get(`/api/cms/wiki/post/type/${type}/source/${id}/versions`, {
params: {
client,
...params,
}
})
},
// 获取兼容攻略
async handleMix(source_type, source_id, client, params) {
let post = '';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jx3box/jx3box-common",
"version": "8.1.2",
"version": "8.1.3",
"description": "JX3BOX公共基础模块",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit 77960a9

Please sign in to comment.