当前位置:网站首页>vantui 组件 van-field 路由切换时,字体样式混乱问题
vantui 组件 van-field 路由切换时,字体样式混乱问题
2022-08-04 18:06:00 【记忆怪 bug】
问题描述:在不同字体大小的两个页面(A\B)同时使用 van-field 组件,经过切换后,A页面的字体会在B页面初次加载时被应用,导致页面字体有大有小,经过反复测试,发现手动刷新一次后便可解决问题
顺着这个思路下去,如何让页面强制刷新呢?
vue中有两种方式,history.go(0)和location.reload()
用哪种呢?
区别:
location.reload(true)时,相当于强制刷新
location.reload(false)时,刷新,但可以引用缓存的数据。
location.reload()是会从服务端获取数据的
location.reload():刷新后滚动条会回到顶端
history.go(0)是直接读取缓存数据,不会从服务器端获取数据
history.go(0):刷新后滚动条的位置不变
边栏推荐
- 企业调查相关性分析案例
- Google Earth Engine APP - one-click online viewing of global images from 1984 to this year and loading an image analysis at the same time
- DOM Clobbering的原理及应用
- How to recruit programmers
- 22/8/4 记忆化搜索+博弈论
- Create Sentinel high-availability cluster current limiting middleware from -99
- 哈夫曼树(暑假每日一题 15)
- 怎么面试程序员的?傲慢与无礼,就数他牛逼
- 【软件工程之美 - 专栏笔记】37 | 遇到线上故障,你和高手的差距在哪里?
- Enterprise survey correlation analysis case
猜你喜欢

智能视频监控平台EasyCVR如何使用接口批量导出iframe地址?

电源测试系统-ATE电源测试系统-ACDC电源模块测试系统NSAT-8000

小程序笔记3

基于 eBPF 的 Kubernetes 可观测实践

EasyCVR如何通过接口调用设备录像的倍速回放?

数据库SqlServer迁移PostgreSql实践

【web自动化测试】Playwright快速入门,5分钟上手

(ECCV-2022)GaitEdge:超越普通的端到端步态识别,提高实用性

Introduction of three temperature measurement methods for PT100 platinum thermal resistance

从-99打造Sentinel高可用集群限流中间件
随机推荐
【技术笔记】let 和 var和const的异同
静态iP与权限更改[通俗易懂]
哈夫曼树(暑假每日一题 15)
22/8/4 记忆化搜索+博弈论
小程序笔记1
Enterprise survey correlation analysis case
力扣学习---0804
About the two architectures of ETL (ETL architecture and ELT architecture)
After EasyCVR is locally connected to the national standard device to map the public network, the local device cannot play and cascade the solution
2022年五一数学建模C题讲解
Hezhou Cat1 4G module Air724UG is configured with RNDIS network card or PPP dial-up, and the development board is connected to the Internet through the RNDIS network card (taking the RV1126/1109 devel
Flink / Scala - 使用 RedisSink 存储数据
通俗易懂-二维数组只能省略行不能省略列-人话版本
谷歌开源芯片 180 纳米制造工艺
LeetCode 899. Ordered Queues
数据库SqlServer迁移PostgreSql实践
npm配置国内镜像(淘宝镜像)
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...
怎么招聘程序员
2022年7月31日 暑假第三周总结