当前位置:网站首页>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)
})
}
}
边栏推荐
猜你喜欢

JS 从零手写实现一个bind方法

Yi Gene|In-depth review: epigenetic regulation of m6A RNA methylation in brain development and disease

一个 ABAP 工具,能打印系统里某个用户对 BSP 应用的浏览历史记录

Allwinner V853 development board transplants LVGL-based 2048 games

多线程面试指南

QOS function introduction

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

智为链接,慧享生活,荣耀智慧服务,只为 “懂” 你

Rich Dad Poor Dad Reading Notes

Oracle database backup DMP file is too big, what method can be split into multiple DMP when backup?
随机推荐
产品说明丨如何使用MobPush快速创建应用
storage of data in memory
MySQL命令行导出导入数据库
Problem solving-->Online OJ (19)
程序员=加班??——掌握时间才能掌握人生
嵌入式开发:嵌入式基础——使用指针数组映射外设
E. Cross Swapping (and check out deformation/good questions)
Recommend a few had better use the MySQL open source client, collection!
易观千帆银行用户体验中心:聚焦银行APP用户体验
An ABAP tool that can print the browsing history of a user in the system for BSP applications
metaForce佛萨奇2.0系统开发功能逻辑介绍
Brainstorm: Goals and
Opencv 图像超像素分割(SLIC、SEEDS、LSC)
企业如何开展ERP数据治理工作?_光点科技
SWIG tutorial "two"
“低代码”编程或将是软件开发的未来
Asterisk SIP media path
软件测试用例篇
FP6378AS5CTR SOT - 23-5 effective 1 mhz2a synchronous buck regulator
一个 ABAP 开发的新浪微博语义情感分析工具