|
|
@@ -342,7 +342,10 @@ export function Home() {
|
|
|
jkLogin({ code: code, redirectUrl: encodeURIComponent(originUrl) }, state);
|
|
|
}
|
|
|
} else {
|
|
|
- const loginUrl = 'https://esctest.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
|
|
|
+ //测试环境
|
|
|
+ //const loginUrl = 'https://esctest.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
|
|
|
+ //生产环境
|
|
|
+ const loginUrl = 'https://esc.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
|
|
|
const externalLoginUrl = loginUrl + `&redirect_uri=${encodeURIComponent(originUrl)}&state=${encodeURIComponent(fullUrl)}`;
|
|
|
if (!userInfo) {
|
|
|
window.open(externalLoginUrl, '_self');
|