Skip to content

Commit

Permalink
fix(taro): 小程序api能力增加导航相关
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Apr 9, 2018
1 parent 56a439f commit 9c89972
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/taro/src/native-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ function processApis (taro) {
createVideoContext: true,
createCameraContext: true,

navigateBack: true,

// 位置
createMapContext: true,

Expand Down Expand Up @@ -184,6 +186,12 @@ function processApis (taro) {
removeStorage: true,
clearStorage: true,

// 导航
navigateTo: true,
redirectTo: true,
switchTab: true,
reLaunch: true,

// 位置
getLocation: true,
chooseLocation: true,
Expand Down

0 comments on commit 9c89972

Please sign in to comment.