@mpxjs/api-proxy 2.8.25-alpha.19 → 2.8.25-alpha.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/api-proxy",
3
- "version": "2.8.25-alpha.19",
3
+ "version": "2.8.25-alpha.21",
4
4
  "description": "convert miniprogram API at each end",
5
5
  "module": "src/index.js",
6
6
  "types": "@types/index.d.ts",
@@ -39,5 +39,5 @@
39
39
  "dependencies": {
40
40
  "axios": "^0.21.1"
41
41
  },
42
- "gitHead": "fed88f10a76c55cc2be19369b4b754191984d3a3"
42
+ "gitHead": "50e082d9c9876427d8e6be6a4fb31780bc9698d3"
43
43
  }
@@ -34,7 +34,7 @@ function redirectTo (options = {}) {
34
34
  {
35
35
  url,
36
36
  animated: false,
37
- params: query,
37
+ params: Object.assign({}, query, options.query || {}),
38
38
  closeSelf: true
39
39
  },
40
40
  // 执行环境变了 得不到执行的机会 故回调无效
@@ -61,7 +61,7 @@ function navigateTo (options = {}) {
61
61
  Navigator.openPage({
62
62
  url,
63
63
  animated: true,
64
- params: query
64
+ params: Object.assign({}, query, options.query || {})
65
65
  }, () => {})
66
66
  const res = { errMsg: 'redirectTo:ok', eventChannel }
67
67
  webHandleSuccess(res, options.success, options.complete)