Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -28,9 +28,9 @@ export const descSchema = (): DescItem[] => { |
28 | 28 | { |
29 | 29 | field: 'active', |
30 | 30 | label: '状态', |
31 | - render: (record) => { | |
32 | - const color = record?.active ? 'success' : 'error'; | |
33 | - const textStr = record?.active ? ' 在线' : '离线'; | |
31 | + render: (text) => { | |
32 | + const color = text ? 'success' : 'error'; | |
33 | + const textStr = text ? ' 在线' : '离线'; | |
34 | 34 | return h( |
35 | 35 | Tag, |
36 | 36 | { | ... | ... |