Commit 7959da1d authored by 罗成兵's avatar 罗成兵

用户id获取

parent edd2f347
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
<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,8 +55,7 @@ export default { ...@@ -55,8 +55,7 @@ export default {
account: '18487125843', account: '18487125843',
token: 'd2e2c11475a04436bbcf1ca96a7ee056', token: 'd2e2c11475a04436bbcf1ca96a7ee056',
userId: null, userId: null,
domain: window.location.href, domain: window.location.href
location:window.location
}; };
this.initUserInfo(userInfo); this.initUserInfo(userInfo);
this.getUserByToken(userInfo); this.getUserByToken(userInfo);
...@@ -66,8 +65,7 @@ export default { ...@@ -66,8 +65,7 @@ export default {
account: query.account, account: query.account,
token: query.token, token: query.token,
userId: null, userId: null,
domain: window.location.href, 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