Commit 1c039a321be3eac3a78de2aeaab42ca314e74b4d
Merge branch 'fix/bug/08-07' into 'main_dev'
feat: 优化边缘状态显示 See merge request yunteng/thingskit-front!1443
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 | { | ... | ... |