he wei
2024-12-23 6a4a27022809f9647c781d8135ac8afc3fb7c393
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'
 
Vue.use(Router);
 
const createRouter = () => new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({
    y: 0
  }),
  routes
})
 
const router = createRouter()
 
 
export default router;