当前位置:网站首页>h5开容器,新页面返回遇到的问题
h5开容器,新页面返回遇到的问题
2022-08-10 15:35:00 【LILEILEILOVE】
h5调用的原生方法开启新的页面,导致路由历史记录缺失
在新页面中判断路由是否缺失
created(){
if(window.history.length === 0){
this.$router.push({
path:"/reload"})
}
新增一个路由作为第一个路由记录
export default{
beforeRouteEnter(to,from,next){
next(vm=>{
vm.$router.replace(from.fullPath)
})
}
}
边栏推荐
- 【服务器数据恢复】raid5崩溃导致lvm信息和VXFS文件系统损坏的数据恢复案例
- 商业版SSL证书
- [Letter from Wu Enda] The development of reinforcement learning!
- E-commerce spike project harvest (2)
- Asterisk SIP media path
- Allwinner V853 development board transplants LVGL-based 2048 games
- Based on Azuki Series: NFT Valuation Analysis Framework "DRIC"
- 【数仓设计】企业数仓为什么要进行分层?(六大好处)
- 全部内置函数详细认识(中篇)
- 持续集成实战 —— Jenkins自动化测试环境搭建
猜你喜欢
随机推荐
SWIG tutorial "four" - package of go language
关于“算力”,这篇文章值得一看
常见SQL、API接口等常见约定
Servlet简单项目操作
FFmpeg 交叉编译
全部内置函数详细认识(中篇)
第壹章模块大全之《re模块》
Introduction to the functional logic of metaForce Fosage 2.0 system development
SWIG tutorial "two"
const-modified pointer variable (detailed)
5G NR MIB Detailed Explanation
$'\r': command not found
TestLink Export Use Case Transformation Tool
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 7
MySQL命令行导出导入数据库
推荐几款最好用的MySQL开源客户端,建议收藏!
Mobileye joins hands with Krypton to open a new chapter in advanced driver assistance through OTA upgrade
Recommend a few had better use the MySQL open source client, collection!
fastposter v2.9.1 programmer must-have poster generator
MySQL batch update and batch update method of different values of multiple records