From e90fbb60f3576f5b6d3ff3861dcb75e55d4e1c8f Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 27 Jul 2019 15:57:31 +0800 Subject: [PATCH] unmountComponentAtNode --- public/react/src/context/TPIContextProvider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/react/src/context/TPIContextProvider.js b/public/react/src/context/TPIContextProvider.js index 93e16a1f6..0f2f68a75 100644 --- a/public/react/src/context/TPIContextProvider.js +++ b/public/react/src/context/TPIContextProvider.js @@ -104,6 +104,7 @@ class TPIContextProvider extends Component { showEffectDisplay = (data) => { const dom = document.getElementById('picture_display'); window.$(dom).show(); + ReactDOM.unmountComponentAtNode(dom) ReactDOM.render(, dom); }