Commit ba4d1397 authored by 张伯涛's avatar 张伯涛

ar模块初步修改

parent d0d8653f
...@@ -88,19 +88,13 @@ export default { ...@@ -88,19 +88,13 @@ export default {
handleVisibilityChange() { handleVisibilityChange() {
if (document.hidden) { if (document.hidden) {
console.log('隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏') console.log('隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏')
// this.control.setWindowStatus(1);
if (this.control) { if (this.control) {
this.control.setWindowStatus(2); this.control.setWindowStatus(2);
this.control = null; this.control = null;
} }
} else { } else {
// setTimeout(function () { // setTimeout(function () {
// const container = document.getElementById('ar-div'); console.log('显示显示显示显示显示显示显示显示显示显示显示')
// console.log('显示显示显示显示显示显示显示显示显示显示显示',container)
// console.log('显示显示显示显示显示显示显示显示显示显示显示',this.control)
// this.control.setWindowStatus(0);
document.title = "AR车间"; document.title = "AR车间";
this.ip = window.location.hostname; this.ip = window.location.hostname;
this.protocolType = window.location.protocol.replace(':', '') this.protocolType = window.location.protocol.replace(':', '')
...@@ -109,6 +103,18 @@ export default { ...@@ -109,6 +103,18 @@ export default {
} else { } else {
this.port = this.protocolType === "https" ? "443" : "80"; this.port = this.protocolType === "https" ? "443" : "80";
} }
/* // 获取浏览器窗口的宽高
const windowWidth = window.innerWidth;
// 获取屏幕的宽高
const screenWidth = screen.width;
// 比较窗口尺寸与屏幕尺寸
if (windowWidth === screenWidth) {
} else {
}
console.log('windowWidth', windowWidth)
console.log('screenWidth', screenWidth)*/
this.getClientInfo(); this.getClientInfo();
// }, 2000); // }, 2000);
} }
...@@ -299,8 +305,8 @@ body { ...@@ -299,8 +305,8 @@ body {
} }
.panel-child { .panel-child {
padding-top: 45px; padding-top: 45px;
width: 1920px; width: 100vw; /* 100% of the viewport width */
height: 900px; height: 94vh; /* 100% of the viewport height */
} }
.errorContent { .errorContent {
position: fixed; position: fixed;
......
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