去除debugger

pull/7/head
liujun 2024-01-19 20:44:33 +08:00
parent 6dbdc96268
commit bab72ac252
1 changed files with 49 additions and 49 deletions

View File

@ -1108,58 +1108,58 @@ export default {
}, },
keepalive(token) { keepalive(token) {
// //
requestFN( // requestFN(
'/map/loginOrKeepAlive', // '/map/loginOrKeepAlive',
{ // {
} // }
).then((data) => { // ).then((data) => {
//
}) // })
}, },
ysVideoInit() { ysVideoInit() {
// //
var _this = this // var _this = this
requestFN( // requestFN(
'/map/loginOrKeepAlive', // '/map/loginOrKeepAlive',
{ // {
} // }
).then((data) => { // ).then((data) => {
const token = data.token // const token = data.token
var nbsp = String.fromCharCode(160) // var nbsp = String.fromCharCode(160)
var arr = [] // var arr = []
arr.length = 40 // arr.length = 40
const str = arr.fill(nbsp).join('') // const str = arr.fill(nbsp).join('')
const voidPath = imosPlayer.getUniqueID() // const voidPath = imosPlayer.getUniqueID()
window.voidPath = voidPath // window.voidPath = voidPath
document.title = document.title + str + new Date().getTime() // document.title = document.title + str + new Date().getTime()
_this.keepalive(token) // _this.keepalive(token)
setInterval(_this.keepalive, 30000, token) // setInterval(_this.keepalive, 30000, token)
//
window.videoWindow = 0 // window.videoWindow = 0
imosPlayer.setLinkPort('8093') // imosPlayer.setLinkPort('8093')
imosPlayer // imosPlayer
.init({ // .init({
ip: '172.14.0.54', // ip: '172.14.0.54',
token: token, // token: token,
title: document.title, // title: document.title,
voidListenerPath: '\\' + voidPath // voidListenerPath: '\\' + voidPath
}) // })
.then(async(resr) => { // .then(async(resr) => {
if (resr.ErrCode === 0) { // if (resr.ErrCode === 0) {
// imosPlayer.setLiveNetLinkMode(liveNetProtocol, liveByMS) // // imosPlayer.setLiveNetLinkMode(liveNetProtocol, liveByMS)
// imosPlayer.setReplayNetLinkMode(replayNetProtocol, replayByMS) // // imosPlayer.setReplayNetLinkMode(replayNetProtocol, replayByMS)
//
// eslint-disable-next-line no-alert // // eslint-disable-next-line no-alert
console.info('登录成功') // console.info('')
} else { // } else {
// eslint-disable-next-line no-alert // // eslint-disable-next-line no-alert
console.info(resr.ErrMsg) // console.info(resr.ErrMsg)
} // }
}) // })
.catch((err) => { // .catch((err) => {
console.error(err) // console.error(err)
}) // })
}) // })
}, },
// keepalive(token) { // keepalive(token) {
// axios({ // axios({