Commit 3930b53f659836aab191d1d79e233871aab3f415
1 parent
196f4eb8f8
Exists in
master
object assign issue
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/components/Profile.vue
... | ... | @@ -640,12 +640,13 @@ export default { |
640 | 640 | }, |
641 | 641 | }) |
642 | 642 | .then((response) => { |
643 | - this.userData = response.data.data; | |
643 | + this.userData = Object.assign(this.userData, response.data.data) | |
644 | + // this.userData = response.data.data; | |
644 | 645 | if (!this.userData.socialMediaProfiles) { |
645 | 646 | this.userData.socialMediaProfiles = {}; |
646 | 647 | } |
647 | 648 | this.oldId = this.userData.bgColor; |
648 | - console.log(this.oldId, "this.userData.", this.userData.bgColor); | |
649 | + console.log(this.oldId, "this.userData.", this.userData); | |
649 | 650 | |
650 | 651 | this.assignClass(); |
651 | 652 | console.log(response.data.data); | ... | ... |