We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4529965 commit 325b3f3Copy full SHA for 325b3f3
app/pages/package-docs/[...path].vue
@@ -155,8 +155,14 @@ function updateActiveTocLink(hash: string) {
155
}
156
157
if (import.meta.client) {
158
- watch(() => route.hash, hash => updateActiveTocLink(hash))
159
- watch(() => docsData.value?.toc, () => nextTick(() => updateActiveTocLink(route.hash)))
+ watch(
+ () => route.hash,
160
+ hash => updateActiveTocLink(hash),
161
+ )
162
163
+ () => docsData.value?.toc,
164
+ () => nextTick(() => updateActiveTocLink(route.hash)),
165
166
onMounted(() => updateActiveTocLink(route.hash))
167
168
</script>
0 commit comments