在这里插入代码
window.addEventListener('load', () => {
// 滚动事件变为 scroll
if (this.$route.path !== '/index') {
// index表示首页
在这里插入代码
window.addEventListener('load', () => {
// 滚动事件变为 scroll
if (this.$route.path !== '/index') {
// index表示首页