态势感知平台-增加武汉市开源建设生态页面展示
This commit is contained in:
@@ -96,7 +96,7 @@ const emitEvents = (type: 'success' | 'fail' = 'success', error_info?: string, p
|
||||
// 登录后回到登录前页面 hack一下automgit跳转
|
||||
if (route.query?.installation_id) {
|
||||
// window.location.href = `${(import.meta as any).env.VITE_HOST}${path || '/'}`;
|
||||
window.location.href = `${window.location.origin}/openRepoPortal${path || '/'}`;
|
||||
window.location.href = `${window.location.origin}/SAP${path || '/'}`;
|
||||
} else {
|
||||
url && localStorage.removeItem('loginReturnUrl');
|
||||
url ? window.location.href = url : router.replace('/');
|
||||
@@ -121,7 +121,7 @@ const emitEvents = (type: 'success' | 'fail' = 'success', error_info?: string, p
|
||||
message: error_info || type === 'success' ? '' : '你已取消授权',
|
||||
path
|
||||
// }, (import.meta as any).env.VITE_HOST);
|
||||
}, window.location.origin + '/openRepoPortal');
|
||||
}, window.location.origin + '/SAP');
|
||||
window?.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user