当前位置:网站首页>项目中遇到的问题 u-parse 组件渲染问题
项目中遇到的问题 u-parse 组件渲染问题
2022-07-05 18:11:00 【你还差的远呢。】
- 最近使用富文本渲染结合vuex使用渲染会有界面数据渲染问题
比如,我第一次进入富文本界面A,显示是没有问题的。
后面点击富文本界面B,B界面会先展示,之前A页面的UI界面,然后等一会,切换到B页面的内容。
这样用户体验非常不友好。
解决方案
之前富文本里面的数据是之前引用vuex里面的数据,我们使用data里面定义的数据,通过watch监听
vuex的数据,赋值给data里面定义的数据,就可以解决这个问题
富文本渲染会有数据显示 undefined的类型,需要用数据来判断显示即可
<text v-if="parseData.isHot">热点</text>
边栏推荐
- 记录Pytorch中的eval()和no_grad()
- Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
- EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
- ConvMAE(2022-05)
- 《2022中国信创生态市场研究及选型评估报告》发布 华云数据入选信创IT基础设施主流厂商!
- 从类生成XML架构
- nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
- [use electron to develop desktop on youqilin]
- rsync
- Numerical calculation method chapter8 Numerical solutions of ordinary differential equations
猜你喜欢
JVM third talk -- JVM performance tuning practice and high-frequency interview question record
Privacy computing helps secure data circulation and sharing
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀
Star ring technology data security management platform defender heavy release
星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
Maximum artificial island [how to make all nodes of a connected component record the total number of nodes? + number the connected component]
About Statistical Power(统计功效)
隐私计算助力数据的安全流通与共享
随机推荐
Nanjing University: Discussion on the training program of digital talents in the new era
Maximum artificial island [how to make all nodes of a connected component record the total number of nodes? + number the connected component]
Record a case of using WinDbg to analyze memory "leakage"
《2022中国信创生态市场研究及选型评估报告》发布 华云数据入选信创IT基础设施主流厂商!
vulnhub之darkhole_2
金太阳开户安全吗?万一免5开户能办理吗?
Whether to take a duplicate subset with duplicate elements [how to take a subset? How to remove duplicates?]
【PaddlePaddle】 PaddleDetection 人脸识别 自定义数据集
EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
How to improve the thermal management in PCB design with the effective placement of thermal through holes?
Numerical calculation method chapter8 Numerical solutions of ordinary differential equations
jdbc读大量数据导致内存溢出
使用QT遍历Json文档及搜索子对象
检查命名空间和类
nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
Privacy computing helps secure data circulation and sharing
Gimp 2.10 tutorial "suggestions collection"
FCN: Fully Convolutional Networks for Semantic Segmentation
Career advancement Guide: recommended books for people in big factories
热通孔的有效放置如何改善PCB设计中的热管理?