diff --git a/xian_favor/api.py b/xian_favor/api.py index 9cd71e0..151d93b 100644 --- a/xian_favor/api.py +++ b/xian_favor/api.py @@ -1860,8 +1860,8 @@ function showAddModal(type) { // 设置类型 document.getElementById('addType').value = type; - // 重置草稿ID - currentDraftId = null; + // 只有不是编辑草稿时才重置 + // currentDraftId 在 editDraft 中已设置,不要覆盖 // 设置弹窗标题和图标 const typeInfo = {