Skip to content

Commit

Permalink
refactor: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Feb 3, 2024
1 parent 5e250d9 commit 60e0e07
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/varlet-ui/src/sticky/Sticky.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default defineComponent({
onSmartMounted(async () => {
await doubleRaf()
setupScroller()
handleScroll()
})
Expand Down Expand Up @@ -126,11 +127,6 @@ export default defineComponent({
}
function handleScroll() {
// scroller may change after page switch for nuxt
if (!scroller) {
setupScroller()
}
// returns undefined when disabled = true
const fixedParams = computeFixedParams()
Expand Down

0 comments on commit 60e0e07

Please sign in to comment.