Skip to content

Commit 749e196

Browse files
authored
fix: 'ABackTop visible issue under KeepAlive' (#3803)
1 parent 3985a2b commit 749e196

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/back-top/index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ const BackTop = defineComponent({
4444
});
4545
},
4646

47+
activated() {
48+
nextTick(() => {
49+
this.handleScroll();
50+
});
51+
},
4752
beforeUnmount() {
4853
if (this.scrollEvent) {
4954
this.scrollEvent.remove();

0 commit comments

Comments
 (0)