🎨 Refactor and optimize code

This commit is contained in:
landaiqing committed 2025-10-05 00:58:27 +08:00
1 parent c22e349181
commit d49ffc20df
16 files changed
+654 -673

No files matched your search

+6
View File
@@ -35,6 +35,12 @@ export const useDocumentStore = defineStore('document', () => {
// === 错误处理 ===
const setError = (docId: number, message: string) => {
selectorError.value = {docId, message};
// 3秒后自动清除错误状态
setTimeout(() => {
if (selectorError.value?.docId === docId) {
selectorError.value = null;
}
}, 3000);
};
const clearError = () => {