From 65b8af3e3e1e1493a4ed02d37bfae74a4d52d949 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 25 Jun 2024 16:21:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=88=86=E6=91=8A=E5=A4=8D=E5=88=B6/=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/expense-management/share/add.vue | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/expense-management/share/add.vue b/src/views/expense-management/share/add.vue index 9c33684..6a8a2ba 100644 --- a/src/views/expense-management/share/add.vue +++ b/src/views/expense-management/share/add.vue @@ -306,18 +306,18 @@ const handleSubmit = (instance) => { deploymentId: processInstanceData.value.deploymentId, } console.log('params', params, formData.value.tableData) - // const {code, msg} = await addAllocation(params) - // ElNotification({ - // title: '提示', - // message: msg, - // type: code === 1000 ? 'success' : 'error' - // }) - // if (code === 1000) { - // tagsViewStore.delVisitedViews(router.currentRoute.value.path) - // router.push({ - // name: 'Expense/share' - // }) - // } + const {code, msg} = await addAllocation(params) + ElNotification({ + title: '提示', + message: msg, + type: code === 1000 ? 'success' : 'error' + }) + if (code === 1000) { + tagsViewStore.delVisitedViews(router.currentRoute.value.path) + router.push({ + name: 'Expense/share' + }) + } }) } const handleResubmit = (instance) => {