feat: add serial number to linux/mac amidaware/tacticalrmm#1683

This commit is contained in:
wh1te909
2024-01-27 02:47:23 +00:00
parent 596ce69789
commit 14bde967bd

View File

@@ -267,7 +267,11 @@ export default {
const loading = ref(false);
const serial_number = computed(() => {
return summary.value.wmi_detail.bios?.[0]?.[0]?.SerialNumber;
if (summary.value.plat === "windows") {
return summary.value.wmi_detail.bios?.[0]?.[0]?.SerialNumber;
} else {
return summary.value.wmi_detail.serialnumber;
}
});
const cpu = computed(() => {