Browse Source

项目列表

wuhao 3 years ago
parent
commit
8274b8dc4b
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/views/project/list/detail.vue
  2. 1 1
      src/views/project/list/index.vue

+ 2 - 2
src/views/project/list/detail.vue

@@ -114,8 +114,8 @@ export default {
     };
     };
   },
   },
   mounted() {
   mounted() {
-    let row = this.$route.query.row;
-    if (row.id) {
+    let row = JSON.parse(this.$route.query.row)
+    if (row) {
       this.projectForm = row;
       this.projectForm = row;
       this.addForm.projectId = this.versionForm.projectId = row.id;
       this.addForm.projectId = this.versionForm.projectId = row.id;
       this.getList();
       this.getList();

+ 1 - 1
src/views/project/list/index.vue

@@ -107,7 +107,7 @@ export default {
       this.$router.push({
       this.$router.push({
         path: `/project/list/detail`,
         path: `/project/list/detail`,
         query: {
         query: {
-          row: row,
+          row: JSON.stringify(row),
           key: key,
           key: key,
         },
         },
       });
       });