Showing
1 changed file
with
9 additions
and
7 deletions
| @@ -14,13 +14,15 @@ export const descSchema = (): DescItem[] => { | @@ -14,13 +14,15 @@ export const descSchema = (): DescItem[] => { | ||
| 14 | field: 'label', | 14 | field: 'label', |
| 15 | label: '设备标签', | 15 | label: '设备标签', |
| 16 | render: (text) => { | 16 | render: (text) => { |
| 17 | - return h( | ||
| 18 | - Tag, | ||
| 19 | - { | ||
| 20 | - color: '#00B42A', | ||
| 21 | - }, | ||
| 22 | - text | ||
| 23 | - ); | 17 | + return text |
| 18 | + ? h( | ||
| 19 | + Tag, | ||
| 20 | + { | ||
| 21 | + color: '#00B42A', | ||
| 22 | + }, | ||
| 23 | + text | ||
| 24 | + ) | ||
| 25 | + : ''; | ||
| 24 | }, | 26 | }, |
| 25 | }, | 27 | }, |
| 26 | { | 28 | { |