解决方法 添加 process.client 用于判断 // process.client 用于判断是否在客户端渲染 if (process.client) { _.throttle(() => { document.addEventListener('scroll', (