修复design切换衣服后修改衣服的designType导致再次进行添加衣服会重复添加

This commit is contained in:
X1627315083
2025-11-17 15:20:28 +08:00
parent aeefc0c80f
commit 0bddfe16c9

View File

@@ -54,7 +54,8 @@ export default defineComponent({
const getDetailListData = reactive({
})
const selectImgItem = (file:any)=>{
const selectImgItem = (data:any)=>{
let file = JSON.parse(JSON.stringify(data))
if(props.type != 'models'){
if(!file.resData?.minIOPath){
file.minIOPath = getMinioUrl(file?.imgUrl || file?.resData?.url)