@tplc/business 0.4.104 → 0.4.105

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.4.105](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.104...v0.4.105) (2025-05-09)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 对比值对比 ([9673e9a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9673e9ae729a0d539bf30d2c9fe48dd151bd119d))
11
+
5
12
  ### [0.4.104](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.103...v0.4.104) (2025-05-09)
6
13
 
7
14
  ### [0.4.103](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.96...v0.4.103) (2025-05-09)
@@ -52,33 +52,37 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
52
52
  if (!force && currentLocation.value) return
53
53
  if ((await checkLocationPermission()) !== false) {
54
54
  locationIng.value = true
55
- uni.getLocation({
56
- // type: 'gcj02',
57
- // type: 'wgs84',
58
- success: function (res) {
59
- currentUserLatLon.value = res
60
- getUserLocation({
61
- userLongitude: res.longitude.toString(),
62
- userLatitude: res.latitude.toString(),
63
- })
64
- .then((res) => {
65
- currentLocation.value = res.data
66
- if (force) onLocation?.(res.data)
67
- })
68
- .finally(() => {
69
- locationIng.value = false
70
- })
71
- },
72
- fail: function (res) {
73
- console.log('获取位置信息失败:', res)
74
- getUserLocation()
75
- .then((res) => {
76
- currentLocation.value = res.data
77
- })
78
- .finally(() => {
79
- locationIng.value = false
55
+ await new Promise<void>((resolve) => {
56
+ uni.getLocation({
57
+ // type: 'gcj02',
58
+ // type: 'wgs84',
59
+ success: function (res) {
60
+ currentUserLatLon.value = res
61
+ getUserLocation({
62
+ userLongitude: res.longitude.toString(),
63
+ userLatitude: res.latitude.toString(),
80
64
  })
81
- },
65
+ .then((res) => {
66
+ currentLocation.value = res.data
67
+ if (force) onLocation?.(res.data)
68
+ })
69
+ .finally(() => {
70
+ locationIng.value = false
71
+ resolve()
72
+ })
73
+ },
74
+ fail: function (res) {
75
+ console.log('获取位置信息失败:', res)
76
+ getUserLocation()
77
+ .then((res) => {
78
+ currentLocation.value = res.data
79
+ })
80
+ .finally(() => {
81
+ locationIng.value = false
82
+ resolve()
83
+ })
84
+ },
85
+ })
82
86
  })
83
87
  } else {
84
88
  navigateToSettings()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.104",
3
+ "version": "0.4.105",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],