修复工作人员作业预检状态与提示

This commit is contained in:
czl231
2026-09-05 20:17:07 +08:00
parent 1670d5880f
commit cec02c8887
8 changed files with 191 additions and 12 deletions

View File

@@ -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(