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> |
... | ... | @@ -59,8 +59,8 @@ |
59 | 59 | |
60 | 60 | async function customUpload({ file }) { |
61 | 61 | if (beforeUpload(file)) { |
62 | + tenantLogo.value = ''; | |
62 | 63 | loading.value = true; |
63 | - | |
64 | 64 | const formData = new FormData(); |
65 | 65 | formData.append('file', file); |
66 | 66 | const response = await upload(formData); | ... | ... |