fix 'ABackTop visible issue under KeepAlive' (#3802)

pull/3825/head
Ken 2021-03-15 18:17:33 +08:00 committed by GitHub
parent 7c1a14bb5e
commit cdde89b17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ const BackTop = {
});
},
activated() {
this.$nextTick(() => {
this.handleScroll();
});
},
beforeDestroy() {
if (this.scrollEvent) {
this.scrollEvent.remove();