修改分页组件在部分场景中存在缓存问题导致部分数据无法查看的问题
This commit is contained in:
@@ -46,15 +46,12 @@ Component({
|
||||
},
|
||||
onChange(e) {
|
||||
const { id, index } = e.currentTarget.dataset;
|
||||
// let newList = this.data.chooseList;
|
||||
const { list } = this.data;
|
||||
const newSelectList = this.data.selectList;
|
||||
if (e.detail) {
|
||||
newSelectList[index] = true;
|
||||
// newList = [...new Set([...newList, id])]
|
||||
} else {
|
||||
newSelectList[index] = false;
|
||||
// newList = newList.filter(item => item !== id);
|
||||
}
|
||||
let selectCount = 0;
|
||||
let selectMoney = 0;
|
||||
@@ -66,7 +63,6 @@ Component({
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
// chooseList: newList,
|
||||
selectList: newSelectList,
|
||||
allChecked: selectCount === list.length,
|
||||
selectCount,
|
||||
|
Reference in New Issue
Block a user