From 25b52125889cd017f8d60ae44b6b1b0155725655 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Thu, 28 Dec 2023 20:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BD=91=E5=85=83=E6=97=B6=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/neManage/index.vue | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue index e288bc98..b9218f92 100644 --- a/src/views/configManage/neManage/index.vue +++ b/src/views/configManage/neManage/index.vue @@ -460,15 +460,19 @@ function fnRecordDelete(row: Record) { delNeInfo(row) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { - message.success({ - content: t('common.msgSuccess', { msg: t('common.deleteText') }), - key, - duration: 2, - }); - tableState.loading = false; - fnGetList(); - // 刷新缓存的网元信息 - useNeInfoStore().fnRefreshNelist(); + if (res.data.data && res.data.data.affectedRows) { + message.success({ + content: t('common.msgSuccess', { + msg: t('common.deleteText'), + }), + key, + duration: 2, + }); + tableState.loading = false; + fnGetList(); + // 刷新缓存的网元信息 + useNeInfoStore().fnRefreshNelist(); + } } else { message.error({ content: `${res.msg}`,