From a245da15cfa3b6c434b344da4681ee4c8af51efb Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 1 Jun 2021 09:49:47 +0800 Subject: [PATCH] fix(NoticeBar): failed to play when inside a re-opened popup (#8789) --- src/notice-bar/NoticeBar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/notice-bar/NoticeBar.tsx b/src/notice-bar/NoticeBar.tsx index ec1bebe9f..5ae40f141 100644 --- a/src/notice-bar/NoticeBar.tsx +++ b/src/notice-bar/NoticeBar.tsx @@ -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