Przeglądaj źródła

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

wkyy 2 lat temu
rodzic
commit
aa1ee77d7d
1 zmienionych plików z 1 dodań i 1 usunięć
  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">