瀏覽代碼

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}})
         })
       }
     },