提交 71988957 authored 作者: 龙菲's avatar 龙菲

首页空白bug修复

上级 85d86657
...@@ -2,16 +2,14 @@ import router from './router' ...@@ -2,16 +2,14 @@ import router from './router'
import store from './store/index' import store from './store/index'
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// if (to.name != 'home') {
if (to.name != 'home') { // // chrome
// chrome // document.body.scrollTop = 0
document.body.scrollTop = 0 // // firefox
// firefox // document.documentElement.scrollTop = 0
document.documentElement.scrollTop = 0 // // safari
// safari // window.pageYOffset = 0
window.pageYOffset = 0 // }
}
// 监听path 确定navbar下标 // 监听path 确定navbar下标
store.commit('app/SET_NAV_BAR', to) store.commit('app/SET_NAV_BAR', to)
......
...@@ -370,7 +370,7 @@ $text-indent: 16px; ...@@ -370,7 +370,7 @@ $text-indent: 16px;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 10px; right: 10px;
z-index: 99; z-index: 9;
// background-color: rgba(0, 0, 0, 0.1); // background-color: rgba(0, 0, 0, 0.1);
height: 28px; height: 28px;
padding: 4px; padding: 4px;
......
...@@ -348,48 +348,6 @@ $text-indent: 16px; ...@@ -348,48 +348,6 @@ $text-indent: 16px;
transition: all 0.5s ease; transition: all 0.5s ease;
flex: 1; flex: 1;
} }
.showIcon {
position: absolute;
top: 10px;
right: 10px;
z-index: 99;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
height: 28px;
padding: 4px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
width: 28px;
white-space: nowrap;
overflow: hidden;
&:hover {
.icon {
display: none;
}
.text {
display: block;
}
width: 130px;
padding: 4px 8px;
}
.icon {
width: 20px;
display: inline-block;
}
.text {
font-size: 14px;
color: #000;
padding: 4px 8px;
cursor: pointer;
display: none;
}
img {
width: 100%;
height: 100%;
}
}
} }
} }
} }
......
...@@ -328,48 +328,6 @@ $text-indent: 16px; ...@@ -328,48 +328,6 @@ $text-indent: 16px;
transition: all 0.5s ease; transition: all 0.5s ease;
flex: 1; flex: 1;
} }
.showIcon {
position: absolute;
top: 10px;
right: 10px;
z-index: 99;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
height: 28px;
padding: 4px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
width: 28px;
white-space: nowrap;
overflow: hidden;
&:hover {
.icon {
display: none;
}
.text {
display: block;
}
width: 130px;
padding: 4px 8px;
}
.icon {
width: 20px;
display: inline-block;
}
.text {
font-size: 14px;
color: #000;
padding: 4px 8px;
cursor: pointer;
display: none;
}
img {
width: 100%;
height: 100%;
}
}
} }
} }
} }
......
...@@ -80,47 +80,5 @@ $blue: #2069c4; ...@@ -80,47 +80,5 @@ $blue: #2069c4;
transition: all 0.5s ease; transition: all 0.5s ease;
flex: 1; flex: 1;
} }
.showIcon {
position: absolute;
top: 10px;
right: 10px;
z-index: 99;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
height: 28px;
padding: 4px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
width: 28px;
white-space: nowrap;
overflow: hidden;
&:hover {
.icon {
display: none;
}
.text {
display: block;
}
width: 130px;
padding: 4px 8px;
}
.icon {
width: 20px;
display: inline-block;
}
.text {
font-size: 14px;
color: #000;
padding: 4px 8px;
cursor: pointer;
display: none;
}
img {
width: 100%;
height: 100%;
}
}
} }
</style> </style>
\ No newline at end of file
...@@ -330,48 +330,6 @@ $text-indent: 16px; ...@@ -330,48 +330,6 @@ $text-indent: 16px;
transition: all 0.5s ease; transition: all 0.5s ease;
flex: 1; flex: 1;
} }
.showIcon {
position: absolute;
top: 10px;
right: 10px;
z-index: 99;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
height: 28px;
padding: 4px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
width: 28px;
white-space: nowrap;
overflow: hidden;
&:hover {
.icon {
display: none;
}
.text {
display: block;
}
width: 130px;
padding: 4px 8px;
}
.icon {
width: 20px;
display: inline-block;
}
.text {
font-size: 14px;
color: #000;
padding: 4px 8px;
cursor: pointer;
display: none;
}
img {
width: 100%;
height: 100%;
}
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论