Commit cfacb1f8 authored by xinzhedeai's avatar xinzhedeai

fix: 取消地址校验rtsp; 山西华远登录页处理

parent 0a468672
......@@ -57,6 +57,7 @@ axios.interceptors.response.use((res) => {
}, (e) => {
// window.location.href = '/login'
console.log('250227', e)
window.location.href = "http://yj.hylgzl.com/login";
});
......
......@@ -554,9 +554,9 @@ const switchVideoPalyer = (id: string) => {
console.log("11111111111111111 ======================================= id", id, camera?.cameraAddress);
if (!camera?.cameraAddress?.includes(`rtsp://`)) {
return message.error('摄像头流地址格式有误!');
}
// if (!camera?.cameraAddress?.includes(`rtsp://`) && !camera?.cameraAddress?.includes(`.m3u8`)) {
// return message.error('摄像头流地址格式有误!');
// }
cName.value = camera.cameraName;
......@@ -589,9 +589,9 @@ const switchVideoPalyer01 = (id: string) => {
console.log("11111111111111111 ======================================= id", id, camera?.cameraAddress);
if (!camera?.cameraAddress?.includes(`rtsp://`)) {
return message.error('摄像头流地址格式有误!');
}
// if (!camera?.cameraAddress?.includes(`rtsp://`) && !camera?.cameraAddress?.includes(`.m3u8`)) {
// return message.error('摄像头流地址格式有误!');
// }
cName.value = camera.cameraName;
......
......@@ -106,9 +106,9 @@ const switchVideoPalyer = (id: string) => {
console.log("======================================= id", id, camera?.cameraAddress);
if (!camera?.cameraAddress?.includes('rtsp://')) {
return message.error('摄像头流地址格式有误!');
}
// if (!camera?.cameraAddress?.includes('rtsp://')) {
// return message.error('摄像头流地址格式有误!');
// }
cName.value = camera.cameraName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment