Skip to content

Commit

Permalink
修复笔记页面,笔记状态问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Jul 5, 2021
1 parent ff7c5be commit 74c435b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/note/NotePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</div>

<div
v-else-if="note.status == -1"
v-else-if="note.status == -1 && note.md_content.length == 0"
@click="triggerCancel"
class="item"
>
Expand All @@ -87,7 +87,10 @@
</div>

<div
v-else-if="note.status == 1 && mode == 2"
v-else-if="
(note.status == -1 && note.md_content.length) ||
(note.status == 1 && mode == 2)
"
@click="triggerSave(true)"
class="item"
>
Expand Down

0 comments on commit 74c435b

Please sign in to comment.