修复渐变色bug

This commit is contained in:
X1627315083
2024-07-15 12:00:40 +08:00
parent 55d19a3969
commit 88f1b568c7
4 changed files with 24 additions and 15 deletions

View File

@@ -771,7 +771,7 @@ export default defineComponent({
this.colorList[this.selectIndex].gradient = JSON.parse(JSON.stringify(this.gradient))
}else{
this.selectColor = {rgba:this.colorList[this.selectIndex].gradient.gradientList[0].rgba}
this.colorList[this.selectIndex].gradient = ''
this.colorList[this.selectIndex].gradient = {}
}
let colorList =this.colorList.filter((v) => v && Object.keys(v).length)
this.setColorboardList(colorList)