wuhao %!s(int64=3) %!d(string=hai) anos
pai
achega
8274b8dc4b
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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() {
-    let row = this.$route.query.row;
-    if (row.id) {
+    let row = JSON.parse(this.$route.query.row)
+    if (row) {
       this.projectForm = row;
       this.addForm.projectId = this.versionForm.projectId = row.id;
       this.getList();

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

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