Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -154,7 +154,7 @@ Page({ | @@ -154,7 +154,7 @@ Page({ | ||
| 154 | }) | 154 | }) |
| 155 | }).catch((e) => { | 155 | }).catch((e) => { |
| 156 | console.log('wx.getLocation.catch', e); | 156 | console.log('wx.getLocation.catch', e); |
| 157 | - if ('getLocation:fail auth deny' == e.errMsg) { | 157 | + if ('getLocation:fail auth deny' == e.errMsg || 'getLocation:fail:auth denied' == e.errMsg) { |
| 158 | this.selectComponent('#showModal').options({ | 158 | this.selectComponent('#showModal').options({ |
| 159 | header: '定位失败', | 159 | header: '定位失败', |
| 160 | body: '需要地理位置授权' | 160 | body: '需要地理位置授权' |
-
Please register or login to post a comment