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
079bb431
Commit
079bb431
authored
Oct 28, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
2c30bd35
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
tab.vue
components/dialog/user-dialog/tab.vue
+1
-1
default.vue
layouts/default.vue
+2
-0
index.js
store/index.js
+1
-1
No files found.
components/dialog/user-dialog/tab.vue
View file @
079bb431
...
...
@@ -5,7 +5,7 @@
<img
v-if=
"tabIndex === index"
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png"
alt=
""
>
<img
v-else
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png"
alt=
""
>
<div
class=
"text"
>
{{
text
}}
</div>
<div
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.04
5
`
}}
</div>
<div
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.04
6
`
}}
</div>
</div>
</div>
</div>
...
...
layouts/default.vue
View file @
079bb431
...
...
@@ -88,6 +88,8 @@ export default {
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
// return
}
console
.
log
(
'innerWidth'
,
innerWidth
,
(
innerWidth
<
1024
&&
innerWidth
<
innerHeight
))
console
.
log
(
'innerHeight'
,
innerHeight
)
if
((
innerWidth
<
1024
&&
innerWidth
<
innerHeight
)
||
(
isMobile
&&
innerWidth
<
innerHeight
))
{
this
.
initMobileSceen
()
this
.
isMoblie
=
true
...
...
store/index.js
View file @
079bb431
...
...
@@ -64,7 +64,7 @@ export const getters = {
let
is_mobile
=
false
const
{
innerWidth
,
innerHeight
,
}
=
state
const
minWidth
=
1024
if
(
innerWidth
<
minWidth
||
innerHeight
<
minWidth
)
{
if
(
innerWidth
<
minWidth
)
{
is_mobile
=
true
}
return
is_mobile
...
...
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