src/router/index.js
@@ -79,7 +79,8 @@ children: [ { path: 'index', component: () => import('@/views/index'), // component: () => import('@/views/index'), component: () => import('@/views/visual/mapView/index.vue'), name: 'Index', meta: { title: '首页', icon: 'dashboard', affix: true }, }, @@ -202,7 +203,7 @@ }; export default new Router({ mode: 'history', // 去掉url中的# // mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, });