From 51b3e4b5bb6ebbdca485fba44f5242bbe0122a65 Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Fri, 6 Dec 2019 20:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIssue=E5=9C=A8=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E6=94=BE=E5=A4=A7=E5=90=8E=E5=88=87=E6=8D=A2=E5=88=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=96=87=E4=BB=B6=EF=BC=8C=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BB=A3=E7=A0=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/page/component/monaco/TPIMonaco.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/page/component/monaco/TPIMonaco.js b/public/react/src/modules/page/component/monaco/TPIMonaco.js index 5e687e9ce..c71f13361 100644 --- a/public/react/src/modules/page/component/monaco/TPIMonaco.js +++ b/public/react/src/modules/page/component/monaco/TPIMonaco.js @@ -251,7 +251,8 @@ class TPIMonaco extends Component { // Clears the editor's undo history. // TODO // extend_editor.clearHistory() - } + } + editor_monaco.layout(); } componentWillUnmount() { // 注意销毁,不然会出现不能编辑的bug