Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-04 10:36:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f58ef2f0b68932a7d33688c7f63586bb832036ff
f58ef2f0
1 parent
1958c6d4
fix(MyFamily): 为成员头像添加aspectFill模式防止图片变形
修复成员头像显示变形问题,通过添加image的mode属性为aspectFill来保持图片比例
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/MyFamily/index.vue
src/pages/MyFamily/index.vue
View file @
f58ef2f
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-0
3 16:18:16
* @LastEditTime: 2025-09-0
4 10:35:11
* @FilePath: /lls_program/src/pages/MyFamily/index.vue
* @Description: 我的家庭页面 - 展示用户加入的家庭列表
-->
...
...
@@ -54,6 +54,7 @@
<!-- 成员头像叠加效果 -->
<view class="avatar-overlap">
<image
mode="aspectFill"
v-for="(member, index) in family?.users?.slice(0, 4) || []"
:key="member.id"
:src="member.avatar_url || defaultAvatar"
...
...
Please
register
or
login
to post a comment