Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
wanda-ball
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca9331c8
authored
May 23, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
24163a11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/pages/index/App.vue
+4
-2
src/pages/user/App.vue
+3
-1
No files found.
src/pages/index/App.vue
View file @
ca9331c8
...
@@ -45,14 +45,16 @@ export default {
...
@@ -45,14 +45,16 @@ export default {
// 请求入围信息,提前加载入围的信息防止入围公告闪烁
// 请求入围信息,提前加载入围的信息防止入围公告闪烁
// store.commit('getRuweiInfo');
// store.commit('getRuweiInfo');
if
(
localStorage
.
getItem
(
'token'
)
||
this
.
getQuery
(
'token'
))
{
if
(
localStorage
.
getItem
(
'token'
)
||
this
.
getQuery
(
'token'
)
)
{
if
(
this
.
getQuery
(
'token'
))
{
if
(
this
.
getQuery
(
'token'
))
{
store
.
commit
(
'setToken'
,
this
.
getQuery
(
'token'
))
store
.
commit
(
'setToken'
,
this
.
getQuery
(
'token'
))
}
}
store
.
commit
(
'getUserInfo'
)
store
.
commit
(
'getUserInfo'
)
}
else
{
}
else
{
store
.
dispatch
(
'getAuth'
)
if
(
!
this
.
getQuery
(
'code'
)
&&
!
store
.
state
.
token
)
{
store
.
dispatch
(
'getAuth'
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/pages/user/App.vue
View file @
ca9331c8
...
@@ -49,7 +49,9 @@ export default {
...
@@ -49,7 +49,9 @@ export default {
}
}
store
.
commit
(
'getUserInfo'
)
store
.
commit
(
'getUserInfo'
)
}
else
{
}
else
{
store
.
dispatch
(
'getAuth'
)
if
(
!
this
.
getQuery
(
'code'
)
&&
!
store
.
state
.
token
)
{
store
.
dispatch
(
'getAuth'
)
}
}
}
this
.
judgeShare
()
this
.
judgeShare
()
this
.
getActiveInfo
()
this
.
getActiveInfo
()
...
...
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