diff --git a/src/components/AiComment/AiComment.vue b/src/components/AiComment/AiComment.vue index 57700f3..8f57d7a 100644 --- a/src/components/AiComment/AiComment.vue +++ b/src/components/AiComment/AiComment.vue @@ -87,7 +87,7 @@ export default { created() { this.getComments() uni.$on("moreComments", flag => { - flag ? this.current = 1 : this.current++ + flag == 1 ? this.current = 1 : this.current++ this.getComments() }) },