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.
27 lines
535 B
27 lines
535 B
1 month ago
|
import { createRouter, createWebHashHistory } from "vue-router";
|
||
|
import layout from '@/layout/index.vue'
|
||
|
const routerList :any = [
|
||
|
{
|
||
|
path: "/",
|
||
|
component: layout,
|
||
|
children:[
|
||
|
{
|
||
|
path:'',
|
||
|
name:'Home',
|
||
|
component:() => import('@/views/largeDataScreen/home.vue')
|
||
|
},
|
||
|
|
||
|
]
|
||
|
},
|
||
|
];
|
||
|
const router :any = createRouter({
|
||
|
history: createWebHashHistory(),
|
||
|
routes: routerList,
|
||
|
scrollBehavior() {
|
||
|
return {
|
||
|
left: 0,
|
||
|
top: 0,
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
export default router
|