Commit edd2f347 authored by 罗成兵's avatar 罗成兵

用户id获取

parent ccd055af
...@@ -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()">
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment