fix: 修复设备硬件占用率卡片中showCard计算属性未获取原始值的问题
This commit is contained in:
@@ -17,7 +17,7 @@ const props = defineProps<{
|
|||||||
const { cpuUsage, memUsage, diskUsage, runningTime, cpuUsageLabel, memUsageLabel, diskUsageLabel, runningTimeLabel } = toRefs(props);
|
const { cpuUsage, memUsage, diskUsage, runningTime, cpuUsageLabel, memUsageLabel, diskUsageLabel, runningTimeLabel } = toRefs(props);
|
||||||
|
|
||||||
const showCard = computed(() => {
|
const showCard = computed(() => {
|
||||||
return Object.values({ cpuUsage, memUsage, diskUsage, runningTime }).some((value) => !!value);
|
return Object.values({ cpuUsage, memUsage, diskUsage, runningTime }).some((refValue) => !!refValue.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
const cpuPercent = computed(() => {
|
const cpuPercent = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user