2026-04-10 16:10:07 +08:00

14 lines
339 B
TypeScript

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './style.css'
// 由路由统一控制滚动,避免浏览器 scroll restoration 与 SPA 抢滚动
if ('scrollRestoration' in history) {
history.scrollRestoration = 'manual'
}
const app = createApp(App)
app.use(router)
app.mount('#app')