Commit 8ebe11b0 authored by leiqingsong's avatar leiqingsong

修改

parent b9ae2be8
......@@ -61,8 +61,9 @@ export default {
onRead(file) {
this.avatar = file.content;
console.log("file", file);
const inviteCode = JSON.parse(localStorage.getItem('user').inviteCode);
const params = {
inviteCode: "bbbbbb"
inviteCode: inviteCode
};
const fd = new FormData();
fd.append("files", file.file);
......
......@@ -77,7 +77,7 @@ export default {
if (res.userId) {
localStorage.setItem("user", JSON.stringify(res));
this.$nextTick(() => {
this.inviteeCode = res.inviteCode;
this.inviteeCode = res.beInvitedCode;
this.avatar = res.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