| | |
| | | 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'), |
| | |
| | | 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() |