@das-fed/utils 7.0.7-hot.47 → 7.0.7-hot.49
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 +967 -949
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +782 -800
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +782 -800
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/file/index.js +889 -907
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +782 -800
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +958 -972
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +782 -800
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +631 -635
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +799 -781
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +781 -799
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +200 -199
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +27 -26
- 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: $n,
|
|
1698
|
+
AxiosError: vn,
|
|
1699
|
+
CanceledError: Jn,
|
|
1700
|
+
isCancel: Vn,
|
|
1701
|
+
CancelToken: Wn,
|
|
1702
|
+
VERSION: Kn,
|
|
1703
|
+
all: Xn,
|
|
1704
|
+
Cancel: Gn,
|
|
1705
|
+
isAxiosError: Qn,
|
|
1706
|
+
spread: Zn,
|
|
1707
|
+
toFormData: Yn,
|
|
1708
|
+
AxiosHeaders: er,
|
|
1709
|
+
HttpStatusCode: tr,
|
|
1710
|
+
formToJSON: nr,
|
|
1711
|
+
getAdapter: rr,
|
|
1712
|
+
mergeConfig: sr
|
|
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 === "zhongshen" || e === "jmc";
|
|
1787
|
+
}, jn = () => {
|
|
1788
|
+
const e = localStorage.getItem("thirdLogouSource"), t = localStorage.getItem("loginType");
|
|
1789
|
+
return e === "jmc" && t === "das" ? !1 : e === "zhongshen" || e === "jmc";
|
|
1790
1790
|
}, tt = (e) => {
|
|
1791
1791
|
localStorage.removeItem("thirdLogouSource"), location.href = e;
|
|
1792
|
-
},
|
|
1792
|
+
}, In = (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
|
+
}, qn = async () => {
|
|
1796
1796
|
let e = "";
|
|
1797
1797
|
try {
|
|
1798
1798
|
const { baseURL: s } = nt();
|
|
@@ -1819,16 +1819,17 @@ 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;
|
|
1822
1823
|
const t = localStorage.getItem("thirdLogouSource");
|
|
1823
1824
|
if (t === "zhongshen") {
|
|
1824
|
-
|
|
1825
|
+
In(e);
|
|
1825
1826
|
return;
|
|
1826
1827
|
}
|
|
1827
|
-
t === "jmc" && await
|
|
1828
|
+
t === "jmc" && await qn();
|
|
1828
1829
|
};
|
|
1829
1830
|
export {
|
|
1830
|
-
|
|
1831
|
-
|
|
1831
|
+
jn as isThirdLogin,
|
|
1832
|
+
qn as jmcLogout,
|
|
1832
1833
|
or as thirdLogout,
|
|
1833
|
-
|
|
1834
|
+
In as zhongshenLogout
|
|
1834
1835
|
};
|
|
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.49",
|
|
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.49",
|
|
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.49",
|
|
25
|
+
"@das-fed/web": "7.0.7-hot.49",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|