Commit 721385ad authored by 张牧越's avatar 张牧越

bugfix

parent c7303944
No preview for this file type
......@@ -159,6 +159,11 @@ export default {
this.weekDay = str;
},
bodyScale() {
// window.innerHeight 窗口内高度 //document.getElementsByTagName("html")[0].offsetHeight
// var windowHeight = window.innerHeight;
// var documentHeight =
// document.getElementsByTagName("html")[0].offsetHeight;
// console.log(windowHeight - documentHeight);
var deviceHeight = window.screen.height;
var scale = deviceHeight / 1220;
document.body.style.zoom = scale;
......@@ -191,21 +196,12 @@ export default {
getBaseInfo().then((res) => {
this.screenDetail = res.data;
document.title = res.data.project_name;
if (window.screen.width < 1800) {
if (res.data.menu.length >= 3) {
this.leftNav = res.data.menu.slice(0, 3);
this.rightNav = res.data.menu.slice(3, res.data.menu.length);
} else {
this.leftNav = [...res.data.menu];
}
} else {
if (res.data.menu.length >= 4) {
this.leftNav = res.data.menu.slice(0, 4);
this.rightNav = res.data.menu.slice(4, res.data.menu.length);
} else {
this.leftNav = [...res.data.menu];
}
}
});
this.bodyScale();
......@@ -276,7 +272,7 @@ a,
text-align: center;
display: inline-block;
text-decoration: none;
margin-right: 8px;
margin-right: 30px;
color: #80a1c6;
padding: 9px 12px;
border: 1px solid #0f5da6;
......@@ -351,7 +347,7 @@ a,
}
}
.el-dropdown {
margin-right: 8px;
margin-right: 30px;
}
.el-dropdown-menu {
padding: 0;
......
......@@ -646,7 +646,7 @@ export default {
}
.no-data {
text-align: center;
font-size: 24px;
font-size: 14px;
color: #1abcec;
img {
width: 300px;
......
......@@ -800,7 +800,7 @@ export default {
}
.no-data {
text-align: center;
font-size: 24px;
font-size: 14px;
color: #1abcec;
img {
width: 200px;
......
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