Commit 4d1e167f authored by leiqingsong's avatar leiqingsong

修改

parent a7a2ad21
......@@ -76,3 +76,16 @@ export function logout(token) {
method: "post"
});
}
/**
* 获取用户信息
* @param {*} params userId
* @returns
*/
export function getUserInfo2(params) {
return request({
url: "/user/getByUserId",
method: "get",
params
})
}
......@@ -46,7 +46,7 @@
</template>
<script>
import { getUserInfo } from "@/api/user";
import { getUserInfo2 } from "@/api/user";
import { logoutToApp } from "@/utils/bridgeToAppFun";
import { logout } from "@/api/user";
import { fillInviteCode } from "@/api/user";
......@@ -65,11 +65,10 @@ export default {
},
mounted() {
this.getUser()
// this.avatar = 'http://8.131.244.76:81/upload/1615630436482.jpg';
},
methods: {
getUser() {
getUserInfo().then(res => {
getUserInfo2().then(res => {
if (res.code == 0) {
this.inviteeCode = res.data.inviteCode;
this.avatar = 'http://8.131.244.76:81/' + res.data.headImage;
......
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