Mini Program uses scroll-view to load more pages back to the top?

when writing more loads for Mini Program, there will be a problem that the page goes back to the top
with scroll-view
regardless of whether it is
var data = res.data.data
var listData = utils.obtain (data)
var cur = wx.getStorageSync ("cur")-1
listData.forEach (e = > {

)
self.data.newList[cur].push(e)

})
self.setData ({

)
[cw]: self.data.newList[cur]

})
or
self.setData ({

)
[cw]: self.data.newList[cur].concat(listData)

})
pages all go back to the top

< swiper-item wx:for= "{{newList}}" wx:key= "* this" wx:for-index="index" >
< scroll-view scroll-y= "true" bindscrolltolower= "bindDownLoad" scroll-top= "500px" class= "scoll-h" >
-- < view > {{newList [index]}} < / view >-->
< view wx:for= "{newList [index]} wx:for-item=" item "wx:key=" articles "wx:for-index="articlesindex" class="newscontent" >
< template is=" list "data=" {item, Articlesindex}} "> < / template >
< / view >
< / scroll-view >
< / swiper-item >
this is the page code. I hope someone can take a look at it

.
Nov.09,2021

our project also encountered this problem when traversing using multidimensional arrays (and arrays in objects). Every time the array data page in the object is updated, it will go back to the top. If you try to use an one-dimensional array to traverse the list in scroll-view, there will be no this problem. I hope it will help you


I have encountered the same problem

.
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-1b3c591-2c2e9.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-1b3c591-2c2e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?