@das-fed/utils 7.0.7 → 7.0.8
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/api-services/index.js +1073 -1074
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +833 -834
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +833 -834
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +336 -355
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +844 -849
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +830 -835
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +843 -880
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +554 -573
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +331 -350
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1003 -1004
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +910 -915
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +882 -919
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +843 -880
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +843 -880
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +331 -350
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +830 -867
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +331 -350
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +843 -880
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +848 -849
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +835 -836
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +331 -350
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +833 -834
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +331 -350
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +338 -357
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.js +12 -13
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +227 -243
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/common-tools/extract-file-name/index.js +550 -566
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/platform-tools/index.d.ts +1 -1
- package/common-tools/platform-tools/index.js +15 -22
- package/create-api-service/index.js +331 -350
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +1 -1
- package/create-api-service/sso/index.js +321 -334
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +566 -582
- package/curring-http/index.js.gz +0 -0
- package/package.json +4 -4
- package/style/index.js +1 -1
- package/style/index.js.gz +0 -0
- package/vue/hooks/use-model-value/index.d.ts +1 -5
|
Binary file
|
|
@@ -9,7 +9,7 @@ export declare const isRelativeOrSameDomain: (url: string) => boolean;
|
|
|
9
9
|
* @param url
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
|
-
export declare const setShowLayout: (url: string) =>
|
|
12
|
+
export declare const setShowLayout: (url: string) => string;
|
|
13
13
|
export declare const setShowWatermark: (url: string) => string;
|
|
14
14
|
/**
|
|
15
15
|
* url携带token
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import { getToken as
|
|
2
|
-
const o = (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
return e.
|
|
13
|
-
}, s = (t) => {
|
|
14
|
-
if (!t) return "";
|
|
15
|
-
let e = "";
|
|
16
|
-
return o(t) && !t.includes("showWatermark=false") ? e = t.indexOf("?") !== -1 ? t + "&showWatermark=false" : t + "?showWatermark=false" : e = t, e;
|
|
17
|
-
}, i = (t) => {
|
|
18
|
-
const e = n();
|
|
19
|
-
return t.includes("?") ? `${t}&token=${e}` : `${t}?token=${e}`;
|
|
1
|
+
import { getToken as s } from "@das-fed/utils/common-info";
|
|
2
|
+
const o = (e) => !!(!e.startsWith("http") || e.startsWith(location.origin)), n = (e) => {
|
|
3
|
+
if (!e) return "";
|
|
4
|
+
let t = e;
|
|
5
|
+
return o(e) && !e.includes("showLayout=false") && (t = e.indexOf("?") !== -1 ? e + "&showLayout=false" : e + "?showLayout=false"), t;
|
|
6
|
+
}, i = (e) => {
|
|
7
|
+
if (!e) return "";
|
|
8
|
+
let t = "";
|
|
9
|
+
return o(e) && !e.includes("showWatermark=false") ? t = e.indexOf("?") !== -1 ? e + "&showWatermark=false" : e + "?showWatermark=false" : t = e, t;
|
|
10
|
+
}, r = (e) => {
|
|
11
|
+
const t = s();
|
|
12
|
+
return e.includes("?") ? `${e}&token=${t}` : `${e}?token=${t}`;
|
|
20
13
|
};
|
|
21
14
|
export {
|
|
22
15
|
o as isRelativeOrSameDomain,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
n as setShowLayout,
|
|
17
|
+
i as setShowWatermark,
|
|
18
|
+
r as withToken
|
|
26
19
|
};
|