|
@@ -119,7 +119,8 @@ const historyData = ref<DevWorkHistoryDataItem[]>([]);
|
|
|
const paramLabel = computed<string>(() => {
|
|
|
if (historyData.value.length) {
|
|
|
const { deviceParamName, unit } = historyData.value[0];
|
|
|
- return `${deviceParamName}(${unit})`;
|
|
|
+ const unitText = unit ? `(${unit})` : '';
|
|
|
+ return deviceParamName + unitText;
|
|
|
}
|
|
|
|
|
|
return '';
|