Commit f3ad95847718cebde7ca827dd0b52e4c810c25ce

Authored by fengtao
1 parent a9cfe35f

refactor 优化图片上传再次点击显示loading

... ... @@ -20,7 +20,7 @@
20 20 style="width: 6.25rem; height: 6.25rem"
21 21 />
22 22 <div v-else>
23   - <loading-outlined v-if="loading"></loading-outlined>
  23 + <LoadingOutlined v-if="loading" />
24 24 <PlusOutlined v-else />
25 25 <div class="ant-upload-text">图片上传</div>
26 26 </div>
... ... @@ -79,8 +79,8 @@
79 79 };
80 80 const customUploadqrcodePic = async ({ file }) => {
81 81 if (beforeUploadqrcodePic(file)) {
  82 + peresonalPic.value = '';
82 83 loading.value = true;
83   -
84 84 const formData = new FormData();
85 85 formData.append('file', file);
86 86 const response = await uploadApi(formData);
... ...