xinfeng 5 lat temu
rodzic
commit
d4d36bdf49
1 zmienionych plików z 5 dodań i 20 usunięć
  1. 5 20
      plugins/router.js

+ 5 - 20
plugins/router.js

@@ -7,6 +7,11 @@ export default ({ app, store }) => {
 
     if (isKaifain) {
       app.router.options.routes.unshift({
+        name: 'kaifain_$',
+        path: '/',
+        component: () => import('@/pages/kaifain/index.vue')
+      })
+      app.router.options.routes.unshift({
         name: 'kaifainSeoDetails_$',
         path: '/s/:tid',
         component: () => import('@/pages/kaifain/detail/_tid/index.vue')
@@ -16,16 +21,6 @@ export default ({ app, store }) => {
         path: '/d/:tid',
         component: () => import('@/pages/kaifain/case/_tid.vue')
       })
-      app.router.options.routes.unshift({
-        name: 'kaifainSeoIndex_$',
-        path: '/kaifain/*',
-        component: import('@/pages/kaifain/index.vue')
-      })
-      app.router.options.routes.unshift({
-        name: 'kaifainSeoAll_$',
-        path: '/kaifain/s',
-        component: import('@/pages/kaifain/index.vue')
-      })
       app.router.matcher.addRoutes([{
         name: 'kaifainSeoDetails_$',
         path: '/s/:tid',
@@ -35,16 +30,6 @@ export default ({ app, store }) => {
         path: '/d/:tid',
         component: () => import('@/pages/kaifain/case/_tid.vue')
       }])
-      app.router.matcher.addRoutes([{
-        name: 'kaifainSeoIndex_$',
-        path: '/kaifain/*',
-        component: import('@/pages/kaifain/index.vue')
-      }])
-      app.router.matcher.addRoutes([{
-        name: 'kaifainSeoAll_$',
-        path: '/kaifain/s',
-        component: import('@/pages/kaifain/index.vue')
-      }])
     }
 
     if (isJishuin) {