Skip to content

Commit

Permalink
fix(taro-alipay): 修复 removeStorageSync fix #1207
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Nov 23, 2018
1 parent 1c0894d commit 638c3fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/taro-alipay/src/native-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ function processApis (taro) {
}
return console.log('setStorageSync 传入参数错误')
}
if (key === 'removeStorageSync') {
const arg1 = args[0]
if (arg1 != null) {
return my[key].call(my, { key: arg1 })
}
return console.log('removeStorageSync 传入参数错误')
}
return my[key].apply(my, args)
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/taro/src/native-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const noPromiseApis = {
createAnimation: true,
pageScrollTo: true,
createSelectorQuery: true,
getAccountInfoSync: true,
createCanvasContext: true,
createContext: true,
drawCanvas: true,
Expand All @@ -80,6 +79,7 @@ const noPromiseApis = {
arrayBufferToBase64: true,
base64ToArrayBuffer: true,

getAccountInfoSync: true,
getUpdateManager: true,
createWorker: true
}
Expand Down

0 comments on commit 638c3fb

Please sign in to comment.