@tplc/business 0.4.69 → 0.4.70

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,8 @@
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.70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.81...v0.4.70) (2025-04-12)
6
+
5
7
  ### [0.4.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.80...v0.4.69) (2025-04-10)
6
8
 
7
9
 
package/action.d.ts CHANGED
@@ -37,6 +37,9 @@ export interface LcbGlobal {
37
37
  updateUser: (data: Record<string, any>, isLogin?: boolean) => void
38
38
  getUser: () => void
39
39
  }
40
+ constantsStore?: () => {
41
+ mainConfig?: Record<string, any>
42
+ }
40
43
  getIsTabbar: () => boolean
41
44
  layoutId: string
42
45
  internalPages: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.69",
3
+ "version": "0.4.70",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.80"
14
+ "@tplc/wot": "0.1.81"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
package/utils/history.ts CHANGED
@@ -11,7 +11,11 @@ export const setHistoryCity = (address?: ChildHotAddress) => {
11
11
  /** 获取城市历史记录如果超过3天就不使用历史 */
12
12
  export const getHistoryCity = () => {
13
13
  const history = uni.getStorageSync('cityHistory')
14
- if (history && new Date().getTime() - history.time < 3 * 24 * 60 * 60 * 1000) {
14
+ if (
15
+ history &&
16
+ new Date().getTime() - history.time <
17
+ (uni.$lcb.constantsStore?.().mainConfig?.cityExpirationTime || 0)
18
+ ) {
15
19
  return history.address as ChildHotAddress
16
20
  }
17
21
  }