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}`,