Update index.vue

This commit is contained in:
reco_luan 2019-01-24 14:38:57 +08:00 committed by GitHub
parent 0490b128ea
commit 60c0a39a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,7 @@ export default {
// 使refdom
const navbarWrapper = document.querySelector('#navbarWrapper')
// const height = navbarWrapper.offsetHeight == 58 ? 58 : 58
const height = navbarWrapper.offsetHeight == 0 ? 0 : 0
const height = navbarWrapper.offsetHeight == 58 ? 58 : 58
const transformHeight = scrollDirection == 'up' ? height : 0
if (oldTransformHeight != transformHeight) {