Compare commits

..

2 Commits

Author SHA1 Message Date
WangXuewen
2a9bcff90e
Pre Merge pull request !34 from WangXuewen/master 2025-05-12 01:01:15 +00:00
lin
198db8f684 修复分屏监控地址不一致 2025-05-12 09:00:36 +08:00
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' }