function coppyArray(arr){
return arr.map((e)=>{
if(typeof e==='object'){
return Object.assign({},e);
}else{
return e;
}
})
} //這個好像不兼容IE所以使用下面那個
jsondeepclone (obj) {
return JSON.parse(JSON.stringify(obj))
}
第二種使用 this.$set()