update:优化

This commit is contained in:
2026-09-24 17:10:10 +08:00
parent f4b37fba00
commit ae3ba60191
@@ -82,8 +82,7 @@ export function useDeviceStatus({
const maskedDeviceId = computed(() => {
const id = String(device.value.deviceId || "");
if (!id) return "暂无设备编号";
if (id.length <= 3) return id;
return `${"*".repeat(Math.min(5, id.length - 3))}${id.slice(-3)}`;
return "*****";
});
const deviceRows = computed(() => [
{ label: "设备型号", value: deviceDetails.value.model || "射灵智能弓" },