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

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

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