From 1ac8f26334dc3c01da84895224f2d2ad7b779348 Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Sun, 2 Feb 2025 15:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/components/EditorToolbar.tsx | 3 +++ src/components/editor/hooks/useAutoSave.ts | 9 ++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/editor/components/EditorToolbar.tsx b/src/components/editor/components/EditorToolbar.tsx index e56b4fb..e245fe7 100644 --- a/src/components/editor/components/EditorToolbar.tsx +++ b/src/components/editor/components/EditorToolbar.tsx @@ -161,6 +161,9 @@ export function EditorToolbar({ {isDraft && ( 未保存 )} + {!isDraft && ( + 已保存 + )}