提交 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,8 +74,12 @@ ...@@ -74,8 +74,12 @@
goPage(url : string) { goPage(url : string) {
if (url == '/set-tab-bar') { if (url == '/set-tab-bar') {
this.showPop() this.showPop()
} else { } else {
uni.navigateTo({ url }) if(this.hasLeftWin) {
uni.reLaunch({ url })
} else {
uni.navigateTo({ url })
}
} }
}, },
showPop: function () { showPop: function () {
......
...@@ -66,8 +66,12 @@ ...@@ -66,8 +66,12 @@
} }
}, },
methods: { methods: {
goPage(url : string) { goPage(url : string) {
uni.navigateTo({ url }) if(this.hasLeftWin) {
uni.reLaunch({ url })
} else {
uni.navigateTo({ url })
}
}, },
}, },
// #ifdef WEB // #ifdef WEB
......
...@@ -74,8 +74,12 @@ ...@@ -74,8 +74,12 @@
} }
}, },
methods: { methods: {
goPage(url : string) { goPage(url : string) {
uni.navigateTo({ url }) if(this.hasLeftWin) {
uni.reLaunch({ url })
} else {
uni.navigateTo({ url })
}
}, },
// #ifdef UNI-APP-X && APP // #ifdef UNI-APP-X && APP
upgradePopupShow() { upgradePopupShow() {
......
...@@ -262,10 +262,12 @@ ...@@ -262,10 +262,12 @@
const url = const url =
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.
先完成此消息的编辑!
想要评论请 注册