fix(fittingRoom):修复选择图案逻辑判断错误
- 修复了 selectPattern 判断条件中的语法错误- 简化了 pattern 匹配逻辑,提升代码可读性- 保证选中图案值正确回传至 store 状态管理器
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: liguigong liguigong@shopline.com
|
||||
* @Date: 2025-09-19 16:26:36
|
||||
* @LastEditors: liguigong liguigong@shopline.com
|
||||
* @LastEditTime: 2025-10-16 14:21:02
|
||||
* @LastEditTime: 2025-11-14 11:07:01
|
||||
* @FilePath: pages/fittingRoom/components/s-grid-clothes.vue
|
||||
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
||||
-->
|
||||
@@ -61,9 +61,7 @@
|
||||
fittingRoomStore.selectClothesType = fittingRoomStore.tabsMap.includes(Number(item.clothType))
|
||||
? Number(item.clothType)
|
||||
: fittingRoomStore.selectClothesType;
|
||||
fittingRoomStore.selectPattern = pattern.some((v) => {
|
||||
v.value === item.len;
|
||||
})
|
||||
fittingRoomStore.selectPattern = pattern.some((v) => v.value === item.len)
|
||||
? item.len
|
||||
: fittingRoomStore.selectPattern;
|
||||
sheep.$router.go('/pages/uploadClothes/index', {
|
||||
|
||||
Reference in New Issue
Block a user