Ver código fonte

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

tongshangming 3 anos atrás
pai
commit
58ac39600e
1 arquivos alterados com 1 adições e 1 exclusões
  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
   }