hzerojs-plugin-yqcloud-jssdk 1.0.0 → 1.0.1

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 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -42,7 +42,7 @@ var import_index = require("./index.css");
42
42
  var YQ_API_HOST = "https://api.test.yqcloud.com";
43
43
  var src_default = (props) => {
44
44
  var _a, _b;
45
- const { token, entryDetail, apiHost = YQ_API_HOST } = props;
45
+ const { token, entryDetail, apiHost = YQ_API_HOST, tokenPath = "/iam/yqc/open_apps/quick/" } = props;
46
46
  debugger;
47
47
  const eleRef = import_react.default.useRef(null);
48
48
  const [appConfig, setAppConfig] = import_react.default.useState(false);
@@ -57,7 +57,6 @@ var src_default = (props) => {
57
57
  setIsVisble(false);
58
58
  }
59
59
  });
60
- ;
61
60
  observer.observe(eleRef.current);
62
61
  }
63
62
  return () => {
@@ -74,7 +73,7 @@ var src_default = (props) => {
74
73
  }
75
74
  }, [isVisible]);
76
75
  (0, import_react.useEffect)(() => {
77
- const url = `${apiHost}/iam/yqc/open_apps/quick/${token}`;
76
+ const url = `${apiHost}${tokenPath}${token}`;
78
77
  (0, import_axios.default)(url).then(function(jsonData) {
79
78
  try {
80
79
  if (jsonData && jsonData.failed) {
@@ -113,7 +112,7 @@ var src_default = (props) => {
113
112
  height: "calc(100vh - 100px)"
114
113
  },
115
114
  header: null,
116
- 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=${res2.accessToken}&token_type=bearer`, frameBorder: "0" }),
117
116
  footer: null
118
117
  });
119
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.0",
3
+ "version": "1.0.1",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {