perf(手机端滚动组件): 优化暂无数据显示条件
This commit is contained in:
@@ -129,6 +129,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
data() {
|
data() {
|
||||||
|
this.isEmpty = false
|
||||||
if (this.data.length === 0) {
|
if (this.data.length === 0) {
|
||||||
this.scrollTo(0,0)
|
this.scrollTo(0,0)
|
||||||
this.isEmpty = true
|
this.isEmpty = true
|
||||||
|
|||||||
Reference in New Issue
Block a user