-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Version
3.4.6
Reproduction link
https://vux.li/demos/v2/?x-page=github#/component/alert
Steps to reproduce
A页面 地址是xxx.com#/a 按需加载a.chunk.js
如果a.chunk.js加载失败, vue-router会把地址重置成xxx.com#/
接下来用户刷新网页就会去到错误的页面
真实场景:
打开地址https://vux.li/demos/v2/#/component/alert?x-page=github
断点静态资源108.de037dbd118e6ee543e8.js
刷新页面,地址会变成https://vux.li/demos/v2/#/
取消断点刷新页面 页面跳转到了首页
What is expected?
资源加载失败 不要修改页面地址
What is actually happening?
资源加载失败 , hook方式里判断isError(to)===ture 则调用ensureURL修改了页面地址
不理解为什么这么设计, 弱网就非常容易导致页面跳转错误或者参数丢失, 多次导致严重的线上故障
Metadata
Metadata
Assignees
Labels
No labels