Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-13 10:27:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a030160e34a3b6d3eabd4591da353ed2f543fd3
0a030160
1 parent
bc379b63
fix(StudentInfo): 修复图片预览时未显示原图的问题
修改图片预览逻辑,移除预览时添加的缩略图参数以保证显示原图
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/StudentInfo.vue
src/views/StudentInfo.vue
View file @
0a03016
<!--
* @Date: 2025-11-10 18:12:23
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-11-1
2 20:26:46
* @LastEditTime: 2025-11-1
3 10:27:23
* @FilePath: /stdj_h5/src/views/StudentInfo.vue
* @Description: 戒子详情页
-->
...
...
@@ -106,7 +106,7 @@ const loadUserInfo = async () => {
if (student_info.value.photo?.length) {
student_info.value.photo = student_info.value.photo.map(item => ({
id: item.id,
src: item.url,
src: item.url
+ '?imageMogr2/thumbnail/400x/strip/quality/70'
,
title: item.name,
height: Math.floor(Math.random() * 200) + 200
}))
...
...
@@ -146,7 +146,7 @@ const distributeImages = (images) => {
// 图片点击事件 - 仅预览当前单张图片
const onImageClick = (item) => {
showImagePreview({
images: [item.src],
images: [item.src
.replace('?imageMogr2/thumbnail/400x/strip/quality/70', '')
],
startPosition: 0,
showIndex: false,
loop: false,
...
...
Please
register
or
login
to post a comment