inl-ui 0.1.122 → 0.1.123

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.
@@ -211,18 +211,20 @@ function getIframeUrl(url) {
211
211
  async function checkIframeUrl(url) {
212
212
  const iframeUrl = getIframeUrl(url);
213
213
  let code = 200;
214
- try {
215
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
216
- headers: getCommonHeaders()
217
- });
218
- if (res.status !== 404) {
219
- const json = await res.json();
220
- code = json.data;
221
- if (json.code === "M5001") {
222
- code = 500;
214
+ if (url.indexOf("noCheck") === -1) {
215
+ try {
216
+ const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
217
+ headers: getCommonHeaders()
218
+ });
219
+ if (res.status !== 404) {
220
+ const json = await res.json();
221
+ code = json.data;
222
+ if (json.code === "M5001") {
223
+ code = 500;
224
+ }
223
225
  }
224
- }
225
- } catch (e) {}
226
+ } catch (e) {}
227
+ }
226
228
  return code;
227
229
  }
228
230
 
@@ -183,18 +183,20 @@ function getIframeUrl(url) {
183
183
  async function checkIframeUrl(url) {
184
184
  const iframeUrl = getIframeUrl(url);
185
185
  let code = 200;
186
- try {
187
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
188
- headers: getCommonHeaders()
189
- });
190
- if (res.status !== 404) {
191
- const json = await res.json();
192
- code = json.data;
193
- if (json.code === "M5001") {
194
- code = 500;
186
+ if (url.indexOf("noCheck") === -1) {
187
+ try {
188
+ const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
189
+ headers: getCommonHeaders()
190
+ });
191
+ if (res.status !== 404) {
192
+ const json = await res.json();
193
+ code = json.data;
194
+ if (json.code === "M5001") {
195
+ code = 500;
196
+ }
195
197
  }
196
- }
197
- } catch (e) {}
198
+ } catch (e) {}
199
+ }
198
200
  return code;
199
201
  }
200
202
 
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
43
43
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
44
44
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
45
45
 
46
- var version = "0.1.121";
46
+ var version = "0.1.122";
47
47
 
48
48
  const setTheme = theme => {
49
49
  if (theme === "dark") {
@@ -7322,18 +7322,20 @@ function getIframeUrl(url) {
7322
7322
  async function checkIframeUrl(url) {
7323
7323
  const iframeUrl = getIframeUrl(url);
7324
7324
  let code = 200;
7325
- try {
7326
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7327
- headers: getCommonHeaders()
7328
- });
7329
- if (res.status !== 404) {
7330
- const json = await res.json();
7331
- code = json.data;
7332
- if (json.code === "M5001") {
7333
- code = 500;
7325
+ if (url.indexOf("noCheck") === -1) {
7326
+ try {
7327
+ const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7328
+ headers: getCommonHeaders()
7329
+ });
7330
+ if (res.status !== 404) {
7331
+ const json = await res.json();
7332
+ code = json.data;
7333
+ if (json.code === "M5001") {
7334
+ code = 500;
7335
+ }
7334
7336
  }
7335
- }
7336
- } catch (e) {}
7337
+ } catch (e) {}
7338
+ }
7337
7339
  return code;
7338
7340
  }
7339
7341
 
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.121";
14
+ var version = "0.1.122";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
13
13
  import { marked } from 'marked';
14
14
  import '@sszj-temp/mobile/style.css';
15
15
 
16
- var version = "0.1.121";
16
+ var version = "0.1.122";
17
17
 
18
18
  const setTheme = theme => {
19
19
  if (theme === "dark") {
@@ -7292,18 +7292,20 @@ function getIframeUrl(url) {
7292
7292
  async function checkIframeUrl(url) {
7293
7293
  const iframeUrl = getIframeUrl(url);
7294
7294
  let code = 200;
7295
- try {
7296
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7297
- headers: getCommonHeaders()
7298
- });
7299
- if (res.status !== 404) {
7300
- const json = await res.json();
7301
- code = json.data;
7302
- if (json.code === "M5001") {
7303
- code = 500;
7295
+ if (url.indexOf("noCheck") === -1) {
7296
+ try {
7297
+ const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7298
+ headers: getCommonHeaders()
7299
+ });
7300
+ if (res.status !== 404) {
7301
+ const json = await res.json();
7302
+ code = json.data;
7303
+ if (json.code === "M5001") {
7304
+ code = 500;
7305
+ }
7304
7306
  }
7305
- }
7306
- } catch (e) {}
7307
+ } catch (e) {}
7308
+ }
7307
7309
  return code;
7308
7310
  }
7309
7311
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.122",
3
+ "version": "0.1.123",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",