Commit be611ce83b8ee6a310040f90503f5f37c87f31d8

Authored by fengtao
1 parent 670cf6e1

perf: 边缘实例详情,标签没有显示为空即可,去除横杠

... ... @@ -14,13 +14,15 @@ export const descSchema = (): DescItem[] => {
14 14 field: 'label',
15 15 label: '设备标签',
16 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 {
... ...