@jx3box/jx3box-vue3-ui 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/single/Comment.vue +3 -0
package/package.json
CHANGED
package/src/single/Comment.vue
CHANGED
|
@@ -116,6 +116,8 @@ export default {
|
|
|
116
116
|
total: 0,
|
|
117
117
|
},
|
|
118
118
|
isDesc: "DESC",
|
|
119
|
+
orderByLikes: false,
|
|
120
|
+
openWhiteList: false,
|
|
119
121
|
loading: false,
|
|
120
122
|
};
|
|
121
123
|
},
|
|
@@ -214,6 +216,7 @@ export default {
|
|
|
214
216
|
if (this.isDesc === "DESC") {
|
|
215
217
|
orderQuery["desc"] = true;
|
|
216
218
|
}
|
|
219
|
+
orderQuery["orderby_likes"] = this.orderByLikes;
|
|
217
220
|
GET(`${this.baseAPI}/comment/page/${index}`, orderQuery)
|
|
218
221
|
.then((resp) => {
|
|
219
222
|
this.commentList = resp.data || [];
|