yuang-framework-ui-common 1.0.5 → 1.0.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/lib/utils/ssoUtils.ts +3 -3
- package/package.json +1 -1
package/lib/utils/ssoUtils.ts
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import Cookies from 'js-cookie'
|
5
5
|
|
6
6
|
const getSsoLoginUrl = (redirectUrl = '') => {
|
7
|
-
let ssoLoginUrl = (window as any).
|
7
|
+
let ssoLoginUrl = (window as any).$config.apiFullBaseUrl ?? '' + '/sso-api/server/sso/login';
|
8
8
|
if (!redirectUrl) {
|
9
9
|
ssoLoginUrl += `?redirectUrl=${encodeURIComponent(window.location.href)}`;
|
10
10
|
} else if (redirectUrl) {
|
@@ -14,7 +14,7 @@ const getSsoLoginUrl = (redirectUrl = '') => {
|
|
14
14
|
}
|
15
15
|
|
16
16
|
const getSsoLogoutUrl = (redirectUrl = '') => {
|
17
|
-
let ssoLogoutUrl = (window as any).
|
17
|
+
let ssoLogoutUrl = (window as any).$config.apiFullBaseUrl ?? '' + '/sso-api/server/sso/logout';
|
18
18
|
if (!redirectUrl) {
|
19
19
|
ssoLogoutUrl += `?redirectUrl=${encodeURIComponent(window.location.href)}`;
|
20
20
|
} else if (redirectUrl) {
|
@@ -24,7 +24,7 @@ const getSsoLogoutUrl = (redirectUrl = '') => {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
/**
|
27
|
-
*
|
27
|
+
* 获取sso登录路由路径
|
28
28
|
* @param redirectRoutePath
|
29
29
|
*/
|
30
30
|
const getSsoLoginRoutePath = (redirectRoutePath = '') => {
|