Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8a708d2a
authored
Jul 25, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面高度问题修改
1 parent
3ec9d040
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
public/index.html
src/App.vue
src/views/index.vue
public/index.html
View file @
8a708d2
...
...
@@ -4,7 +4,8 @@
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale"
id=
"viewportMeta"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0"
id=
"viewportMeta"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<
%= htmlWebpackPlugin.options.title %>
...
...
src/App.vue
View file @
8a708d2
...
...
@@ -33,7 +33,7 @@ export default {
}
html
,
body
{
height
:
100
vh
;
height
:
100
%
;
//
min-height
:
100%
;
//
min-height
:
100%
;
}
...
...
src/views/index.vue
View file @
8a708d2
...
...
@@ -223,15 +223,10 @@ export default defineComponent({
window
.
AMap
=
AMap
;
mapContentRefs
.
value
.
initMap
(
"container"
);
});
var
realHeight
=
window
.
innerWidth
>
window
.
innerHeight
?
window
.
innerWidth
:
window
.
innerHeight
;
initViewport
(
realHeight
);
initViewport
(
window
.
innerHeight
);
});
const
initViewport
=
(
height
)
=>
{
var
metaEl
=
document
.
querySelector
(
"#viewportMeta"
);
console
.
log
(
metaEl
);
var
content
=
"height="
+
height
+
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment