diff --git a/static/js/wide.js b/static/js/wide.js index 36b1c09..0d5b80d 100644 --- a/static/js/wide.js +++ b/static/js/wide.js @@ -402,7 +402,13 @@ var wide = { switch (data.cmd) { case 'run': // 正在运行 - bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '
' + data.output + '
'); + + if(!wide.curProcessId){ + bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '
' + data.output + '
'); + }else{ + bottomGroup.fillOutput($('.bottom-window-group .output > div').html().replace(/<\/pre>$/g, data.output + ''); + } + wide.curProcessId = data.pid; break; @@ -706,4 +712,4 @@ $(document).ready(function () { editors.init(); windows.init(); bottomGroup.init(); -}); \ No newline at end of file +});