Explorar o código

fix(frontend): 完善信息页面移除 hasFamily 门控 — 老用户编辑时始终显示表单

user-edit.vue form 区块被 v-if="isEdit && hasFamily" 门控,
当 store familyId 为空时显示 FamilyEmptyState(暂无数据)。
编辑个人资料不应依赖是否有家庭,改为老用户 (isNewUserFlow=false) 始终显示表单。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Xiaogang Liao hai 1 mes
pai
achega
ed7802c69e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cfc-frontend/pages/user-edit/user-edit.vue

+ 1 - 1
cfc-frontend/pages/user-edit/user-edit.vue

@@ -43,7 +43,7 @@
 		</view>
 
 		<!-- 详细信息填写(选择角色后显示) -->
-		<view v-if="isEdit && hasFamily">
+		<view v-if="isEdit && (!isNewUserFlow || hasFamily)">
 		<view class="form-section">
 			<!-- 头像 -->
 			<view class="form-item avatar-item">