hanqi před 6 roky
rodič
revize
a674e9dcab
2 změnil soubory, kde provedl 13 přidání a 12 odebrání
  1. 1 1
      src/components/report/ReportCreate.vue
  2. 12 11
      src/router/index.js

+ 1 - 1
src/components/report/ReportCreate.vue

@@ -72,7 +72,7 @@
 
 <script>
 export default {
-  name: "Report-Create",
+  name: "ReportCreate",
   components: {},
   data() {
     return {

+ 12 - 11
src/router/index.js

@@ -35,14 +35,19 @@ export default new Router({
       component: Mine
     },
     {
+      path: '/project/create',
+      name: 'ProjectCreate',
+      component: ProjectCreate
+    },
+    {
       path: '/project/:projectId',
       name: 'Project',
       component: Project
     },
     {
-      path: '/project/create',
-      name: 'ProjectCreate',
-      component: ProjectCreate
+      path: '/project/:projectId/task/create',
+      name: 'TaskCreate',
+      component: TaskCreate
     },
     {
       path: '/project/:projectId/task/:taskId',
@@ -50,19 +55,15 @@ export default new Router({
       component: Task
     },
     {
-      path: '/project/:projectId/task/create',
-      name: 'TaskCreate',
-      component: TaskCreate
+      path: '/report/create',
+      name: 'ReportCreate',
+      component: ReportCreate
     },
     {
       path: '/report/:reportId',
       name: 'Report',
       component: Report
     },
-    {
-      path: '/report/create',
-      name: 'ReportCreate',
-      component: ReportCreate
-    }
+   
   ]
 })