Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
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
ynby
folacin-front
Commits
c8c30e69
Commit
c8c30e69
authored
Feb 18, 2025
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户id获取
parent
2dcc8b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.vue
folacin-app/src/views/index/index.vue
+5
-5
No files found.
folacin-app/src/views/index/index.vue
View file @
c8c30e69
...
...
@@ -39,7 +39,7 @@ export default {
if
(
path
!=
'/'
)
{
return
;
}
vm
.
getUserByToken
(
result
);
vm
.
getUserByToken
(
result
,
false
);
};
},
mounted
()
{
...
...
@@ -58,7 +58,7 @@ export default {
domain
:
window
.
location
.
href
};
this
.
initUserInfo
(
userInfo
,
true
);
this
.
getUserByToken
(
userInfo
);
this
.
getUserByToken
(
userInfo
,
true
);
}
else
{
let
query
=
this
.
$route
.
query
;
let
userInfo
=
{
...
...
@@ -80,15 +80,15 @@ export default {
this
.
msg
=
"账号获取失败!"
return
;
}
this
.
getUserByToken
(
userInfo
)
this
.
getUserByToken
(
userInfo
,
true
)
}
}
},
getUserByToken
(
userInfo
)
{
getUserByToken
(
userInfo
,
isPc
)
{
getUserByToken
(
userInfo
.
token
).
then
(
res
=>
{
if
(
res
.
code
==
'SUCCESS'
)
{
userInfo
.
userId
=
res
.
data
this
.
initUserInfo
(
userInfo
,
false
);
this
.
initUserInfo
(
userInfo
,
isPc
);
this
.
showMsg
();
}
else
{
this
.
msg
=
"用户id获取失败!"
...
...
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