@tplc/business 0.4.42 → 0.4.43

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.43](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.42...v0.4.43) (2025-03-31)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 修改默认定位 ([de955ed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/de955ed48add18b9224404217a6adaac3424c347))
11
+
5
12
  ### [0.4.42](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.38...v0.4.42) (2025-03-31)
6
13
 
7
14
 
@@ -10,5 +10,5 @@ export interface UserLocation {
10
10
  haveNotTip: string
11
11
  showName: string
12
12
  }
13
- export const getUserLocation = (data: { userLongitude: string; userLatitude: string }) =>
13
+ export const getUserLocation = (data?: { userLongitude: string; userLatitude: string }) =>
14
14
  uni.$lcb.http.post<UserLocation>('/address/userLocation', data)
@@ -70,7 +70,13 @@ const useLocation = () => {
70
70
  },
71
71
  fail: function (res) {
72
72
  console.log('获取位置信息失败:', res)
73
- locationIng.value = false
73
+ getUserLocation()
74
+ .then((res) => {
75
+ currentLocation.value = res.data
76
+ })
77
+ .finally(() => {
78
+ locationIng.value = false
79
+ })
74
80
  },
75
81
  })
76
82
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.42",
3
+ "version": "0.4.43",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -10,7 +10,7 @@ export interface UserLocation {
10
10
  haveNotTip: string
11
11
  showName: string
12
12
  }
13
- export declare const getUserLocation: (data: {
13
+ export declare const getUserLocation: (data?: {
14
14
  userLongitude: string
15
15
  userLatitude: string
16
16
  }) => Promise<import('../action').IResData<UserLocation>>