fix 'ABackTop visible issue under KeepAlive' (#3802)
parent
7c1a14bb5e
commit
cdde89b17e
|
@ -44,6 +44,11 @@ const BackTop = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
activated() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.handleScroll();
|
||||||
|
});
|
||||||
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
if (this.scrollEvent) {
|
if (this.scrollEvent) {
|
||||||
this.scrollEvent.remove();
|
this.scrollEvent.remove();
|
||||||
|
|
Loading…
Reference in New Issue