瀏覽代碼

update webssh page in manager module

reghao 2 年之前
父節點
當前提交
6f6d6a9da3

+ 1 - 1
manager/src/main/resources/templates/machine/host/index.html

@@ -88,7 +88,7 @@
                         <!--<a class="open-popup" data-title="机器管理" th:attr="data-url=@{'/machine/stat'}"
                            data-size="max" href="#">管理</a>-->
                         <a class="open-popup" data-title="WebTerminal" th:attr="data-url=@{'/machine/host/webssh/'+${item.machineId}}"
-                           href="#">SSH</a>
+                           data-size="max">SSH</a>
                         <a class="open-popup" data-title="机器详细信息" th:attr="data-url=@{'/machine/host/detail/'+${item.machineId}}"
                            data-size="960,480" href="#">详细</a>
                         <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.machineId} + ' 机器?'"

+ 1 - 2
manager/src/main/resources/templates/machine/host/webssh.html

@@ -14,7 +14,6 @@
 <script type="text/javascript" th:inline="javascript">
     var options = [[${sshConnData}]]
     openTerminal(options);
-
     function openTerminal(options){
         var client = new WebSocketClient();
         var term = new Terminal({
@@ -33,7 +32,7 @@
         });
         term.open(document.getElementById('terminal'));
         //在页面上显示连接中...
-        term.write('Connecting...');
+        term.write('Connecting...\n');
         //执行连接操作
         client.connect({
             onError: function (error) {