可信代码库-配置文件修复定向URL改为动态获取

This commit is contained in:
fmk1023
2025-08-26 17:52:32 +08:00
parent 9c58b289a2
commit 452eda019a
9 changed files with 22 additions and 11 deletions

View File

@@ -82,7 +82,8 @@ export default (config: any) => {
{ hostId, hostType, type }: { hostId: string, hostType: 'js' | 'css' | 'html', type: 'public' | 'asset'; }
) {
if (type === 'asset') {
return env.VITE_STATIC_HOST + '/' + filename;
// return env.VITE_STATIC_HOST + '/' + filename;
return `/openRepoPortal/${filename}`;
}
}
}