🐛 (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(() => {
resizeContainer()
})
@@ -161,6 +165,7 @@ export const useNote = (
titles,
readme,
notFound,
stackedNotes
stackedNotes,
resetStackedNotes
}
}

View File

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