licp
2024-04-29 ea1a8cf41c11f8f533cea594e1f1c03640cf4a96
src/router/router.js
@@ -8,7 +8,7 @@
//创建路由
const createRouter = () => {
  return new VueRouter({
    mode: 'history',
    // mode: 'history',
    scrollBehavior (to, from, savedPosition) {
      if (savedPosition) {
        return savedPosition