This commit is contained in:
X1627315083
2024-10-15 17:44:37 +08:00
parent 939c1ae1de
commit f606a192d1
2 changed files with 32 additions and 13 deletions

View File

@@ -609,21 +609,33 @@ export default defineComponent({
this.clothesList = []
this.getLibraryList()
}else{
let rgba = {
r:this.current.color.r+"",
g:this.current.color.g+"",
b:this.current.color.b+"",
a:1
}
let ind = 0
this.store.state.UploadFilesModule.allBoardData?.colorBoards?.forEach((item,index) => {
this.colorList[index+1] = {
gradient:item.gradient,
rgba:item.rgbValue,
tcx:item.tcx,
name:item.name,
}
if(item.gradient){
this.colorList[index+1].gradient = item.gradient
console.log(JSON.stringify(rgba) , JSON.stringify(item.rgbValue));
if(JSON.stringify(rgba) == JSON.stringify(item.rgbValue)){
ind+=1
}else{
delete this.colorList[index+1].gradient
this.colorList[index+1 - ind] = {
gradient:item.gradient,
rgba:item.rgbValue,
tcx:item.tcx,
name:item.name,
}
if(item.gradient){
this.colorList[index+1 - ind].gradient = item.gradient
}else{
delete this.colorList[index+1 - ind].gradient
}
}
})
}
let DesignDetailEnd = this.$refs.DesignDetailEnd
DesignDetailEnd.init(num)
this.workspaceCom = computed(()=>{