refactor: 个人中心不需要显示重复字段
This commit is contained in:
parent
0a3fa84495
commit
2ce341ffe1
@ -10,7 +10,10 @@ import { forceLogout2, onlineDeviceList } from '#/api/monitor/online';
|
|||||||
import { columns } from '#/views/monitor/online/data';
|
import { columns } from '#/views/monitor/online/data';
|
||||||
|
|
||||||
const gridOptions: VxeGridProps = {
|
const gridOptions: VxeGridProps = {
|
||||||
columns,
|
// 个人中心不需要显示重复字段
|
||||||
|
columns: columns?.filter(
|
||||||
|
(item) => !['deptName', 'userName'].includes(item.field ?? ''),
|
||||||
|
),
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user