🐛 (note) reset stacked notes on repo click

This commit is contained in:
2021-03-16 23:00:33 +01:00
parent ad28b7aa0c
commit 4b32a97699
2 changed files with 7 additions and 1 deletions

View File

@@ -145,6 +145,10 @@ export const useNote = (
} }
} }
const resetStackedNotes = () => {
stackedNotes.value = []
}
onMounted(() => { onMounted(() => {
resizeContainer() resizeContainer()
}) })
@@ -161,6 +165,7 @@ export const useNote = (
titles, titles,
readme, readme,
notFound, notFound,
stackedNotes stackedNotes,
resetStackedNotes
} }
} }

View File

@@ -17,6 +17,7 @@
[<router-link [<router-link
:to="{ name: 'Home', params: { user, repo } }" :to="{ name: 'Home', params: { user, repo } }"
:key="routeKey" :key="routeKey"
@click="resetStackedNotes"
>{{ repo }}</router-link >{{ repo }}</router-link
>] >]
</h1> </h1>