fix(Swipe): failed to render inside keep-alive (#11437)

This commit is contained in:
neverland 2022-12-31 10:14:35 +08:00 committed by GitHub
parent 670efb16f9
commit 2c4b599138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;