Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
meihua-island-book
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
2024-03-28 18:21:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b96e37a7860d330f9edf374b162751d11921973
7b96e37a
1 parent
9dc17372
fix 修复图片展示宽度
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/pages/detail/index.vue
src/pages/detail/index.vue
View file @
7b96e37
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-03-28 1
3:00:53
* @LastEditTime: 2024-03-28 1
8:20:06
* @FilePath: /meihuaApp/src/pages/detail/index.vue
* @Description: 房间详情页面
-->
...
...
@@ -187,7 +187,8 @@ onMounted(async () => {
// 给所有 img 标签添加 mode 缩放模式
Taro.options.html.transformElement = (el) => {
if (el.nodeName === 'image') {
el.setAttribute('mode', 'widthFix')
el.setAttribute('mode', 'widthFix');
el.setAttribute('style', 'width: 100%');
}
return el
}
...
...
Please
register
or
login
to post a comment