@tplc/business 0.3.56 → 0.3.57

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.3.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.56...v0.3.57) (2025-02-21)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 支持时间同步 ([9a24a96](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a24a96d0a87e4b49362ff6a3602a15ed27b86c5))
11
+
5
12
  ### [0.3.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.54...v0.3.56) (2025-02-21)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.56",
3
+ "version": "0.3.57",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
package/utils/utils.ts CHANGED
@@ -35,11 +35,11 @@ export const getCurrentPage = () => {
35
35
  }
36
36
  /** 合并url参数 url = /pages/data/index?id=1&name=2 urlParams = id=1&name=2&type=1 */
37
37
  export const getFinalUrl = (url: string, urlParams?: string) => {
38
- const params = parse(urlParams || '')
39
- const query = parse(url.split('?')[1] || '')
38
+ if (!urlParams) return url
39
+ const params = parse(urlParams)
40
+ const query = parse(url.split('?')[1])
40
41
  const path = url.split('?')[0]
41
42
  return `${path}?${stringify({
42
- ...getCurrentPage().options,
43
43
  ...query,
44
44
  ...params,
45
45
  })}`