提交 aa311aa4 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

判断是否有历史记录,有的话返回上一页面,没有关闭浏览器

上级 8c7be93e
......@@ -125,7 +125,12 @@
}
if(this.isGoHistory == '1') {
this.$router.go(-1)
if (window.history.length > 1) {
this.$router.go(-1)
} else {
this.$rocNative.goBack();
}
} else {
this.$rocNative.goBack();
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册