Commit 90dfc7b9 authored by 张伯涛's avatar 张伯涛

去掉注释代码

parent 350ea740
...@@ -56,7 +56,6 @@ export default { ...@@ -56,7 +56,6 @@ export default {
}; };
}, },
mounted() { mounted() {
// document.addEventListener('visibilitychange', this.handleVisibilityChange);
document.title = "AR车间"; document.title = "AR车间";
console.log("----state----", this.$store.state, document.title); console.log("----state----", this.$store.state, document.title);
this.ip = window.location.hostname; this.ip = window.location.hostname;
...@@ -68,11 +67,7 @@ export default { ...@@ -68,11 +67,7 @@ export default {
} }
this.getClientInfo(); this.getClientInfo();
}, },
unmounted() {
// document.removeEventListener('visibilitychange', this.handleVisibilityChange);
},
beforeDestroy() { beforeDestroy() {
console.log('销毁销毁销毁销毁销毁销毁销毁销毁销毁销毁销毁')
if (this.control) { if (this.control) {
this.control.setWindowStatus(2); this.control.setWindowStatus(2);
this.control = null; this.control = null;
...@@ -85,28 +80,6 @@ export default { ...@@ -85,28 +80,6 @@ export default {
next(); next();
}, },
methods: { methods: {
// handleVisibilityChange() {
// if (document.hidden) {
// console.log('隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏')
// if (this.control) {
// this.control.setWindowStatus(2);
// this.control = null;
// }
// } else {
// // setTimeout(function () {
// console.log('显示显示显示显示显示显示显示显示显示显示显示',document.webkitFullscreenElement)
// document.title = "AR车间";
// this.ip = window.location.hostname;
// this.protocolType = window.location.protocol.replace(':', '')
// if (window.location.port) {
// this.port = window.location.port;
// } else {
// this.port = this.protocolType === "https" ? "443" : "80";
// }
// this.getClientInfo();
// // }, 2000);
// }
// },
init() { init() {
// 初始化 // 初始化
if (this.control) { if (this.control) {
...@@ -152,22 +125,6 @@ export default { ...@@ -152,22 +125,6 @@ export default {
// 程序挂载成功 // 程序挂载成功
window.addEventListener("ar_start", event => { window.addEventListener("ar_start", event => {
console.log('kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk') console.log('kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk')
// // 获取浏览器窗口的宽高
// const windowWidth = window.innerWidth;
// const windowHeight = window.innerHeight;
// // 获取屏幕的宽高
// const screenWidth = screen.width;
// const screenHeight = screen.height;
// // 比较窗口尺寸与屏幕尺寸
// if (windowWidth === screenWidth && windowHeight > screenHeight - 200) {
// console.log('全屏')
// } else {
// setTimeout(function () {
//
// console.log('不全屏')
// }, 2000);
//
// }
this.videoLoading = false this.videoLoading = false
}); });
window.addEventListener("ar_loaded", event => { window.addEventListener("ar_loaded", event => {
......
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