Skip to content

Commit

Permalink
feat: 历史记录
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Oct 25, 2024
1 parent 02a0fe7 commit 2e5b4a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
},
"dependencies": {
"@jx3box/jx3box-comment-ui": "^1.9.9",
"@jx3box/jx3box-common": "^8.4.1",
"@jx3box/jx3box-common-ui": "^8.9.29",
"@jx3box/jx3box-data": "^3.6.9",
"@jx3box/jx3box-editor": "^2.2.15",
"@jx3box/jx3box-common": "^8.4.3",
"@jx3box/jx3box-common-ui": "^8.9.30",
"@jx3box/jx3box-data": "^3.7.0",
"@jx3box/jx3box-editor": "^2.2.16",
"@jx3box/jx3box-talent": "^1.3.2",
"@jx3box/jx3box-talent2": "^1.5.9",
"axios": "^0.21.1",
Expand Down
10 changes: 9 additions & 1 deletion src/views/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ import singlebox from "@/components/cms-single";
// 本地数据
import { getPost } from "@/service/post.js";
import { getStat, postStat } from "@jx3box/jx3box-common/js/stat";
import { getStat, postStat, postHistory } from "@jx3box/jx3box-common/js/stat";
import { appKey } from "@/../setting.json";
import xfmap from "@jx3box/jx3box-data/data/xf/xf.json";
import { __ossRoot, __ossMirror, __iconPath, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
import User from "@jx3box/jx3box-common/js/user";
export default {
name: "single",
Expand Down Expand Up @@ -74,6 +75,13 @@ export default {
this.$store.state.user_id = this.post?.post_author;
document.title = this.post.post_title;
User.isLogin() && postHistory({
source_type: appKey,
source_id: this.id,
link: location.href,
title: this.post.post_title,
});
})
.finally(() => {
this.loading = false;
Expand Down

0 comments on commit 2e5b4a6

Please sign in to comment.