@tmsfe/tms-core 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/location/base.ts +1 -1
- package/src/report/clone.ts +1 -1
- package/src/request.js +1 -1
package/package.json
CHANGED
package/src/location/base.ts
CHANGED
|
@@ -18,7 +18,7 @@ const EventName = 'loc_status_changed';
|
|
|
18
18
|
|
|
19
19
|
// 小程序切换到前台|后台之后清除缓存,使后续能重新定位获取到最新位置
|
|
20
20
|
function cleanCache(type: string) {
|
|
21
|
-
if (getLocPromise || userLocationCache) {
|
|
21
|
+
if (getLocPromise !== null || userLocationCache) {
|
|
22
22
|
getLocPromise = null;
|
|
23
23
|
userLocationCache = undefined;
|
|
24
24
|
logger.log(type, '清除location缓存');
|
package/src/report/clone.ts
CHANGED
package/src/request.js
CHANGED