|
@@ -260,15 +260,15 @@ export default {
|
|
|
coms: {
|
|
|
handler(val) {
|
|
|
if (val == null) return;
|
|
|
- const newComList = JSON.parse(JSON.stringify(val));
|
|
|
+ /* const newComList = JSON.parse(JSON.stringify(val));
|
|
|
|
|
|
// 比较新旧值,只有在真正变化时才更新
|
|
|
if (JSON.stringify(this.comList) !== JSON.stringify(newComList)) {
|
|
|
this.comList = newComList;
|
|
|
- }
|
|
|
- /* console.log("val", val);
|
|
|
+ } */
|
|
|
+ console.log("val", val);
|
|
|
this.comList = JSON.parse(JSON.stringify(val));
|
|
|
- console.log("comList", this.comList); */
|
|
|
+ console.log("comList", this.comList);
|
|
|
/* console.log("val", val);
|
|
|
this.comList = this.carefulCopy(val);
|
|
|
console.log("comList", this.comList); */
|