QYF-GitLab1
1 天以前 9cad6a832c786989be620573b09badccfe7e3b51
src/main.js
@@ -26,5 +26,9 @@
app.use(ElementPlus)
app.use(createPinia())
app.use(router)
app.mount('#app')
router.beforeEach((to, from, next) => {
  window.scrollTo({ top: 0 }) // 将滚动条位置设为0
  next()
})