| 123456789101112131415161718192021222324252627282930313233 |
- export default ({app, store}) => {
-
- if (process.client) {
- app.router.options.routes.unshift({
- name: 'kaifainSeoDetails_$',
- path: '/s/:tid',
- component: () => import('@/pages/kaifain/detail/_tid/index.vue')
- })
- app.router.options.routes.unshift({
- name: 'kaifainCaseSeoDetails_$',
- path: '/d/:tid',
- component: () => import('@/pages/kaifain/case/_tid.vue')
- })
- app.router.matcher.addRoutes([{
- name: 'kaifainSeoDetails_$',
- path: '/s/:tid',
- component: () => import('@/pages/kaifain/detail/_tid/index.vue')
- }, {
- name: 'kaifainCaseSeoDetails_$',
- path: '/d/:tid',
- component: () => import('@/pages/kaifain/case/_tid.vue')
- }])
- console.log('router', app.router)
- }
-
- app.router.beforeEach((to, from, next)=> {
- if (process.client) {
- console.log("location.href", to, from)
-
- }
- next()
- })
- }
|