fix: 修复商品评论筛选

master
misworga831 2023-10-16 17:09:18 +08:00
parent abbadfbab1
commit 098bee9bb4
1 changed files with 6 additions and 4 deletions

View File

@ -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,