当前位置:网站首页>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)
})
}
}
边栏推荐
- 程序调试介绍及其使用
- SWIG tutorial "two"
- Allwinner V853 development board transplants LVGL-based 2048 games
- Software Test Cases
- Network engineer's backpack (EDC summary recommendation)
- 一个 ABAP 开发的新浪微博语义情感分析工具
- 推荐几款最好用的MySQL开源客户端,建议收藏!
- fastposter v2.9.1 programmer must-have poster generator
- 一个 ABAP 工具,能打印系统里某个用户对 BSP 应用的浏览历史记录
- 安克创新每一个“五星好评”背后,有怎样的流程管理?
猜你喜欢

持续集成实战 —— Jenkins自动化测试环境搭建

Recommend a few had better use the MySQL open source client, collection!

“低代码”编程或将是软件开发的未来

SWIG tutorial "two"

Problem solving-->Online OJ (19)

A Sina Weibo semantic sentiment analysis tool developed by ABAP

安克创新每一个“五星好评”背后,有怎样的流程管理?

不爱生活的段子手不是好设计师|ONES 人物

一个 ABAP 开发的新浪微博语义情感分析工具

Cesium快速上手4-Polylines图元使用讲解
随机推荐
Lilac Garden
A test tool for ABAP Development Tool custom service endpoint
E-commerce spike project harvest (2)
关于async\await 的理解和思考
FP6378AS5CTR SOT-23-5 高效1MHz2A同步降压调节器
spark面试常问问题
Allwinner V853 development board transplants LVGL-based 2048 games
网络工程师的背包(EDC总结推荐)
关于Web渗透测试需要知道的一切:完整指南
商业版SSL证书
常见SQL、API接口等常见约定
scala 基础篇
Brainstorm: Goals and
TCP为什么是三次握手和四次挥手?
智为链接,慧享生活,荣耀智慧服务,只为 “懂” 你
【教程】HuggingFace的Optimum组件已支持加速Graphcore和英特尔Habana芯片
Common conventions such as common SQL and API interfaces
使用 ABAP 正则表达式解析 uuid 的值
Software Test Cases
JS 从零手写实现一个bind方法