Update index.vue
This commit is contained in:
parent
0490b128ea
commit
60c0a39a6f
@ -73,8 +73,7 @@ export default {
|
||||
|
||||
// 使用ref会间断性获取不到dom
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user