update:优化
This commit is contained in:
@@ -82,8 +82,7 @@ export function useDeviceStatus({
|
|||||||
const maskedDeviceId = computed(() => {
|
const maskedDeviceId = computed(() => {
|
||||||
const id = String(device.value.deviceId || "");
|
const id = String(device.value.deviceId || "");
|
||||||
if (!id) return "暂无设备编号";
|
if (!id) return "暂无设备编号";
|
||||||
if (id.length <= 3) return id;
|
return "*****";
|
||||||
return `${"*".repeat(Math.min(5, id.length - 3))}${id.slice(-3)}`;
|
|
||||||
});
|
});
|
||||||
const deviceRows = computed(() => [
|
const deviceRows = computed(() => [
|
||||||
{ label: "设备型号", value: deviceDetails.value.model || "射灵智能弓" },
|
{ label: "设备型号", value: deviceDetails.value.model || "射灵智能弓" },
|
||||||
|
|||||||
Reference in New Issue
Block a user