From 96e181a4caf48f442c106db83c2a0df0ba94c907 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Fri, 15 Aug 2025 17:38:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8E=BB=E6=8E=89=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B6=85=E6=97=B6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../list/components/upload-manuscript-modal/index.vue | 10 +++------- .../list/components/upload-manuscript-modal/index.vue | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/creative-generation-workshop/manuscript-writer/list/components/upload-manuscript-modal/index.vue b/src/views/creative-generation-workshop/manuscript-writer/list/components/upload-manuscript-modal/index.vue index ef50097..5f6f3dd 100644 --- a/src/views/creative-generation-workshop/manuscript-writer/list/components/upload-manuscript-modal/index.vue +++ b/src/views/creative-generation-workshop/manuscript-writer/list/components/upload-manuscript-modal/index.vue @@ -138,6 +138,7 @@ export default { const formData = new FormData(); formData.append('file', file); const { code, data } = await postWorksByFileWriter(formData, { + timeout: 0, headers: { 'Content-Type': 'multipart/form-data', 'writer-code': writerCode.value, @@ -162,7 +163,7 @@ export default { // 删除项目 const onDelete = (index) => { works.value.splice(index, 1); - if(!works.value.length) { + if (!works.value.length) { taskStatus.value = TASK_STATUS.DEFAULT; } // AMessage.success('删除成功'); @@ -341,12 +342,7 @@ export default { footer: () => renderFooterButtons(), }} > -