Skip to content

Commit

Permalink
add: 通用mixin新增navTo页面跳转方法
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Aug 17, 2024
1 parent c2b5dcd commit cb53ca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uni_modules/uview-plus/libs/mixin/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ export const mixin = defineMixin({
// })
}
},
navTo(url = '', linkType = 'navigateTo') {
route({ type: this.linkType, url })
},
// 查询节点信息
// 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
// 解决办法为在组件根部再套一个没有任何作用的view元素
Expand Down

0 comments on commit cb53ca2

Please sign in to comment.