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
edd2f347
Commit
edd2f347
authored
Feb 18, 2025
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户id获取
parent
ccd055af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
debugInfo.vue
folacin-app/src/views/index/debugInfo.vue
+3
-0
index.vue
folacin-app/src/views/index/index.vue
+4
-2
No files found.
folacin-app/src/views/index/debugInfo.vue
View file @
edd2f347
...
@@ -19,6 +19,9 @@
...
@@ -19,6 +19,9 @@
<van-cell
:title=
"'账号: '+userInfo.account"
/>
<van-cell
:title=
"'账号: '+userInfo.account"
/>
<van-cell
:title=
"'用户ID: '+userInfo.userId"
/>
<van-cell
:title=
"'用户ID: '+userInfo.userId"
/>
<van-cell
:title=
"'接入地址: '+userInfo.domain"
/>
<van-cell
:title=
"'接入地址: '+userInfo.domain"
/>
<van-cell
title=
"location:"
>
{{userInfo.location}}
</van-cell>
</van-list>
</van-list>
<br>
<br>
<van-button
style=
"margin-left: 10%;width: 80%"
round
type=
"primary"
color=
"#1989fa"
@
click=
"copyUserInfo()"
>
<van-button
style=
"margin-left: 10%;width: 80%"
round
type=
"primary"
color=
"#1989fa"
@
click=
"copyUserInfo()"
>
...
...
folacin-app/src/views/index/index.vue
View file @
edd2f347
...
@@ -55,7 +55,8 @@ export default {
...
@@ -55,7 +55,8 @@ export default {
account
:
'18487125843'
,
account
:
'18487125843'
,
token
:
'd2e2c11475a04436bbcf1ca96a7ee056'
,
token
:
'd2e2c11475a04436bbcf1ca96a7ee056'
,
userId
:
null
,
userId
:
null
,
domain
:
this
.
$route
.
path
,
domain
:
window
.
location
.
href
,
location
:
window
.
location
};
};
this
.
initUserInfo
(
userInfo
);
this
.
initUserInfo
(
userInfo
);
this
.
getUserByToken
(
userInfo
);
this
.
getUserByToken
(
userInfo
);
...
@@ -65,7 +66,8 @@ export default {
...
@@ -65,7 +66,8 @@ export default {
account
:
query
.
account
,
account
:
query
.
account
,
token
:
query
.
token
,
token
:
query
.
token
,
userId
:
null
,
userId
:
null
,
domain
:
this
.
$route
.
path
,
domain
:
window
.
location
.
href
,
location
:
window
.
location
};
};
this
.
initUserInfo
(
userInfo
);
this
.
initUserInfo
(
userInfo
);
if
(
!
userInfo
.
token
&&
!
userInfo
.
account
)
{
if
(
!
userInfo
.
token
&&
!
userInfo
.
account
)
{
...
...
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