Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_h5
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
穆启卓
walk_daka_h5
Commits
569f4545
Commit
569f4545
authored
Apr 29, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的比赛改比赛中
parent
560584ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
main.js
src/main.js
+1
-1
MainPage.vue
src/views/MainPage.vue
+2
-2
No files found.
src/main.js
View file @
569f4545
...
@@ -59,7 +59,7 @@ router.beforeEach((to, from, next) => {
...
@@ -59,7 +59,7 @@ router.beforeEach((to, from, next) => {
// location.replace('#/author')
// location.replace('#/author')
}
}
}
else
if
(
to
.
name
===
'MainPagePartakeChallenge'
||
to
.
name
===
'MainPageHaveJoinedGame'
)
{
}
else
if
(
to
.
name
===
'MainPagePartakeChallenge'
||
to
.
name
===
'MainPageHaveJoinedGame'
)
{
// 处理tabbar去‘
当前比赛
’时,根据用户有没有参赛导向对应也页面
// 处理tabbar去‘
比赛中
’时,根据用户有没有参赛导向对应也页面
const
userHaveJoinGame
=
sessionStorage
.
getItem
(
'userHaveJoinGame'
);
const
userHaveJoinGame
=
sessionStorage
.
getItem
(
'userHaveJoinGame'
);
if
(
userHaveJoinGame
===
'true'
)
{
if
(
userHaveJoinGame
===
'true'
)
{
if
(
to
.
name
===
'MainPageHaveJoinedGame'
)
{
if
(
to
.
name
===
'MainPageHaveJoinedGame'
)
{
...
...
src/views/MainPage.vue
View file @
569f4545
...
@@ -44,9 +44,9 @@
...
@@ -44,9 +44,9 @@
index1Name
()
{
index1Name
()
{
const
userHaveJoinGame
=
sessionStorage
.
getItem
(
'userHaveJoinGame'
);
const
userHaveJoinGame
=
sessionStorage
.
getItem
(
'userHaveJoinGame'
);
if
(
userHaveJoinGame
===
'true'
)
{
if
(
userHaveJoinGame
===
'true'
)
{
return
'
我的比赛
'
;
return
'
比赛中
'
;
}
else
{
}
else
{
return
'
当前
比赛'
;
return
'
我的
比赛'
;
}
}
}
}
}
}
...
...
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