fix: ノート詳細ページの新しいノートを表示する機能の動作が正しくなるように修正する (#8607)

* ノート詳細で新しいノートの表示が正しくないのを修正する

* ノート詳細から別のノート詳細を表示した時に前後の表示をリセットする
This commit is contained in:
xianon 2022-05-19 20:32:55 +09:00 committed by GitHub
parent 3abb0d589d
commit 0f33864df1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -108,6 +108,10 @@ export default defineComponent({
},
methods: {
fetch() {
this.hasPrev = false;
this.hasNext = false;
this.showPrev = false;
this.showNext = false;
this.note = null;
os.api('notes/show', {
noteId: this.noteId