Browse Source

删除调试信息

lite
453530270@qq.com 3 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() { mounted() {
@ -948,7 +952,7 @@ export default {
iServicePortEnd: 15900, iServicePortEnd: 15900,
szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // IE10使ActiveXclsid szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // IE10使ActiveXclsid
cbConnectSuccess() { cbConnectSuccess() {
console.log('创建WebControl实例成功'); // console.log('WebControl');
oWebControl2.JS_StartService('window', { oWebControl2.JS_StartService('window', {
// WebControl // WebControl
dllPath: './VideoPluginConnect.dll', // "./VideoPluginConnect.dll" dllPath: './VideoPluginConnect.dll', // "./VideoPluginConnect.dll"
@ -1242,12 +1246,12 @@ export default {
}) })
.then((res) => { .then((res) => {
// //
console.log('播放成功') // console.log('')
console.log(res); //console.log(res);
}, },
err => { err => {
console.log('播放失败') //console.log('')
console.log(preUrl); //console.log(preUrl);
// console.info('JS_Play failed:', err) // console.info('JS_Play failed:', err)
console.info(err) console.info(err)
}); });
@ -1274,14 +1278,11 @@ export default {
}) })
.then((res) => { .then((res) => {
// //
console.log('播放成功111111111')
console.log(res); console.log(res);
}, },
err => { err => {
console.log('播放失败') // console.log(preUrl);
console.log(preUrl); console.info('JS_Play failed:', err)
// console.info('JS_Play failed:', err)
console.info(err)
}); });
}, },
getVideoFun3(Code) { getVideoFun3(Code) {
@ -1334,15 +1335,7 @@ export default {
console.log("销毁窗口失败"); 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, // changeOrigin:true,
// } // }
// } // }
devServer: { // devServer: {
proxy: { // proxy: {
'/api/*': { // '/api': {
target: 'http://192.168.66.16/', //跨域请求的公共地址 // target: 'http://10.97.121.2/api', //跨域请求的公共地址
changeOrigin: true, //是否开启跨域,值为 true 就是开启, false 不开启 // changeOrigin: true, //是否开启跨域,值为 true 就是开启, false 不开启
pathRewrite: { // // pathRewrite: {
// '^/api': '' //注册全局路径, 但是在你请求的时候前面需要加上 /api // // '/api': './' //注册全局路径, 但是在你请求的时候前面需要加上 /api
} // // }
} // }
}, // },
} // }
} }
Loading…
Cancel
Save