@das-fed/utils 7.0.5-beta.5 → 7.0.5-beta.6
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/modules/app-manage/index.js +725 -743
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +743 -725
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +725 -743
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1001 -987
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +744 -726
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +650 -646
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +746 -732
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +727 -745
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +745 -727
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +725 -743
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/common-tools/platform-tools/index.d.ts +1 -1
- package/common-tools/platform-tools/index.js +22 -15
- package/package.json +4 -4
|
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) => any;
|
|
13
13
|
export declare const setShowWatermark: (url: string) => string;
|
|
14
14
|
/**
|
|
15
15
|
* url携带token
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import { getToken as
|
|
2
|
-
const o = (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
return e.
|
|
1
|
+
import { getToken as n } from "@das-fed/utils/common-info";
|
|
2
|
+
const o = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
return new URL(t, location.origin).origin === location.origin;
|
|
5
|
+
} catch {
|
|
6
|
+
return !0;
|
|
7
|
+
}
|
|
8
|
+
}, r = (t) => {
|
|
9
|
+
if (!t) return "";
|
|
10
|
+
if (!o(t)) return t;
|
|
11
|
+
const e = new URL(t, location.origin);
|
|
12
|
+
return e.searchParams.has("showLayout") || e.searchParams.set("showLayout", "false"), e.toString();
|
|
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}`;
|
|
13
20
|
};
|
|
14
21
|
export {
|
|
15
22
|
o as isRelativeOrSameDomain,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
r as setShowLayout,
|
|
24
|
+
s as setShowWatermark,
|
|
25
|
+
i as withToken
|
|
19
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "7.0.5-beta.
|
|
3
|
+
"version": "7.0.5-beta.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/utils": "7.0.5-beta.
|
|
12
|
+
"@das-fed/utils": "7.0.5-beta.6",
|
|
13
13
|
"@vue/shared": "^3.4.21",
|
|
14
14
|
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"vue": "^3.4.21"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@das-fed/cli": "7.0.5-beta.
|
|
25
|
-
"@das-fed/web": "7.0.5-beta.
|
|
24
|
+
"@das-fed/cli": "7.0.5-beta.6",
|
|
25
|
+
"@das-fed/web": "7.0.5-beta.6",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|