尝试优化请求速率

This commit is contained in:
Kroytz committed 2026-07-18 22:55:35 +08:00
1 parent 2977ef7d81
commit 81397fc50a
4 files changed
+49 -29

No files matched your search

+5 -3
View File
@@ -417,6 +417,7 @@ const init = async() => { //页面初始化
}
const getShopList = async(res) => {
console.log('location9:',res)
try {
if (res) {
main.SET_LOCATION(res);
@@ -447,12 +448,13 @@ const getShopList = async(res) => {
refreshCart();
}
console.log('goods:',mygoods)
console.log('goods:',goods.value)
loading.value = false;
nextTick(() => measureMenuLayout())
uni.stopPullDownRefresh();
}
}
} finally {
loading.value = false;
uni.stopPullDownRefresh();
}
}
const refreshCart = () =>{
if (goods.value && goods.value.length > 0) {