mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(page-scroll): fix isDef (#4488)
This commit is contained in:
parent
058a00ed33
commit
df2f297541
@ -38,7 +38,7 @@ export const pageScrollMixin = (scroller: Scroller) =>
|
||||
|
||||
detached() {
|
||||
const page = getCurrentPage<{ vanPageScroller: Scroller[] }>();
|
||||
if (!isDef(page)) {
|
||||
if (isDef(page)) {
|
||||
page.vanPageScroller =
|
||||
page.vanPageScroller?.filter((item) => item !== scroller) || [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user