diff --git a/apps/web-antd/src/components/tinymce/src/img-upload.vue b/apps/web-antd/src/components/tinymce/src/img-upload.vue index 441b9fee..0d7a2be6 100644 --- a/apps/web-antd/src/components/tinymce/src/img-upload.vue +++ b/apps/web-antd/src/components/tinymce/src/img-upload.vue @@ -48,14 +48,6 @@ function handleChange(info: Record) { const name = file?.name; switch (status) { - case 'uploading': { - if (!uploading) { - emit('uploading', name); - uploading = true; - } - - break; - } case 'done': { // http 200会走到这里 需要再次判断 const { response } = file; @@ -77,6 +69,14 @@ function handleChange(info: Record) { break; } + case 'uploading': { + if (!uploading) { + emit('uploading', name); + uploading = true; + } + + break; + } // No default } }