Skip to content

Commit 325b3f3

Browse files
[autofix.ci] apply automated fixes
1 parent 4529965 commit 325b3f3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/pages/package-docs/[...path].vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,14 @@ function updateActiveTocLink(hash: string) {
155155
}
156156
157157
if (import.meta.client) {
158-
watch(() => route.hash, hash => updateActiveTocLink(hash))
159-
watch(() => docsData.value?.toc, () => nextTick(() => updateActiveTocLink(route.hash)))
158+
watch(
159+
() => route.hash,
160+
hash => updateActiveTocLink(hash),
161+
)
162+
watch(
163+
() => docsData.value?.toc,
164+
() => nextTick(() => updateActiveTocLink(route.hash)),
165+
)
160166
onMounted(() => updateActiveTocLink(route.hash))
161167
}
162168
</script>

0 commit comments

Comments
 (0)