sunkuosheng 3 gadi atpakaļ
vecāks
revīzija
3397bbf3cc
1 mainītis faili ar 17 papildinājumiem un 17 dzēšanām
  1. 17 17
      src/router/index.js

+ 17 - 17
src/router/index.js

@@ -8,24 +8,24 @@ import main from "../components/HelloWorld";
 export default new VueRouter({
     mode: 'history',
     routes: [
+        // {
+        //     path: '/',
+        //     component: main,
+        //     meta: {
+        //         type:'',
+        //         title: '监控'
+        //     },
+        // },
+        // {
+        //     path: '/:id',
+        //     component: main,
+        //     meta: {
+        //         type:'',
+        //         title: '监控'
+        //     },
+        // },
         {
-            path: '/',
-            component: main,
-            meta: {
-                type:'',
-                title: '监控'
-            },
-        },
-        {
-            path: '/:id',
-            component: main,
-            meta: {
-                type:'',
-                title: '监控'
-            },
-        },
-        {
-            path: '/main/',
+            path: '/main',
             component: main,
             meta: {
                 type:'',