hzerojs-plugin-yqcloud-jssdk 1.0.16 → 1.0.18

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -90,6 +90,7 @@ var src_default = (props) => {
90
90
  url
91
91
  );
92
92
  xhr.setRequestHeader("Accept", "application/json");
93
+ xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
93
94
  if (tenantIdRef.current) {
94
95
  xhr.setRequestHeader("x-tenant-id", tenantIdRef.current);
95
96
  }
@@ -120,11 +121,11 @@ var src_default = (props) => {
120
121
  secret
121
122
  // code,
122
123
  });
123
- const authParam = `redirectFlag&access_token=${res.accessToken}&token_type=bearer&state=&expires_in=86399&scope=default`;
124
+ const authParam = `&redirectFlag&access_token=${res.accessToken}&token_type=bearer&state=&expires_in=86399&scope=default`;
124
125
  const fieldData = sessionStorage.getItem("YQ_FIELD_DATA");
125
126
  let urlParam = authParam;
126
127
  if (fieldData) {
127
- urlParam = `&fieldData=${fieldData}&${authParam}`;
128
+ urlParam = `&fieldData=${fieldData}${authParam}`;
128
129
  }
129
130
  const modal = import_modal.default.open({
130
131
  // title: '测试',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzerojs-plugin-yqcloud-jssdk",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {