Skip to content

Commit 6181ed1

Browse files
[autofix.ci] apply automated fixes
1 parent ec64c9f commit 6181ed1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ function onTocClick(e: Event) {
164164
}
165165
166166
if (import.meta.client) {
167-
watch(() => docsData.value?.toc, () => nextTick(updateActiveTocLink))
167+
watch(
168+
() => docsData.value?.toc,
169+
() => nextTick(updateActiveTocLink),
170+
)
168171
onMounted(() => {
169172
window.addEventListener('hashchange', updateActiveTocLink)
170173
updateActiveTocLink()
@@ -197,7 +200,12 @@ if (import.meta.client) {
197200
{{ $t('package.docs.contents') }}
198201
</h2>
199202
<!-- eslint-disable vue/no-v-html -->
200-
<div ref="tocContainerRef" class="toc-content" @click="onTocClick" v-html="docsData.toc" />
203+
<div
204+
ref="tocContainerRef"
205+
class="toc-content"
206+
@click="onTocClick"
207+
v-html="docsData.toc"
208+
/>
201209
</div>
202210
</aside>
203211

0 commit comments

Comments
 (0)