landjj321
2021-03-24 7a40618acb00bf5864ae0314e13aeb84e07e80ec
src/router/index.js
@@ -22,16 +22,21 @@
    meta: { title: '网站建设中...' }
  },
  {
     path: '/music_cn',
     component: () => import('@/views/music/music_china'),
     meta: { title: '中国音乐...'}
    path: '/music_cn',
    component: () => import('@/views/music/music_china'),
    meta: { title: '中国音乐...' }
  },
  {
       path: '/music_world',
       component: () => import('@/views/music/music_word'),
       meta: { title: '世界音乐...'}
    path: '/music_world',
    component: () => import('@/views/music/music_word'),
    meta: { title: '世界音乐...' }
  },
  {
    path: '/film_cn',
    component: () => import('@/views/film/film_china'),
    meta: { title: '中国影视' }
  },
  {
    path: '/',
    component: () => import('@/views/home/index'),
@@ -49,7 +54,7 @@
const router = createRouter()
// watch router change
router.beforeEach(async(to, from, next) => {
router.beforeEach(async (to, from, next) => {
  // set page title
  document.title = getPageTitle(to.meta.title)
  next()