From 29a77666357f60bb19acaf987a4abaf06d76982e Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Sun, 31 Aug 2025 21:02:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(special-fund):=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=93=E9=A1=B9=E8=B5=84=E9=87=91=E8=AF=A6=E6=83=85=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -移除了接口成功调用时的重复通知 - 增加了接口调用失败时的错误通知 - 优化了代码结构,提高了用户体验 --- src/views/special-fund/add.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/special-fund/add.vue b/src/views/special-fund/add.vue index ce3ae00..80e7f23 100644 --- a/src/views/special-fund/add.vue +++ b/src/views/special-fund/add.vue @@ -327,11 +327,7 @@ const init = async () => { } const getDetailInfo = async () => { getFundDetailProcess(route.query.id).then(res => { - ElNotification({ - title: '提示', - message: res.msg, - type: res.code === 1000 ? 'success' : 'error' - }) + if (res.code === 1000) { formData.value = res.data.formData opentionData.value = res.data @@ -339,6 +335,12 @@ const getDetailInfo = async () => { nextTick(() => { showTable.value = true }) + }else{ + ElNotification({ + title: '提示', + message: res.msg, + type: 'error' + }) } }) }