About better-scroll performance issues

in the process of using better-scroll, pull up and load the data, and then add the data to list every time, recalculate the height of list, and then scroll.refresh, but when there is a lot of data, this process will be relatively slow, resulting in the data of list has been obtained, but the height of list has not yet been redrawn, do you have any good solutions?

Jan.28,2022

you need to listen to data

watch: {

       data(val){
           this.$nextTick(() => {
                   this.scroll.refresh()
                   this.scroll.finishPullUp()
           })
       }

}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36e3f-2c052.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36e3f-2c052.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?