소스 검색

redirecting to project detail page after creation

Dimitri Korsch 3 년 전
부모
커밋
b7f2a56a13
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frontend/src/views/project/Create.vue

+ 2 - 2
frontend/src/views/project/Create.vue

@@ -183,8 +183,8 @@
           return
 
         DataService.createProject(this.project).then(
-          () => {
-            this.$router.push({ name: 'projects' })
+          (project) => {
+            this.$router.push({ name: 'show_project', params: { id: project.id}})
         })
       }
     },