support BackTop to 2.0
This commit is contained in:
parent
4aec6a66bb
commit
1d8f776752
6 changed files with 24 additions and 4 deletions
|
@ -35,7 +35,7 @@
|
|||
backTop: false
|
||||
};
|
||||
},
|
||||
ready () {
|
||||
mounted () {
|
||||
window.addEventListener('scroll', this.handleScroll, false);
|
||||
window.addEventListener('resize', this.handleScroll, false);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue