From 0ebd883f4d84d6af1d512f736799538f8b1307dc Mon Sep 17 00:00:00 2001 From: zhouyang Date: Mon, 13 Apr 2026 16:41:48 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A1=E7=AE=97=E7=9A=84=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/job/jobSubmit/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/job/jobSubmit/index.vue b/src/views/job/jobSubmit/index.vue index 49ea420c..637ea5f3 100644 --- a/src/views/job/jobSubmit/index.vue +++ b/src/views/job/jobSubmit/index.vue @@ -166,6 +166,7 @@ const formData = reactive({ attachFileType: 0, attachFile: [], jobDesc: '', + callbackFlag: 'SUBMIT_FILE_UPLOAD_FINISHED', }); const hpcAppList = ref([]); @@ -189,6 +190,7 @@ const resetFormFun = () => { attachFileType: 0, attachFile: [], jobDesc: '', + callbackFlag: 'SUBMIT_FILE_UPLOAD_FINISHED', }; for (const key in obj) { formData[key] = obj[key]; @@ -319,15 +321,14 @@ const typeChangeFun = () => { } }; -onBeforeUnmount(() => { - emitter.off('UPLOAD_FINISHED', uploadFinishedFun); -}); - onMounted(() => { emitter.on('UPLOAD_FINISHED', uploadFinishedFun); - getHpcListFun(); }); + +onBeforeUnmount(() => { + emitter.off('UPLOAD_FINISHED', uploadFinishedFun); +});