@uxda/appkit 4.3.12 → 4.3.13

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
@@ -1122,7 +1122,7 @@ function useHttp$3() {
1122
1122
  const headers = {
1123
1123
  Token: appkitOptions.tempToken() || appkitOptions.token(),
1124
1124
  Appcode: appkitOptions.app(),
1125
- cookie: `tid=${appkitOptions.tenant()}`,
1125
+ tid: appkitOptions.tenant(),
1126
1126
  gray: appkitOptions.gray ? appkitOptions.gray() : "0"
1127
1127
  };
1128
1128
  const $http = createHttp({
@@ -3284,7 +3284,7 @@ function useHttp$2(defaultHeader) {
3284
3284
  const headers = {
3285
3285
  Token: appkitOptions.tempToken() || appkitOptions.token(),
3286
3286
  Appcode: defaultHeader?.Appcode || appkitOptions.app(),
3287
- cookie: `tid=${defaultHeader?.Tenant || appkitOptions.tenant()}`,
3287
+ tid: defaultHeader?.Tenant || appkitOptions.tenant(),
3288
3288
  gray: appkitOptions.gray ? appkitOptions.gray() : "0"
3289
3289
  };
3290
3290
  const $http = createHttp({
@@ -7011,7 +7011,7 @@ function useHttp$1() {
7011
7011
  const headers = {
7012
7012
  Token: appkitOptions.tempToken() || appkitOptions.token(),
7013
7013
  Appcode: appkitOptions.app(),
7014
- cookie: `tid=${appkitOptions.tenant()}`,
7014
+ tid: appkitOptions.tenant(),
7015
7015
  gray: appkitOptions.gray ? appkitOptions.gray() : "0"
7016
7016
  };
7017
7017
  const $http = createHttp({
@@ -8460,7 +8460,7 @@ function useHttp() {
8460
8460
  const headers = {
8461
8461
  Token: appkitOptions.tempToken() || appkitOptions.token(),
8462
8462
  Appcode: appkitOptions.app(),
8463
- cookie: `tid=${appkitOptions.tenant()}`,
8463
+ tid: appkitOptions.tenant(),
8464
8464
  gray: appkitOptions.gray ? appkitOptions.gray() : "0"
8465
8465
  };
8466
8466
  const $http = createHttp({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.12",
3
+ "version": "4.3.13",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -65,7 +65,7 @@ function useHttp() {
65
65
  const headers = {
66
66
  Token: appkitOptions.tempToken() || appkitOptions.token(),
67
67
  Appcode: appkitOptions.app(),
68
- cookie: `tid=${appkitOptions.tenant()}`,
68
+ tid: appkitOptions.tenant(),
69
69
  gray: appkitOptions.gray ? appkitOptions.gray() : '0',
70
70
  }
71
71
  /**
@@ -65,7 +65,7 @@ function useHttp() {
65
65
  const headers = {
66
66
  Token: appkitOptions.tempToken() || appkitOptions.token(),
67
67
  Appcode: appkitOptions.app(),
68
- cookie: `tid=${appkitOptions.tenant()}`,
68
+ tid: appkitOptions.tenant(),
69
69
  gray: appkitOptions.gray ? appkitOptions.gray() : '0',
70
70
  }
71
71
  /**
@@ -71,7 +71,7 @@ function useHttp(defaultHeader?: DefaultHeaderType) {
71
71
  const headers = {
72
72
  Token: appkitOptions.tempToken() || appkitOptions.token(),
73
73
  Appcode: defaultHeader?.Appcode || appkitOptions.app(),
74
- cookie: `tid=${defaultHeader?.Tenant || appkitOptions.tenant()}`,
74
+ tid: defaultHeader?.Tenant || appkitOptions.tenant(),
75
75
  gray: appkitOptions.gray ? appkitOptions.gray() : '0',
76
76
  }
77
77
 
@@ -65,7 +65,7 @@ function useHttp() {
65
65
  const headers: any = {
66
66
  Token: appkitOptions.tempToken() || appkitOptions.token(),
67
67
  Appcode: appkitOptions.app(),
68
- cookie: `tid=${appkitOptions.tenant()}`,
68
+ tid: appkitOptions.tenant(),
69
69
  gray: appkitOptions.gray ? appkitOptions.gray() : '0',
70
70
  }
71
71