Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
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-11-07 17:07:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
60c54a79740e80461ec5f1086dff5462116f0814
60c54a79
1 parent
eb17a096
图片通用高度自适应调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/common/mixin.js
src/common/mixin.js
View file @
60c54a7
/*
* @Date: 2022-07-26 09:49:54
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-0
4 16:43:21
* @LastEditTime: 2024-11-0
7 16:20:26
* @FilePath: /hager/src/common/mixin.js
* @Description: 文件描述
*/
...
...
@@ -37,7 +37,7 @@ export default {
handleResize
()
{
this
.
screenWidth
=
$
(
window
).
width
();
// 更新屏幕宽度
if
(
this
.
screenWidth
<
768
)
{
this
.
top_img_height
=
'20vh
'
;
this
.
top_img_height
=
$
(
window
).
width
()
*
0.39
+
'px
'
;
}
else
{
this
.
top_img_height
=
$
(
window
).
width
()
*
0.35
+
'px'
;
}
...
...
Please
register
or
login
to post a comment