mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
[仅供测试]重写navigateTo方法,解决微信小程序中超过10个页面栈时会出现的bug
This commit is contained in:
@@ -215,7 +215,7 @@
|
||||
if (jump) {
|
||||
// #ifdef MP
|
||||
if (attrs['app-id']) {
|
||||
return uni.navigateToMiniProgram({
|
||||
return this.$navigateToMiniProgram({
|
||||
appId: attrs['app-id'],
|
||||
path: attrs.path
|
||||
})
|
||||
@@ -241,7 +241,7 @@
|
||||
})
|
||||
// #endif
|
||||
} else
|
||||
uni.navigateTo({
|
||||
this.$navigateTo({
|
||||
url: attrs.href,
|
||||
fail() {
|
||||
uni.switchTab({
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
} else if (href.indexOf('http') == 0 || href.indexOf('//') == 0)
|
||||
return true;
|
||||
else
|
||||
uni.navigateTo({
|
||||
this.$navigateTo({
|
||||
url: href
|
||||
})
|
||||
}
|
||||
@@ -578,7 +578,7 @@
|
||||
} else if (href.includes('://'))
|
||||
plus.runtime.openWeb(href);
|
||||
else
|
||||
uni.navigateTo({
|
||||
this.$navigateTo({
|
||||
url: href
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user