Browse Source

🚀 适配头像

master
wangxiang 2 years ago
parent
commit
f2a54b96c8
  1. 5
      src/views/system/user/userInfo/index.vue

5
src/views/system/user/userInfo/index.vue

@ -269,10 +269,7 @@ @@ -269,10 +269,7 @@
const { data } = await commonUpload({
file: file.file,
name: 'file',
}, (progressEvent: ProgressEvent) => {
const complete = ((progressEvent.loaded / progressEvent.total) * 100) | 0;
if (complete >= 100) state.uploadAvatarLoading = false;
});
}, () => {});
state.imageUrl = data.url;
} finally {
state.uploadAvatarLoading = false;

Loading…
Cancel
Save