zengyicheng 2 anos atrás
pai
commit
8b0e5cb506
1 arquivos alterados com 29 adições e 22 exclusões
  1. 29 22
      src/router/index.js

+ 29 - 22
src/router/index.js

@@ -2,6 +2,7 @@ import Vue from 'vue'
 import Router from 'vue-router'
 import ElementUI from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
+import login from '@/components/login'
 import eventCenter from '@/components/pages/race/eventCenter'
 import addRace from '@/components/pages/race/addRace'
 import anliDetail from '@/components/pages/race/eventCenter/anliDetail'
@@ -10,26 +11,32 @@ Vue.use(Router).use(ElementUI)
 
 export default new Router({
     routes: [{
-            path: '/eventCenter',
-            name: 'eventCenter',
-            component: eventCenter,
-            meta: {
-                requireAuth: '' // 不需要鉴权
-            }
-        }, {
-            path: '/addRace',
-            name: 'addRace',
-            component: addRace,
-            meta: {
-                requireAuth: '' // 不需要鉴权
-            }
-        }, {
-            path: '/anliDetail',
-            name: 'anliDetail',
-            component: anliDetail,
-            meta: {
-                requireAuth: '' // 不需要鉴权
-            }
-        },
-    ]
+        path: '/login',
+        name: 'login',
+        component: login,
+        meta: {
+            requireAuth: '' // 不需要鉴权
+        }
+    }, {
+        path: '/eventCenter',
+        name: 'eventCenter',
+        component: eventCenter,
+        meta: {
+            requireAuth: '' // 不需要鉴权
+        }
+    }, {
+        path: '/addRace',
+        name: 'addRace',
+        component: addRace,
+        meta: {
+            requireAuth: '' // 不需要鉴权
+        }
+    }, {
+        path: '/anliDetail',
+        name: 'anliDetail',
+        component: anliDetail,
+        meta: {
+            requireAuth: '' // 不需要鉴权
+        }
+    }, ]
 })