SAP打包配置修改

This commit is contained in:
fmk1023
2025-12-25 14:54:23 +08:00
parent b80ff647c9
commit 29fa1a2199
14 changed files with 18 additions and 18 deletions

View File

@@ -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}/tcode${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 + '/tcode');
}, window.location.origin + '/SAP');
window?.close();
}
}

View File

@@ -24,7 +24,7 @@ const login = () => {
} else {
const type = loginType.includes(route?.query?.type) ? route?.query?.type : 'csdn';
// const returnUrl = `${(import.meta as any).env.VITE_HOST}${redirectUrl}`;
const returnUrl = `${window.location.origin}/tcode${redirectUrl}`;
const returnUrl = `${window.location.origin}/SAP${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}`;

View File

@@ -142,7 +142,7 @@ const createOrgItem = {
orgUrl: {
label: '组织URL',
// prefix: `${(import.meta as any).env.VITE_HOST}/`,
prefix: `${window.location.origin}/tcode/`,
prefix: `${window.location.origin}/SAP/`,
placeholder: '请输入',
occupied: 'namespace已被使用',
ruleDesc: {