From 098bee9bb4bbb5cb26e83539b27b1c6652ab1a77 Mon Sep 17 00:00:00 2001 From: misworga831 Date: Mon, 16 Oct 2023 17:09:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/comment.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/product/comment.vue b/pages/product/comment.vue index c306e2b..0cc84e4 100644 --- a/pages/product/comment.vue +++ b/pages/product/comment.vue @@ -155,15 +155,17 @@ export default { * 顶部筛选条件 */ select(index) { + this.params = { + pageNumber: 1, + pageSize: 10, + }; this.selectIndex = index; this.params.grade = ["", "GOOD", "MODERATE", "WORSE", ""][ this.selectIndex ]; - this.selectIndex == 4 ? (this.params.haveImage = 1) : true; - this.params.pageNumber = 1; - this.params.pageSize = 10; + this.selectIndex === 4 ? (this.params.haveImage = 1) : true; this.commDetail = []; - if (this.selectIndex == 0) { + if (this.selectIndex === 0) { this.params = { pageNumber: 1, pageSize: 10,