Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | > |
20 | 20 | <img v-if="tenantLogo" :src="tenantLogo" alt="avatar" /> |
21 | 21 | <div v-else> |
22 | - <loading-outlined v-if="loading"></loading-outlined> | |
22 | + <LoadingOutlined v-if="loading" /> | |
23 | 23 | <plus-outlined v-else /> |
24 | 24 | <div class="ant-upload-text">上传</div> |
25 | 25 | </div> |
... | ... | @@ -73,8 +73,8 @@ |
73 | 73 | |
74 | 74 | async function customUpload({ file }) { |
75 | 75 | if (beforeUpload(file)) { |
76 | + tenantLogo.value = ''; | |
76 | 77 | loading.value = true; |
77 | - | |
78 | 78 | const formData = new FormData(); |
79 | 79 | formData.append('file', file); |
80 | 80 | const response = await upload(formData); | ... | ... |