当前位置:网站首页>移动端使用vantUI的list组件,多个tab项来回切换时,列表加载多次导致数据无法正常展示
移动端使用vantUI的list组件,多个tab项来回切换时,列表加载多次导致数据无法正常展示
2022-07-27 14:00:00 【Kratial】
问题:在tab项切换时:
changTab () {
this.loading = false;
this.finished = false;
this.pageNum = 0
this.list = []
this.onLoad()
}
问题现象:加载了两次列表
解决方案:
changTab () {
this.loading = true;
this.finished = false;
this.pageNum = 0
this.list = []
this.onLoad()
}
边栏推荐
- How to do well in enterprise system vulnerability assessment
- Docker实践经验:Docker 上部署 mysql8 主从复制
- 基于GEC6818开发板的相册
- [popular science] the difference and connection between accuracy and resolution
- 大家最想要的,最全的C语言知识点总结,还不赶紧学习
- Unityui aspect processing (induction and accumulation)
- 国信证券手机开户安全吗 中山证券靠谱吗
- FPGA时序约束分享04_output delay 约束
- 【STM32】EXTI
- 图解 SQL,这也太形象了吧
猜你喜欢

@Bean 与 @Component 用在同一个类上,会发生什么?

@What happens when bean and @component are used on the same class?

一文搞懂 Redis 架构演化之路

Graphical SQL is too vivid

Stock trading 4

Slam overview Reading Note 6: slam research based on image semantics: application-oriented solutions for autonomous navigation of mobile robots 2020

Win11壁纸变黑怎么办?Win11壁纸变黑了的解决方法

Interprocess communication

telnet远程登录aaa模式详解【华为eNSP】

Import the virtual machine officially made by Kali Linux into Oracle VirtualBox
随机推荐
NEFU118 n!后面有多少个0【算术基本定理】
STM32——电容触摸按键实验
JS what is declaration in advance? The order of function and variable declaration in advance (the foreshadowing of execution context)
Toward Fast, Flexible, and Robust Low-Light Image Enhancement(实现快速、灵活和稳健的弱光图像增强)CVPR2022
aac 和 h264等的时间戳
telnet远程登录aaa模式详解【华为eNSP】
正则表达式:邮箱匹配
进程间通信
FPGA timing constraint sharing 04_ Output delay constraint
获取Unity打开摄像头第一帧有画面的数据
Visual system design example (Halcon WinForm) -10. PLC communication
Graphical SQL is too vivid
【医疗行业】DICOM converter Tools
【云享读书会第13期】多媒体处理工具 FFmpeg 工具集
va_ List usage summary
Construction and empirical research of post talent demand analysis framework based on recruitment advertisement
Automatically configure SSH password free login and cancel SSH password free configuration script
PROFINET simulator tutorial
Visual system design example (Halcon WinForm) -9. text display
DVWA全级别通关教程