소스 검색

未登录状态 右侧不用出现 “编辑”图标

wkyy 2 년 전
부모
커밋
aa1ee77d7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pages/user/index.vue

+ 1 - 1
pages/user/index.vue

@@ -7,7 +7,7 @@
 		</view>
 			<view class="userHead-text">
 				<h3 :style="elderStatus ? 'font-size: 28px;' : ''">{{userId ? userPhone : '点击登录/注册'}}
-				 <text class="edit"> <img src="../../assets/img/edit-2-fill.svg" alt=""></text>
+				 <text class="edit" v-if="userId"> <img src="../../assets/img/edit-2-fill.svg" alt=""></text>
 				</h3>
 				<view class="tag" v-if="false">
 					<view class="tag-1">