potentiall fix #329

This commit is contained in:
hay-kot 2021-05-08 20:24:59 -08:00
commit dde053425b

View file

@ -123,19 +123,12 @@ export default {
},
showPassword: false,
loading: false,
user: {
fullName: "",
email: "",
group: "",
admin: false,
id: 0,
},
user: {},
};
},
computed: {
userProfileImage() {
this.resetImage();
return `api/users/${this.user.id}/image`;
},
},
@ -144,10 +137,13 @@ export default {
this.refreshProfile();
},
methods: {
resetImage() {
watch: {
user() {
this.hideImage = false;
},
},
methods: {
async refreshProfile() {
this.user = await api.users.self();
},