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

View File

@@ -11,6 +11,7 @@ import {
useEventListener,
onMountedOrActivated,
} from '@vant/use';
import { onPopupReopen } from '../composables/on-popup-reopen';
// Components
import { Icon } from '../icon';
@@ -171,6 +172,7 @@ export default defineComponent({
}, ms);
};
onPopupReopen(start);
onMountedOrActivated(start);
// fix cache issues with forwards and back history in safari