mirror of
https://github.com/youzan/vant.git
synced 2026-03-06 02:06:58 +08:00
fix(Swipe): failed to render inside keep-alive (#11437)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user