Skip to content

Commit

Permalink
fix:兼容facedat 数据
Browse files Browse the repository at this point in the history
  • Loading branch information
fifthThirteen committed Aug 21, 2023
1 parent fbc01b7 commit 1bd1e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@jx3box/jx3box-data": "^3.3.7",
"@jx3box/jx3box-editor": "^1.9.9",
"@jx3box/jx3box-emotion": "^1.1.5",
"@jx3box/jx3box-facedat": "^2.3.21",
"@jx3box/jx3box-facedat": "^2.4.0",
"@jx3box/jx3box-map": "^0.1.4",
"animate.css": "^4.1.1",
"axios": "^0.19.2",
Expand Down
3 changes: 2 additions & 1 deletion src/views/face/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ export default {
return this.post?.user_id == User.getInfo().uid || false;
},
facedata: function () {
return this.post?.data || "";
const data = this.post?.data || "";
return data.indexOf("\\") > -1 ? JSON.parse(data) : data;
},
previewSrcList: function () {
return this.post?.images || [];
Expand Down

0 comments on commit 1bd1e23

Please sign in to comment.