update product/phone/src/main/ets/model/locationServicesImpl/LocationService.ts.

Signed-off-by: chenlang <18577333310@163.com>
This commit is contained in:
chenlang 2023-05-29 05:57:15 +00:00 committed by Gitee
parent 43f01c3457
commit 270c2a75ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -64,8 +64,6 @@ export class LocationService {
LogUtil.info(ConfigData.TAG + 'disable location')
try{
geolocation.disableLocation()
.then((res) => LogUtil.info(ConfigData.TAG + `disenable location, result: ${JSON.stringify(res)}`))
.catch(error=> LogUtil.info(ConfigData.TAG + `disenable location, result: ${error}`))
}catch(err){
LogUtil.info(ConfigData.TAG + `disenable location, result: ${err}`)
}