hzerojs-plugin-yqcloud-jssdk 1.0.13 → 1.0.15
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/lib/index.js +8 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -93,7 +93,7 @@ var src_default = (props) => {
|
|
|
93
93
|
if (tenantIdRef.current) {
|
|
94
94
|
xhr.setRequestHeader("x-tenant-id", tenantIdRef.current);
|
|
95
95
|
}
|
|
96
|
-
xhr.send(data);
|
|
96
|
+
xhr.send(JSON.stringify(data));
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
(0, import_react.useEffect)(() => {
|
|
@@ -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}
|
|
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) {
|