fix: 网元删除记录自动移除不要刷新列表

This commit is contained in:
TsMask
2024-07-17 18:06:59 +08:00
parent a2d93ddafe
commit fcf53d0995

View File

@@ -283,10 +283,10 @@ function fnRecordDelete(id: string) {
message.success(t('common.operateOk'), 3);
// 过滤掉删除的id
tableState.data = tableState.data.filter(item => {
if (id.indexOf(',')) {
if (id.indexOf(',') > -1) {
return !tableState.selectedRowKeys.includes(item.id);
} else {
return item.id != id;
return item.id !== id;
}
});
// 刷新缓存