当前位置:网站首页>项目中遇到的问题 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>
边栏推荐
- 使用QT遍历Json文档及搜索子对象
- mybash
- EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
- [utiliser Electron pour développer le Bureau sur youkirin devrait]
- ClickHouse(03)ClickHouse怎么安装和部署
- Star ring technology data security management platform defender heavy release
- 热通孔的有效放置如何改善PCB设计中的热管理?
- Memory management chapter of Kobayashi coding
- Leetcode daily question: the first unique character in the string
- JVM第三话 -- JVM性能调优实战和高频面试题记录
猜你喜欢

华夏基金:基金行业数字化转型实践成果分享

Leetcode exercise - 206 Reverse linked list

Zabbix

图像分类,看我就够啦!

图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
![最大人工岛[如何让一个连通分量的所有节点都记录总节点数?+给连通分量编号]](/img/8b/a60fc36115580f018445e4c2a28a9d.png)
最大人工岛[如何让一个连通分量的所有节点都记录总节点数?+给连通分量编号]

Failed to virtualize table with JMeter

Let more young people from Hong Kong and Macao know about Nansha's characteristic cultural and creative products! "Nansha kylin" officially appeared

U-Net: Convolutional Networks for Biomedical Images Segmentation

nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
随机推荐
Unicode processing in response of flash interface
Check namespaces and classes
Thoroughly understand why network i/o is blocked?
Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
Redis Foundation
node_ Exporter memory usage is not displayed
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business
Use of print function in MATLAB
修复漏洞 - mysql 、es
Leetcode daily practice: rotating arrays
第十一届中国云计算标准和应用大会 | 云计算国家标准及白皮书系列发布 华云数据全面参与编制
如何获取飞机穿过雷达两端的坐标
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
消除`if()else{ }`写法
Leetcode exercise - 206 Reverse linked list
[use electron to develop desktop on youqilin]
Xiaobai getting started with NAS - quick building private cloud tutorial series (I) [easy to understand]
buuctf-pwn write-ups (9)
Whether to take a duplicate subset with duplicate elements [how to take a subset? How to remove duplicates?]
Leetcode daily question: the first unique character in the string