Skip to content

Commit

Permalink
perf: udpate decoration path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Dec 27, 2024
1 parent d34b0a0 commit 6e363b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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-comment-ui",
"version": "2.0.0",
"version": "2.0.1",
"scripts": {
"dev": "env DEV_SERVER=true vue-cli-service serve",
"serve": "vue-cli-service serve",
Expand Down
10 changes: 5 additions & 5 deletions src/components/comment-and-reply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ import { bus } from "../utils";
import CommentAvatar from "./avatar.vue";
const DECORATION_KEY = "decoration_comment_";
import { $cms } from "@jx3box/jx3box-common/js/https";
import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
export default {
props: [
"item",
Expand Down Expand Up @@ -193,8 +193,8 @@ export default {
let decoration_parse = JSON.parse(decoration_local);
if (decoration_parse) {
this.decoration =
__imgPath +
`decoration/images/${decoration_parse.val}/comment.png`;
__cdn +
`design/decoration/images/${decoration_parse.val}/comment.png`;
return;
}
}
Expand All @@ -210,8 +210,8 @@ export default {
);
if (decoration) {
this.decoration =
__imgPath +
`decoration/images/${decoration.val}/comment.png`;
__cdn +
`design/decoration/images/${decoration.val}/comment.png`;
sessionStorage.setItem(
DECORATION_KEY + this.uid,
JSON.stringify(decoration)
Expand Down

0 comments on commit 6e363b1

Please sign in to comment.