fix(NoticeBar): failed to play when inside a re-opened popup (#8789)

This commit is contained in:
neverland
2021-06-01 09:49:47 +08:00
committed by GitHub
parent e49a519e43
commit a245da15cf
+2
View File
@@ -11,6 +11,7 @@ import {
useEventListener, useEventListener,
onMountedOrActivated, onMountedOrActivated,
} from '@vant/use'; } from '@vant/use';
import { onPopupReopen } from '../composables/on-popup-reopen';
// Components // Components
import { Icon } from '../icon'; import { Icon } from '../icon';
@@ -171,6 +172,7 @@ export default defineComponent({
}, ms); }, ms);
}; };
onPopupReopen(start);
onMountedOrActivated(start); onMountedOrActivated(start);
// fix cache issues with forwards and back history in safari // fix cache issues with forwards and back history in safari