xinwei #19

Merged
root merged 2 commits from xinwei into master 2024-08-21 16:29:42 +08:00
Showing only changes of commit 377133dc73 - Show all commits

View File

@ -47,9 +47,9 @@
*/
function ssoLogin() {
const clientId = 'ludu-job-admin'; // 可以改写成,你的 clientId
const redirectUri = encodeURIComponent('http://127.0.0.1:9090/xxl-job-admin/toLogin'); // 注意,需要使用 encodeURIComponent 编码地址
const redirectUri = encodeURIComponent('https://mt.ptzykjgs.com/xxl-job-admin/toLogin'); // 注意,需要使用 encodeURIComponent 编码地址
const responseType = 'code'; // 1授权码模式对应 code2简化模式对应 token
window.location.href = 'http://127.0.0.1/admin/sso?client_id=' + clientId
window.location.href = 'https://mt.ptzykjgs.com/admin/sso?client_id=' + clientId
+ '&redirect_uri=' + redirectUri
+ '&response_type=' + responseType;
}