Commit 451706de22b8c2652a83c3f1ef068e6d5b865c7f
Merge branch 'perf/edge/08-06' into 'main_dev'
perf: 边缘实例详情,标签没有显示为空即可,去除横杠 See merge request yunteng/thingskit-front!1435
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 | { |