diff --git a/webroot/AutoSa/runserver b/webroot/AutoSa/runserver index 2bee5c224..b0a58a2b4 100755 --- a/webroot/AutoSa/runserver +++ b/webroot/AutoSa/runserver @@ -2,3 +2,4 @@ ./manage.py runserver 0.0.0.0:80 &> access.log & ./log_handler.py &> handler.log & +node ./websocket/index.js & \ No newline at end of file diff --git a/webroot/AutoSa/templates/logView.html b/webroot/AutoSa/templates/logView.html index 0c77a34b5..d60f9b0c2 100644 --- a/webroot/AutoSa/templates/logView.html +++ b/webroot/AutoSa/templates/logView.html @@ -74,7 +74,7 @@ //去除log中的颜色控制字符 var regx = /\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]/g; tag.append('

'+escapeString(obj.content.replace(regx,''))+'

'); - tag.animate({ scrollTop: tag[0].scrollHeight}, 1000); + tag.animate({ scrollTop: tag[0].scrollHeight}, 1); }); return tag[0]; } ,