From 94819cac4efbd538ffd327266b27d991f06f51b1 Mon Sep 17 00:00:00 2001 From: liguigong Date: Mon, 29 Sep 2025 10:14:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(fittingRoom):=20=E6=B7=BB=E5=8A=A0=20isPers?= =?UTF-8?q?on=20=E5=AD=97=E6=AE=B5=E4=BB=A5=E7=A1=AE=E4=BF=9D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 fittingRoom.js 中添加 isPerson: true 字段- 修复用户信息页面中的计算属性调用问题 - 确保性别选择功能正常工作 --- pages/user/info.vue | 2 +- sheep/store/fittingRoom.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/user/info.vue b/pages/user/info.vue index 00e20a4..cd23555 100644 --- a/pages/user/info.vue +++ b/pages/user/info.vue @@ -211,7 +211,7 @@ ]; const userInfo = computed(() => sheep.$store('user').userInfo); - + computed() // 选择性别 function onChangeGender(e) { state.model.sex = e.detail.value; diff --git a/sheep/store/fittingRoom.js b/sheep/store/fittingRoom.js index c4232ae..d420201 100644 --- a/sheep/store/fittingRoom.js +++ b/sheep/store/fittingRoom.js @@ -136,6 +136,7 @@ const fittingRoom = defineStore({ isSync: 'yes', sex: this.sex, len: this.selectPattern, + isPerson: true, ...data, }); },