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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. 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, res);
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 res2 = await import_axios.default.post(authUrl, {
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=${res2.accessToken}&token_type=bearer`, frameBorder: "0" }),
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzerojs-plugin-yqcloud-jssdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {