Commit 2c0af2a2 authored by 张牧越's avatar 张牧越

bugfix

parent df576b3a
NODE_ENV = "development"
Mock: true
VUE_APP_API_URL = "http:///yth.vnet.io"
VUE_APP_API_URL = "http:///192.168.0.180:8002"
......@@ -542,7 +542,7 @@ export default {
})
.flat();
allVideoIdArray = allVideoIdArray.slice(0, this.activeSplice);
allVideoIdArray.map((id, index) => {
allVideoIdArray.map((id) => {
getVideoLiveAddressUrl(id).then((res) => {
if (res.data.live_address_url) {
this.cameraList.push({
......@@ -553,7 +553,7 @@ export default {
setTimeout(() => {
this.$nextTick(() => {
const myVideoDiv = document.getElementById(
`video-container-${index + 1}`
`video-container-${this.cameraList.length}`
);
myVideoDiv.innerHTML = `<video
id="singleVideo${ts}"
......@@ -577,13 +577,13 @@ export default {
});
this.createFullScreenBtn(
singlePlayer,
`#video-out-container-${index + 1}`
`#video-out-container-${this.cameraList.length}`
);
this.$nextTick(() => {
singlePlayer.play();
});
this.cameraList[index].player = singlePlayer;
this.cameraList[this.cameraList.length].player = singlePlayer;
this.$forceUpdate();
});
}, 500);
......
......@@ -18,7 +18,6 @@ const getLocationParams = (keyWords) => {
};
const noLoadingrequest = axios.create({
withCredentials: false,
baseURL: getLocationParams("api_type") ? process.env.VUE_APP_API_URL : '',
})
noLoadingrequest.interceptors.request.use(
......
......@@ -54,7 +54,6 @@ var hideLoading = _.debounce(() => {
const request = axios.create({
withCredentials: false,
baseURL: getLocationParams("api_type") ? process.env.VUE_APP_API_URL : '',
})
request.interceptors.request.use(
......
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