fix: stabilize review detail and collabora loading
This commit is contained in:
@@ -106,7 +106,7 @@ export const CollaboraViewer = forwardRef<CollaboraViewerHandle, CollaboraViewer
|
||||
const { config, loading, error } = useCollaboraConfig(fileId, mode, userId, userName);
|
||||
|
||||
// 2. 监听文档加载状态
|
||||
const { isDocumentLoaded } = useDocumentReady(iframeRef);
|
||||
const { isDocumentLoaded } = useDocumentReady(iframeRef, config?.iframeUrl);
|
||||
|
||||
// 2.5. 保存 iframe window 引用并在文档加载时清除所有高亮
|
||||
useEffect(() => {
|
||||
@@ -1194,4 +1194,3 @@ export const CollaboraViewer = forwardRef<CollaboraViewerHandle, CollaboraViewer
|
||||
// 导出类型和 hook
|
||||
export { useCollaboraUnoCommands };
|
||||
export type { CollaboraViewerHandle };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user