@uxda/appkit 1.2.4 → 1.2.6

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/dist/index.js CHANGED
@@ -424,7 +424,7 @@ function useHttp$1() {
424
424
  Token: appkitOptions.token(),
425
425
  Appcode: appkitOptions.app(),
426
426
  cookie: `tid=${appkitOptions.tenant()}`,
427
- gray: appkitOptions.gray()
427
+ gray: appkitOptions.gray ? appkitOptions.gray() : "0"
428
428
  };
429
429
  const $http = createHttp({
430
430
  vendor: vendor$1,
@@ -812,7 +812,7 @@ function useHttp() {
812
812
  Token: appkitOptions.token(),
813
813
  Appcode: appkitOptions.app(),
814
814
  cookie: `tid=${appkitOptions.tenant()}`,
815
- gray: appkitOptions.gray()
815
+ gray: appkitOptions.gray ? appkitOptions.gray() : "0"
816
816
  };
817
817
  const $http = createHttp({
818
818
  vendor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -36,7 +36,7 @@ function useHttp() {
36
36
  Token: appkitOptions.token(),
37
37
  Appcode: appkitOptions.app(),
38
38
  cookie: `tid=${appkitOptions.tenant()}`,
39
- gray: appkitOptions.gray(),
39
+ gray: appkitOptions.gray ? appkitOptions.gray() : '0',
40
40
  }
41
41
  /**
42
42
  * 传入配置获取 Http instanse
@@ -36,7 +36,7 @@ function useHttp() {
36
36
  Token: appkitOptions.token(),
37
37
  Appcode: appkitOptions.app(),
38
38
  cookie: `tid=${appkitOptions.tenant()}`,
39
- gray: appkitOptions.gray(),
39
+ gray: appkitOptions.gray ? appkitOptions.gray() : '0',
40
40
  }
41
41
  /**
42
42
  * 传入配置获取 Http instanse