mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
44dc6e768a
commit
7244e81505
@ -10,8 +10,12 @@ export const link = Behavior({
|
|||||||
methods: {
|
methods: {
|
||||||
jumpLink(urlKey = 'url') {
|
jumpLink(urlKey = 'url') {
|
||||||
const url = this.data[urlKey];
|
const url = this.data[urlKey];
|
||||||
if (url) {
|
if (url) {
|
||||||
wx[this.data.linkType]({ url });
|
if (this.data.linkType === 'navigateTo' && getCurrentPages().length > 9) {
|
||||||
|
wx.redirectTo({ url });
|
||||||
|
} else {
|
||||||
|
wx[this.data.linkType]({ url });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user