Skip to content

Commit

Permalink
fix(h5): upload location api to fix #7453
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Sep 25, 2020
1 parent a4858b7 commit 7f1d781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/taro-h5/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export * from './deviceMotion'
export * from './fileTransfer'
export * from './image'
export * from './interactive'
// export * from './location'
export * from './location'
export * from './navigationBar'
export * from './open'
export * from './others'
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-h5/src/api/location/chooseLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ const chooseLocation = ({ success, fail, complete } = {}) => {
const choosenLocation = {}
const onSuccess = res => {
success && success(res)
complete && complete()
complete && complete(res)
resolve(res)
}
const onError = res => {
fail && fail(res)
complete && complete()
complete && complete(res)
reject(res)
}

Expand Down
1 change: 1 addition & 0 deletions packages/taro-h5/src/api/location/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
top: 100%;
background-color: #fff;
transition: ease top .3s;
z-index: 1;
}

.taro_chooselocation_bar {
Expand Down

0 comments on commit 7f1d781

Please sign in to comment.