修复工作人员作业预检状态与提示
This commit is contained in:
@@ -29,7 +29,7 @@ class GeolocatorLocationService implements LocationService {
|
||||
permission = await Geolocator.requestPermission();
|
||||
}
|
||||
if (permission == LocationPermission.denied || permission == LocationPermission.deniedForever) {
|
||||
throw StateError('定位权限未授权,无法完成该在线动作');
|
||||
throw StateError('定位权限未授权,请在浏览器站点权限或系统设置中允许定位后重试');
|
||||
}
|
||||
final position = await Geolocator.getCurrentPosition();
|
||||
return LocationPoint(
|
||||
|
||||
Reference in New Issue
Block a user