Browse Source

修复protable编辑的关联到列表的bug

tongshangming 3 years ago
parent
commit
58ac39600e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/ProTable.vue

+ 1 - 1
src/components/ProTable.vue

@@ -127,7 +127,7 @@ const handleUpdate = (row: any) => {
         formData.value = res.data
       })
     } else {
-      formData.value = row
+      formData.value = { ...row }
     }
     dialogVisible.value = true
   }