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
7bb78f7a
Commit
7bb78f7a
authored
Jul 07, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
21a977de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
index.vue
pages/index.vue
+1
-1
device.vue
pages/index/device.vue
+1
-1
index.vue
pages/index/game/index.vue
+1
-1
index.vue
pages/loading/index.vue
+2
-4
No files found.
pages/index.vue
View file @
7bb78f7a
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
const
{
id
}
=
data
const
{
id
}
=
data
if
(
id
)
{
if
(
id
)
{
if
(
this
.
$route
.
name
!==
'index-game-id'
)
{
if
(
this
.
$route
.
name
!==
'index-game-id'
)
{
this
.
$router
.
replace
(
`/game
/
${
id
}
`
)
this
.
$router
.
replace
(
`/game
?id=
${
id
}
`
)
}
}
}
}
})
})
...
...
pages/index/device.vue
View file @
7bb78f7a
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
method
:
'post'
,
method
:
'post'
,
data
,
data
,
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
this
.
$router
.
replace
(
`/game
/
${
id
}
`
)
this
.
$router
.
replace
(
`/game
?id=
${
id
}
`
)
})
})
},
},
}
}
...
...
pages/index/game/
_id
.vue
→
pages/index/game/
index
.vue
View file @
7bb78f7a
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
'deviceList'
,
'deviceList'
,
]),
]),
id
()
{
id
()
{
return
this
.
$route
.
params
.
id
return
this
.
$route
.
query
.
id
},
},
backgroundUrl
()
{
backgroundUrl
()
{
return
this
.
deviceButtonPanel
.
backgroundUrl
return
this
.
deviceButtonPanel
.
backgroundUrl
...
...
pages/loading/index.vue
View file @
7bb78f7a
...
@@ -125,13 +125,11 @@ export default {
...
@@ -125,13 +125,11 @@ export default {
this
.
GetBaseInfo
().
then
(()
=>
{
this
.
GetBaseInfo
().
then
(()
=>
{
const
{
redirectUrl
,
deviceId
}
=
this
.
$route
.
query
const
{
redirectUrl
,
deviceId
}
=
this
.
$route
.
query
if
(
deviceId
)
{
if
(
deviceId
)
{
const
params
=
{
id
:
deviceId
,
}
const
query
=
{
const
query
=
{
redirectUrl
,
redirectUrl
,
id
:
deviceId
,
}
}
this
.
$router
.
replace
({
path
:
`/game
/
${
deviceId
}
`
,
params
,
query
})
this
.
$router
.
replace
({
path
:
`/game
`
,
query
})
}
else
{
}
else
{
this
.
$router
.
replace
(
'/device'
)
this
.
$router
.
replace
(
'/device'
)
}
}
...
...
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