From 3eba91f16077b909d204ee6cd7ce22103d01529c Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 18 Dec 2023 16:04:05 +0800 Subject: [PATCH] fix --- src/component/HomePage/NewCollectionReview.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/component/HomePage/NewCollectionReview.vue b/src/component/HomePage/NewCollectionReview.vue index a44eb942..d87316a0 100644 --- a/src/component/HomePage/NewCollectionReview.vue +++ b/src/component/HomePage/NewCollectionReview.vue @@ -97,15 +97,20 @@ export default defineComponent({ watch: { sketchList:{ handler(newVal:any,oldVal:any){ + console.log(oldVal,newVal); + console.log(this.sketchList ); + // this.sketchList = [] // this.sketch = [[],[],[]] // this.sketchList = this.allBoardData.sketchboardFiles if(oldVal){ if(JSON.stringify(newVal)!=JSON.stringify(oldVal)){ this.setSketch() + this.imgOpen = true } }else{ this.setSketch() + this.imgOpen = true } @@ -132,7 +137,7 @@ export default defineComponent({ sketch2.num = 1 sketch3.num = 2 if(this.sketchList && this.sketchList!=null){ - for (let i = 0; i < this.sketchList.length; i++) { + for (let i = 0; i < this.sketchList?.length; i++) { let arr = [sketch1,sketch2,sketch3] let image = new Image() image.src = this.sketchList[i].urlWithWhiteSide