Commit c10a4be0 authored by JingChao's avatar JingChao

Update index.vue

parent c6dddedd
...@@ -47,10 +47,11 @@ export default { ...@@ -47,10 +47,11 @@ export default {
return $el return $el
}, },
getNextElementHeight () { getNextElementHeight () {
let nextElement = this.$el.nextElementSibling //let nextElement = this.getHeader()
let headerElement = this.$el.previousElementSibling
let height = 0 let height = 0
if (nextElement) { if (headerElement) {
height = window.getComputedStyle(nextElement).height height = window.getComputedStyle(headerElement).height
if (height) { if (height) {
height = Number(height.replace('px', '')) height = Number(height.replace('px', ''))
} }
......
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