hzerojs-plugin-yqcloud-jssdk 1.0.13 → 1.0.14

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 +7 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -120,6 +120,12 @@ var src_default = (props) => {
120
120
  secret
121
121
  // code,
122
122
  });
123
+ const authParam = `redirectFlag&access_token=${res.accessToken}&token_type=bearer&state=&expires_in=86399&scope=default`;
124
+ const fieldData = sessionStorage.getItem("YQ_FIELD_DATA");
125
+ let urlParam = authParam;
126
+ if (fieldData) {
127
+ urlParam = `&fieldData=${fieldData}&${authParam}`;
128
+ }
123
129
  const modal = import_modal.default.open({
124
130
  // title: '测试',
125
131
  maskClosable: true,
@@ -137,7 +143,7 @@ var src_default = (props) => {
137
143
  height: "calc(100vh - 100px)"
138
144
  },
139
145
  header: null,
140
- children: /* @__PURE__ */ import_react.default.createElement("iframe", { id: "yq-sdk-frame", style: { width: "100%", height: "100%" }, src: `${openFunction.link}&redirectFlag&access_token=${res.accessToken}&token_type=bearer`, frameBorder: "0" }),
146
+ children: /* @__PURE__ */ import_react.default.createElement("iframe", { id: "yq-sdk-frame", style: { width: "100%", height: "100%" }, src: `${openFunction.link}${urlParam}`, frameBorder: "0" }),
141
147
  footer: null
142
148
  });
143
149
  function closeModal(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzerojs-plugin-yqcloud-jssdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {