fix(label): fix save bug

This commit is contained in:
zhangheng
2026-04-21 19:36:32 +08:00
parent d7b2195078
commit ea4daa4631
3 changed files with 288 additions and 21 deletions

View File

@@ -2434,10 +2434,9 @@ const LabelPage = ({
const handleBeforeUnload = (e: any) => {
e.preventDefault()
e.returnValue = ""
// 备份
topRef.current.handleBackup("auto_backup")
// 清空操作栏状态
useObjectStore.getState().resetPathAndOperationStatus()
void topRef.current?.handleBackup?.("auto_backup")
}
// 更新Splitter状态