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 ec64c9f commit 6181ed1Copy full SHA for 6181ed1
1 file changed
app/pages/package-docs/[...path].vue
@@ -164,7 +164,10 @@ function onTocClick(e: Event) {
164
}
165
166
if (import.meta.client) {
167
- watch(() => docsData.value?.toc, () => nextTick(updateActiveTocLink))
+ watch(
168
+ () => docsData.value?.toc,
169
+ () => nextTick(updateActiveTocLink),
170
+ )
171
onMounted(() => {
172
window.addEventListener('hashchange', updateActiveTocLink)
173
updateActiveTocLink()
@@ -197,7 +200,12 @@ if (import.meta.client) {
197
200
{{ $t('package.docs.contents') }}
198
201
</h2>
199
202
<!-- eslint-disable vue/no-v-html -->
- <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
+ />
209
</div>
210
</aside>
211
0 commit comments