import {createRouter,createWebHashHistory,createWebHistory} from 'vue-router' const routes=[ { path:'/', name:'', component:()=>import('../views/index/index.vue') }, { path:'/index', name:'index', component:()=>import('../views/index/index.vue') }, { path:'/help', name:'help', component:()=>import('../views/help/Introductory.vue') }, { path:'/about', name:'about', component:()=>import('../views/about/About.vue') }, { path:'/start', name:'start', component:()=>import('../views/start/start.vue') }, { path:'/feedback', name:'feedback', component:()=>import('../views/feedback/FeedBack.vue') }, { path:'/check', name:'check', component:()=>import('../views/start/check.vue') }, { path:'/businessAgreementPrivacy', name:'AusinessAgreementPrivacy', component:()=>import('@/views/business/agreement/privacy.vue'), meta:{ isFullpage: true } }, { path:'/:pathMatch(.*)*', name:'NotFound', component:()=>import('@/components/PageNotFound.vue'), meta:{ isFullpage: true } }, { path:'/m', name:'m', component:()=>import('@/views/wxJump/WxJump.vue'), meta:{ isFullpage: true } }, { path:'/help', name:'/help', component:()=>import('@/views/help/Help.vue'), meta:{ isFullpage: true } } ]; const router = createRouter({ history:createWebHistory(), // history:createWebHashHistory(), routes, scrollBehavior(to, from, savedPosition) { // 总是滚动到顶部D return { top: 0 }; }, }) export default router;