mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Swipe): failed to render inside keep-alive (#11437)
This commit is contained in:
parent
670efb16f9
commit
2c4b599138
@ -270,6 +270,10 @@ export default defineComponent({
|
||||
|
||||
if (count.value) {
|
||||
active = Math.min(count.value - 1, active);
|
||||
|
||||
if (active === -1) {
|
||||
active = count.value - 1;
|
||||
}
|
||||
}
|
||||
|
||||
state.active = active;
|
||||
|
Loading…
x
Reference in New Issue
Block a user