feat: 优化首页个人名片与内容入口
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
if (typeof window === 'undefined') return
|
||||
|
||||
let observer: IntersectionObserver | null = null
|
||||
@@ -38,7 +38,7 @@ export default defineNuxtPlugin(() => {
|
||||
})
|
||||
|
||||
// 首次加载
|
||||
onMounted(() => {
|
||||
nuxtApp.hook('app:mounted', () => {
|
||||
setTimeout(initScrollSpy, 100)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user