fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user