Commit 15785f69 by 李伟康

fix(components): 防止重复点击子品牌导致多次请求

当用户快速重复点击子品牌时,由于没有判断children是否存在且不为空,
会导致重复发起请求。添加判断条件避免重复请求,提升用户体验。
1 parent aeb3d648
...@@ -184,6 +184,7 @@ export default { ...@@ -184,6 +184,7 @@ export default {
} }
}, },
async chooseSubBrand (that, item, jindex, cindex, index) { async chooseSubBrand (that, item, jindex, cindex, index) {
if(that.children && that.children.length) return
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!