|
@@ -273,8 +273,8 @@
|
273
|
273
|
console.log('选择摄像头', camera)
|
274
|
274
|
const { cameraIndexCode } = camera
|
275
|
275
|
getPreview({ cameraIndexCode, protocol: 'WS' }).then((resp) => {
|
276
|
|
- if (!resp || !resp.url) return message.error('无法获取视频地址')
|
277
|
|
-
|
|
276
|
+ if (!resp || !resp.data || !resp.data.url) return message.error('无法获取视频地址')
|
|
277
|
+ const url = resp.data.url
|
278
|
278
|
const exists = Object.values(videoMap).findIndex((u) => u.url === url)
|
279
|
279
|
if (exists >= 0) {
|
280
|
280
|
return message.warning(`该视频已经在 ${exists + 1} 窗口播放`)
|