@@ -41,11 +41,11 @@ export default {
watch: {
isShow: function(val) {
if (val) {
- // if (this.curObj.id) {
- // this.cObj = JSON.parse(JSON.stringify(this.curObj))
- // } else {
- // this.cObj = {}
- // }
+ if (this.curObj.id) {
+ this.cObj = JSON.parse(JSON.stringify(this.curObj))
+ } else {
+ this.cObj = {}
+ }
this.getDef()
}
},