Commit 73bde253 authored by chenjianxing's avatar chenjianxing Committed by jianxing
Browse files

fix: 编辑场景滑动滚动条控制台报错

parent b3db4f3b
Showing with 8 additions and 6 deletions
+8 -6
...@@ -1285,12 +1285,14 @@ export default { ...@@ -1285,12 +1285,14 @@ export default {
handleScroll() { handleScroll() {
let stepInfo = this.$refs.stepInfo; let stepInfo = this.$refs.stepInfo;
let debugHeader = this.$refs.debugHeader; let debugHeader = this.$refs.debugHeader;
let originWidth = debugHeader.clientWidth; if (debugHeader) {
if (stepInfo.getBoundingClientRect().top <= 178) { let originWidth = debugHeader.clientWidth;
this.isTop = true; if (stepInfo.getBoundingClientRect().top <= 178) {
debugHeader.style.width = originWidth + 'px'; this.isTop = true;
} else { debugHeader.style.width = originWidth + 'px';
this.isTop = false; } else {
this.isTop = false;
}
} }
} }
} }
......
Supports Markdown
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