可信代码库-配置文件修复定向URL改为动态获取
This commit is contained in:
@@ -23,7 +23,8 @@ const login = () => {
|
||||
return;
|
||||
} else {
|
||||
const type = loginType.includes(route?.query?.type) ? route?.query?.type : 'csdn';
|
||||
const returnUrl = `${(import.meta as any).env.VITE_HOST}${redirectUrl}`;
|
||||
// const returnUrl = `${(import.meta as any).env.VITE_HOST}${redirectUrl}`;
|
||||
const returnUrl = `${window.location.origin}/openRepoPortal${redirectUrl}`;
|
||||
// 保存登录前页面地址
|
||||
localStorage.setItem('loginReturnUrl', returnUrl || '');
|
||||
const url = `${(import.meta as any).env.VITE_API_HOST}${(import.meta as any).env.VITE_PASSPORT_PREFIX || ''}/api/v1/oauth/login/${type}`;
|
||||
|
||||
Reference in New Issue
Block a user