perf(手机端滚动组件): 优化暂无数据显示条件

This commit is contained in:
zyn
2023-12-08 15:26:06 +08:00
parent aa63986bbf
commit 3d242031ca
@@ -129,6 +129,7 @@ export default {
},
watch: {
data() {
this.isEmpty = false
if (this.data.length === 0) {
this.scrollTo(0,0)
this.isEmpty = true