fix(custom): 修复带有切换项页面分页数据错乱的bug
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -149,6 +149,7 @@ const getData = async () => {
|
||||
|
||||
const tabChange = (e: number) => {
|
||||
tabVal.value = e;
|
||||
dataList.value = [];
|
||||
getData();
|
||||
};
|
||||
|
||||
@@ -160,7 +161,7 @@ const toDetailPage = (item: any) => {
|
||||
};
|
||||
|
||||
Taro.useReachBottom(() => {
|
||||
if (pageOpt.value.total === dataList.value.length)
|
||||
if (pageOpt.value.total >= dataList.value.length)
|
||||
return Taro.showToast({
|
||||
title: '没有更多数据了',
|
||||
icon: 'none',
|
||||
|
||||
Reference in New Issue
Block a user