Skip to content

Commit

Permalink
fix(editor): 修复自动保存提示不展示的问
Browse files Browse the repository at this point in the history
  • Loading branch information
parisma committed Nov 10, 2022
1 parent d98d374 commit 0f0ec18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/CodeDraftEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const saveCode = async (): Promise<boolean> => {
// 删除草稿
services?.codeBlockService.removeCodeDraft(props.id);
emit('save', editorContent);
shouldShowDraftTip.value = true;
return true;
} catch (e: any) {
tMagicMessage.error(e.stack);
Expand Down

0 comments on commit 0f0ec18

Please sign in to comment.