@das-fed/utils 7.0.7-hot.49 → 7.0.7-hot.50
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 +949 -967
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +800 -782
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/file/index.js +902 -888
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +972 -958
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +782 -800
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +782 -800
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +800 -782
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +782 -800
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +781 -799
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +199 -200
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +26 -27
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1694,22 +1694,22 @@ b.getAdapter = Qe.getAdapter;
|
|
|
1694
1694
|
b.HttpStatusCode = le;
|
|
1695
1695
|
b.default = b;
|
|
1696
1696
|
const {
|
|
1697
|
-
Axios:
|
|
1698
|
-
AxiosError:
|
|
1699
|
-
CanceledError:
|
|
1700
|
-
isCancel:
|
|
1701
|
-
CancelToken:
|
|
1702
|
-
VERSION:
|
|
1703
|
-
all:
|
|
1704
|
-
Cancel:
|
|
1705
|
-
isAxiosError:
|
|
1706
|
-
spread:
|
|
1707
|
-
toFormData:
|
|
1708
|
-
AxiosHeaders:
|
|
1709
|
-
HttpStatusCode:
|
|
1710
|
-
formToJSON:
|
|
1711
|
-
getAdapter:
|
|
1712
|
-
mergeConfig:
|
|
1697
|
+
Axios: zn,
|
|
1698
|
+
AxiosError: $n,
|
|
1699
|
+
CanceledError: vn,
|
|
1700
|
+
isCancel: Jn,
|
|
1701
|
+
CancelToken: Vn,
|
|
1702
|
+
VERSION: Wn,
|
|
1703
|
+
all: Kn,
|
|
1704
|
+
Cancel: Xn,
|
|
1705
|
+
isAxiosError: Gn,
|
|
1706
|
+
spread: Qn,
|
|
1707
|
+
toFormData: Zn,
|
|
1708
|
+
AxiosHeaders: Yn,
|
|
1709
|
+
HttpStatusCode: er,
|
|
1710
|
+
formToJSON: tr,
|
|
1711
|
+
getAdapter: nr,
|
|
1712
|
+
mergeConfig: rr
|
|
1713
1713
|
} = b;
|
|
1714
1714
|
/*! js-cookie v3.0.5 | MIT */
|
|
1715
1715
|
function v(e) {
|
|
@@ -1784,15 +1784,15 @@ function fe(e, t) {
|
|
|
1784
1784
|
var Pe = fe(kn, { path: "/" });
|
|
1785
1785
|
const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
|
|
1786
1786
|
uat: "https://sso-uat.jmc.com.cn"
|
|
1787
|
-
},
|
|
1788
|
-
const e = localStorage.getItem("thirdLogouSource")
|
|
1789
|
-
return e === "
|
|
1787
|
+
}, sr = () => {
|
|
1788
|
+
const e = localStorage.getItem("thirdLogouSource");
|
|
1789
|
+
return e === "zhongshen" || e === "jmc";
|
|
1790
1790
|
}, tt = (e) => {
|
|
1791
1791
|
localStorage.removeItem("thirdLogouSource"), location.href = e;
|
|
1792
|
-
},
|
|
1792
|
+
}, jn = (e) => {
|
|
1793
1793
|
const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
1794
1794
|
tt(n);
|
|
1795
|
-
},
|
|
1795
|
+
}, In = async () => {
|
|
1796
1796
|
let e = "";
|
|
1797
1797
|
try {
|
|
1798
1798
|
const { baseURL: s } = nt();
|
|
@@ -1819,17 +1819,16 @@ const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
tt(e);
|
|
1821
1821
|
}, or = async (e) => {
|
|
1822
|
-
if (!jn()) return;
|
|
1823
1822
|
const t = localStorage.getItem("thirdLogouSource");
|
|
1824
1823
|
if (t === "zhongshen") {
|
|
1825
|
-
|
|
1824
|
+
jn(e);
|
|
1826
1825
|
return;
|
|
1827
1826
|
}
|
|
1828
|
-
t === "jmc" && await
|
|
1827
|
+
t === "jmc" && await In();
|
|
1829
1828
|
};
|
|
1830
1829
|
export {
|
|
1831
|
-
|
|
1832
|
-
|
|
1830
|
+
sr as isThirdLogin,
|
|
1831
|
+
In as jmcLogout,
|
|
1833
1832
|
or as thirdLogout,
|
|
1834
|
-
|
|
1833
|
+
jn as zhongshenLogout
|
|
1835
1834
|
};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "7.0.7-hot.
|
|
3
|
+
"version": "7.0.7-hot.50",
|
|
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.7-hot.
|
|
12
|
+
"@das-fed/utils": "7.0.7-hot.50",
|
|
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.7-hot.
|
|
25
|
-
"@das-fed/web": "7.0.7-hot.
|
|
24
|
+
"@das-fed/cli": "7.0.7-hot.50",
|
|
25
|
+
"@das-fed/web": "7.0.7-hot.50",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|