diff --git a/src/components/StupWizard/index.tsx b/src/components/StupWizard/index.tsx index 6e59b4b..06e17de 100644 --- a/src/components/StupWizard/index.tsx +++ b/src/components/StupWizard/index.tsx @@ -109,9 +109,11 @@ const StupWizard = forwardRef((_props: any, ref: any) => { cursor: 'pointer' }} onClick={async () => { + const userInfo = JSON.parse(storage.getItem('user') as string) if (location.hash.indexOf('/meeting') === -1) { agora.release() } + await agora.destroyRendererByConfigPreview(Number(userInfo.screenShareId), c) setIsStupWizard(false) }} />