代码调整

This commit is contained in:
dong 2022-10-08 10:34:32 +08:00
parent 6db5926156
commit 5da594ec55

View File

@ -29,7 +29,7 @@ export function covertMemberData (activeTrainList, resp) {
const name = member.name ? '-' + member.name : '';
if (member.deviceCode) {
const device = store.getters['map/getDeviceByCode'](member.deviceCode);
member.deviceName = device.name || device.groupNumber;
member.deviceName = device ? device.name || device.groupNumber : '';
member.label = member.type + member.deviceName + name + userName;
member.normalName = member.type + member.deviceName + name;
} else {