QYF-GitLab1
10 小时以前 b13c22021fca126ecf0a4fc1ac315cfecd668ed8
src/router/index.js
@@ -27,16 +27,33 @@
          path: '/bookdetail',
          name: 'bookdetail',
          component: bookdetail,
          meta: {
            scrollToTop: true,
          },
        },
        {
          path: '/search',
          name: 'search',
          meta: {
            name: '搜索',
          },
          component: () => import('@/views/home/search.vue'),
        },
        {
          path: '/bookStore',
          name: 'bookStore',
          component: bookStore,
          meta: {
            scrollToTop: true,
          },
        },
        {
          path: '/textBookApply',
          name: 'textBookApply',
          component: () => import('@/views/bookStore/textBookApply.vue'),
          meta: {
            scrollToTop: true,
          },
        },
        //个人中心
        {
@@ -265,6 +282,9 @@
      ],
    },
  ],
  scrollBehavior(to, from, savedPosition) {
    return { x: 0, y: 0 }
  },
})
export default router