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

用户id获取

parent 9b3830f0
<template> <template>
<div> <div>
<van-nav-bar fixed>
<template #title>
<div @click="debugInfo">
提示
</div>
</template>
</van-nav-bar>
<br> <br>
<van-divider />
<div v-if="msg"> <div v-if="msg">
<van-nav-bar fixed>
<template #title>
<div @click="debugInfo">
提示
</div>
</template>
</van-nav-bar>
<br> <br>
<van-divider/>
<br><br><br><br> <br><br><br><br>
<van-empty image="error" :description="msg"/> <van-empty image="error" :description="msg"/>
<van-button style="margin-left: 10%;width: 80%" round type="danger" color="#EC808D" @click="handleBack()"> <van-button style="margin-left: 10%;width: 80%" round type="danger" color="#EC808D" @click="handleBack()">
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
account: '18487125843', account: '18487125843',
token: 'd2e2c11475a04436bbcf1ca96a7ee056', token: 'd2e2c11475a04436bbcf1ca96a7ee056',
userId: null, userId: null,
domain: window.location.href, domain: this.$route.path,
}; };
this.initUserInfo(userInfo); this.initUserInfo(userInfo);
this.getUserByToken(userInfo); this.getUserByToken(userInfo);
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +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: this.$route.path,
}; };
this.initUserInfo(userInfo); this.initUserInfo(userInfo);
if (!userInfo.token && !userInfo.account) { if (!userInfo.token && !userInfo.account) {
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
}); });
this.$router.push('provideUnit'); this.$router.push('provideUnit');
}, },
debugInfo(){ debugInfo() {
this.$router.push('debugInfo'); this.$router.push('debugInfo');
}, },
}, },
......
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