fix: stabilize review detail and collabora loading

This commit is contained in:
wren
2026-05-08 10:59:04 +08:00
parent 7fdb7386ee
commit 3da2a8d088
20 changed files with 319 additions and 284 deletions
+2 -3
View File
@@ -87,9 +87,8 @@ function buildCollaboraIframeUrl(params: {
}): string {
const { collaboraUrl, wopiSrc, accessToken, mode } = params;
// Collabora iframe 基础 URL
// fa80579 是 Collabora 的版本号标识,实际部署时可能需要调整
const baseUrl = `${collaboraUrl}/browser/fa80579/cool.html`;
// 使用稳定的 dist 入口,避免 Collabora 升级后版本号路径失效。
const baseUrl = `${collaboraUrl}/browser/dist/cool.html`;
const url = new URL(baseUrl);