提交 0b56f3b7 编写于 作者: 雪洛's avatar 雪洛

fix: 修复宽屏模式顶部返回箭头错乱

上级 cf85c1e2
...@@ -139,10 +139,5 @@ ...@@ -139,10 +139,5 @@
.uni-top-window uni-tabbar .uni-tabbar { .uni-top-window uni-tabbar .uni-tabbar {
background-color: #fff !important; background-color: #fff !important;
} }
.uni-app--showleftwindow .uni-page-head-btn {
display: none !important;
}
/* #endif */ /* #endif */
</style> </style>
...@@ -74,9 +74,13 @@ ...@@ -74,9 +74,13 @@
goPage(url : string) { goPage(url : string) {
if (url == '/set-tab-bar') { if (url == '/set-tab-bar') {
this.showPop() this.showPop()
} else {
if(this.hasLeftWin) {
uni.reLaunch({ url })
} else { } else {
uni.navigateTo({ url }) uni.navigateTo({ url })
} }
}
}, },
showPop: function () { showPop: function () {
(this.$refs["pop"] as UniElement).style.setProperty("display", "flex") (this.$refs["pop"] as UniElement).style.setProperty("display", "flex")
......
...@@ -67,7 +67,11 @@ ...@@ -67,7 +67,11 @@
}, },
methods: { methods: {
goPage(url : string) { goPage(url : string) {
if(this.hasLeftWin) {
uni.reLaunch({ url })
} else {
uni.navigateTo({ url }) uni.navigateTo({ url })
}
}, },
}, },
// #ifdef WEB // #ifdef WEB
......
...@@ -75,7 +75,11 @@ ...@@ -75,7 +75,11 @@
}, },
methods: { methods: {
goPage(url : string) { goPage(url : string) {
if(this.hasLeftWin) {
uni.reLaunch({ url })
} else {
uni.navigateTo({ url }) uni.navigateTo({ url })
}
}, },
// #ifdef UNI-APP-X && APP // #ifdef UNI-APP-X && APP
upgradePopupShow() { upgradePopupShow() {
......
...@@ -263,9 +263,11 @@ ...@@ -263,9 +263,11 @@
e.url.indexOf('platform') > -1 e.url.indexOf('platform') > -1
? e.url ? e.url
: `/pages/template/${e.url}/${e.url}` : `/pages/template/${e.url}/${e.url}`
uni.navigateTo({ if(this.hasLeftWin) {
url, uni.reLaunch({ url })
}) } else {
uni.navigateTo({ url })
}
}, },
}, },
// #ifdef WEB // #ifdef WEB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册