Browse Source

删除调试信息

lite
453530270@qq.com 2 years ago
parent
commit
27bc16b601
  1. 31
      src/views/ty/index.vue
  2. 22
      vue.config.js

31
src/views/ty/index.vue

@ -174,6 +174,10 @@ export default {
});
},
// 退
destroy(){
},
mounted() {
@ -948,7 +952,7 @@ export default {
iServicePortEnd: 15900,
szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // IE10使ActiveXclsid
cbConnectSuccess() {
console.log('创建WebControl实例成功');
// console.log('WebControl');
oWebControl2.JS_StartService('window', {
// WebControl
dllPath: './VideoPluginConnect.dll', // "./VideoPluginConnect.dll"
@ -1242,12 +1246,12 @@ export default {
})
.then((res) => {
//
console.log('播放成功')
console.log(res);
// console.log('')
//console.log(res);
},
err => {
console.log('播放失败')
console.log(preUrl);
//console.log('')
//console.log(preUrl);
// console.info('JS_Play failed:', err)
console.info(err)
});
@ -1274,14 +1278,11 @@ export default {
})
.then((res) => {
//
console.log('播放成功111111111')
console.log(res);
},
err => {
console.log('播放失败')
console.log(preUrl);
// console.info('JS_Play failed:', err)
console.info(err)
// console.log(preUrl);
console.info('JS_Play failed:', err)
});
},
getVideoFun3(Code) {
@ -1334,15 +1335,7 @@ export default {
console.log("销毁窗口失败");
});
},
// ---
zhuaPicFun() {
this.oWebControl2.JS_RequestInterface({
funcName: "snapShot",
argument: {
name: "D:\test.jpg", //
},
});
},
},
};

22
vue.config.js

@ -35,16 +35,16 @@ module.exports = {
// changeOrigin:true,
// }
// }
devServer: {
proxy: {
'/api/*': {
target: 'http://192.168.66.16/', //跨域请求的公共地址
changeOrigin: true, //是否开启跨域,值为 true 就是开启, false 不开启
pathRewrite: {
// '^/api': '' //注册全局路径, 但是在你请求的时候前面需要加上 /api
}
}
},
}
// devServer: {
// proxy: {
// '/api': {
// target: 'http://10.97.121.2/api', //跨域请求的公共地址
// changeOrigin: true, //是否开启跨域,值为 true 就是开启, false 不开启
// // pathRewrite: {
// // '/api': './' //注册全局路径, 但是在你请求的时候前面需要加上 /api
// // }
// }
// },
// }
}
Loading…
Cancel
Save