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