This commit is contained in:
yanran200730
2022-05-30 17:55:58 +08:00
parent 2243e5b0d6
commit 3fbc6c336f
5 changed files with 74 additions and 53 deletions

View File

@@ -91,6 +91,7 @@
this.img = query.img
this.type = query.type
this.templateId = query.templateId
this.albumId = query.albumId
this.getWatermarkList()
},
@@ -145,8 +146,17 @@
}
})
this.albumName = this.albumList[0].label
this.albumId = this.albumList[0].value
if (this.albumId) {
this.albumName = this.albumList.filter((v, index) => {
if (v.value === this.albumId) {
this.currIndex = index
}
return v.value === this.albumId
})[0].label
} else {
this.albumName = this.albumList[0].label
this.albumId = this.albumList[0].value
}
}
})
}