Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game-nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
eslotsys-game-nuxt
Commits
ee02fdfd
Commit
ee02fdfd
authored
Jul 03, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
屏幕逻辑优化
parent
984ab81e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
default.vue
layouts/default.vue
+11
-1
index.vue
pages/index.vue
+3
-1
No files found.
layouts/default.vue
View file @
ee02fdfd
...
@@ -41,7 +41,15 @@ export default {
...
@@ -41,7 +41,15 @@ export default {
}),
}),
initSceen
()
{
initSceen
()
{
let
zoom
=
1
let
zoom
=
1
const
{
innerWidth
,
innerHeight
}
=
window
console
.
log
(
'innerWidth'
,
innerWidth
)
console
.
log
(
'innerHeight'
,
innerHeight
)
if
(
innerWidth
/
innerHeight
>
1080
/
608
)
{
console
.
log
(
'比例'
)
zoom
=
window
.
innerHeight
/
608
}
else
{
zoom
=
window
.
innerWidth
/
1080
zoom
=
window
.
innerWidth
/
1080
}
this
.
zoom
=
zoom
this
.
zoom
=
zoom
},
},
},
},
...
@@ -65,5 +73,7 @@ export default {
...
@@ -65,5 +73,7 @@ export default {
width
:
1080px
;
width
:
1080px
;
height
:
608px
;
height
:
608px
;
position
:
relative
;
position
:
relative
;
margin-left
:
auto
;
margin-right
:
auto
;
}
}
</
style
>
</
style
>
pages/index.vue
View file @
ee02fdfd
...
@@ -48,9 +48,11 @@ export default {
...
@@ -48,9 +48,11 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.main-layout
{
.main-layout
{
height
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
}
.main-content
{
.main-content
{
height
:
100%
;
flex
:
1
;
overflow
:
auto
;
overflow
:
auto
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment