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.
18 lines
407 B
18 lines
407 B
import { |
|
createRouter, |
|
createWebHashHistory, |
|
createWebHistory, |
|
} from 'vue-router' |
|
import { constRouter } from './module/constRouter' |
|
import defineRouter from './module/constRouter/defineRouter' |
|
const router = createRouter({ |
|
history: createWebHashHistory(), |
|
routes: [...defineRouter, constRouter], |
|
scrollBehavior() { |
|
return { |
|
left: 0, |
|
top: 0, |
|
} |
|
}, |
|
}) |
|
export default router
|
|
|