hzerojs-plugin-yqcloud-jssdk 1.0.4 → 1.0.5
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 +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -84,14 +84,14 @@ var src_default = (props) => {
|
|
|
84
84
|
console.log("【YQCloud】解析配置成功:", appConfig2);
|
|
85
85
|
}
|
|
86
86
|
} catch (e) {
|
|
87
|
-
console.log("【YQCloud】解析配置失败:", e
|
|
87
|
+
console.log("【YQCloud】解析配置失败:", e);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}, [isVisible]);
|
|
91
91
|
const openModal = async (openFunction) => {
|
|
92
92
|
const secret = await import_axios.default.get(tokenPath || "/iam/v1/zknow/encrypt/quick");
|
|
93
93
|
const authUrl = `${apiHost}/oauth/public/quick_authentication?token=${token}`;
|
|
94
|
-
const
|
|
94
|
+
const res = await import_axios.default.post(authUrl, {
|
|
95
95
|
secret
|
|
96
96
|
// code,
|
|
97
97
|
});
|
|
@@ -112,7 +112,7 @@ var src_default = (props) => {
|
|
|
112
112
|
height: "calc(100vh - 100px)"
|
|
113
113
|
},
|
|
114
114
|
header: null,
|
|
115
|
-
children: /* @__PURE__ */ import_react.default.createElement("iframe", { id: "yq-sdk-frame", style: { width: "100%", height: "100%" }, src: `${openFunction.link}&redirectFlag&access_token=${
|
|
115
|
+
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" }),
|
|
116
116
|
footer: null
|
|
117
117
|
});
|
|
118
118
|
function closeModal(e) {
|