虚拟列表设置itemNums后有概率报错

虚拟列表重新设置numItems有概率报错  这是报错堆栈  
06-01 09:36:57.779 11788 11940 D jswrapper: JS: [ERROR]: (see stack) Uncaught TypeError: Cannot read property 'x' of null [0]get@src/assets/develop/zw/3rd/fairygui.ab353.js:9417
06-01 09:36:57.779 11788 11940 D jswrapper: [1]o._refreshVirtualList@src/assets/develop/zw/3rd/fairygui.ab353.js:4702
 

1717061445256.jpg


Snipaste_2024-06-03_11-05-04.png


 
因为复现不出来,红框处加的判断不知道有没有用

 
已邀请:

谷主

赞同来自:

看不到具体行数,不好判断。红框肯定是不需要的。

要回复问题请先登录注册