From 8d56502a875e7a1271fef00afbd7e7f675d99a7f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Jul 2021 01:45:21 +0800 Subject: [PATCH] feat: Shading model # Conflicts: # front-agent/WebContent/ide --- js/OnlineIDE.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/OnlineIDE.js b/js/OnlineIDE.js index 0c4a8ec..1df1b68 100644 --- a/js/OnlineIDE.js +++ b/js/OnlineIDE.js @@ -361,7 +361,10 @@ function onExecuteResult(obj) { const executeResultTitleEl = $("#executeResultTitle"); const data = obj; var sytleTail = "未知格式"; - if (data.result instanceof Object) { + if (data.result==undefined) { + styleTail = "Undefined"; + data.result = ""; + } else if (data.result instanceof Object) { sytleTail = "JSON格式"; data.result =JSON.stringify(data.result); } else if (typeof data.result == 'string') {