修复工作
This commit is contained in:
@@ -68,7 +68,8 @@ onMounted(() => {
|
||||
const getDetails = async (deviceId) => {
|
||||
const res = await getDevice(deviceId);
|
||||
tableData.value = res.data;
|
||||
playUrl.value = `http://localhost:8866/live?url=${tableData.value.url}`;
|
||||
// 使用当前访问的域名和端口,通过Nginx代理访问视频流
|
||||
playUrl.value = `${window.location.origin}/live?url=${tableData.value.url}`;
|
||||
handlePlay();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user