You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
407 B

8 months ago
import {
createRouter,
createWebHashHistory,
createWebHistory,
} from 'vue-router'
8 months ago
import { constRouter } from './module/constRouter'
import defineRouter from './module/constRouter/defineRouter'
8 months ago
const router = createRouter({
history: createWebHashHistory(),
8 months ago
routes: [...defineRouter, constRouter],
8 months ago
scrollBehavior() {
return {
left: 0,
top: 0,
}
},
})
export default router