fix: 'ABackTop visible issue under KeepAlive' (#3803)
parent
3985a2b6ee
commit
749e196689
|
@ -44,6 +44,11 @@ const BackTop = defineComponent({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
activated() {
|
||||||
|
nextTick(() => {
|
||||||
|
this.handleScroll();
|
||||||
|
});
|
||||||
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
if (this.scrollEvent) {
|
if (this.scrollEvent) {
|
||||||
this.scrollEvent.remove();
|
this.scrollEvent.remove();
|
||||||
|
|
Loading…
Reference in New Issue