瀏覽代碼

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

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">