fix: bug修改

This commit is contained in:
kenny
2025-11-14 10:31:07 +08:00
parent bc74352cd5
commit b7928cdda0
5 changed files with 67 additions and 20 deletions
+4 -2
View File
@@ -143,7 +143,8 @@ const fittingRoom = defineStore({
? this.currentClothes[1]?.fileUrl
: undefined,
suit: this.currentClothes?.[1]?.fileUrl ? true : undefined,
cloth_len: fittingRoomStore.selectPattern,
cloth_len: pattern.find((i) => i.value === this.currentClothes[0]?.len)?.label,
len: pattern.find((i) => i.value === this.currentClothes[0]?.len)?.label,
});
if (httpResponse.code !== 0) {
sheep.$helper.toast(httpResponse.msg);
@@ -196,9 +197,10 @@ const fittingRoom = defineStore({
},
// 点击衣服
changeClothes(data) {
console.log('changeClothes: 2222222222222222222222222222222',);
const shangyi = '95'; // 上衣
const xiazhuang = '96'; // 上衣
console.log('🚀 ~ changeClothes ~ data: ', data.clothType);
console.log('ppppppppppppppppp ~ changeClothes ~ data: xxxxx', data.clothType);
if (this.currentClothes?.length === 0) {
this.currentClothes = [data];
return;