inleft
2022-01-21 b505f3648a10dd998ae9fe7a6edb1bf125d7d6a6
src/router/router.js
@@ -12,7 +12,16 @@
/*实例化路由*/
const router = new Router({
   mode: "history", //模式修改  
   routes: asyncRouterMap
   routes: asyncRouterMap,
   scrollBehavior (to, from, savedPosition) {
      //路由切换是否滚动到顶部
      if (savedPosition) {
        return savedPosition
       } else {
        return { x: 0, y: 0 }
       }
   }
})
router.beforeEach((to, from, next) => {