Parcourir la source

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

wkyy il y a 2 ans
Parent
commit
aa1ee77d7d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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">