修复分屏监控地址不一致

This commit is contained in:
lin 2025-05-12 09:00:36 +08:00
parent 9903f25cc1
commit 198db8f684
2 changed files with 67 additions and 69 deletions

View File

@ -120,7 +120,6 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
List<DeviceChannel> updateChannels = new ArrayList<>(); List<DeviceChannel> updateChannels = new ArrayList<>();
HashMap<String, DeviceChannel> channelsInStore = new HashMap<>(); HashMap<String, DeviceChannel> channelsInStore = new HashMap<>();
int result = 0; int result = 0;
if (channels != null && !channels.isEmpty()) {
List<DeviceChannel> channelList = channelMapper.queryChannelsByDeviceDbId(device.getId()); List<DeviceChannel> channelList = channelMapper.queryChannelsByDeviceDbId(device.getId());
if (channelList.isEmpty()) { if (channelList.isEmpty()) {
for (DeviceChannel channel : channels) { for (DeviceChannel channel : channels) {
@ -200,7 +199,6 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
result += channelMapper.batchUpdate(updateChannelList); result += channelMapper.batchUpdate(updateChannelList);
} }
} }
}
return result; return result;
} }

View File

@ -60,7 +60,7 @@ export const constantRoutes = [
component: Layout, component: Layout,
redirect: '/live', redirect: '/live',
children: [{ children: [{
path: 'live', path: '',
name: 'Live', name: 'Live',
component: () => import('@/views/live/index'), component: () => import('@/views/live/index'),
meta: { title: '分屏监控', icon: 'live' } meta: { title: '分屏监控', icon: 'live' }