diff --git a/server/www/teleport/static/js/ops/remote-list.js b/server/www/teleport/static/js/ops/remote-list.js index 8cf049d..f84bbcf 100644 --- a/server/www/teleport/static/js/ops/remote-list.js +++ b/server/www/teleport/static/js/ops/remote-list.js @@ -339,7 +339,8 @@ $app.on_table_host_render_created = function (render) { h.push(act_btn.join('')); h.push(''); - if (!is_disabled) { + // 目前仅支持SSH可以使用远程连接授权码 + if (!is_disabled && acc.protocol_type === TP_PROTOCOL_TYPE_SSH) { h.push('
'); h.push(''); h.push('
'); @@ -348,7 +349,6 @@ $app.on_table_host_render_created = function (render) { h.push(''); } - return h.join(''); }; }; @@ -523,7 +523,7 @@ $app.connect_remote = function (uni_id, acc_id, host_id, protocol_type, protocol args.rdp_console = $app.dlg_rdp_options.rdp_console; } - if (uni_id === 'none') + if (uni_id === 'none' || uni_id === '') args.mode = 2; // 根据acc_id判断此远程账号是否有预设密码,如果没有,则需要设置interactive模式。 diff --git a/server/www/teleport/view/ops/remote-list.html b/server/www/teleport/view/ops/remote-list.html index ce78216..b0b5dbc 100644 --- a/server/www/teleport/view/ops/remote-list.html +++ b/server/www/teleport/view/ops/remote-list.html @@ -130,13 +130,11 @@ {# user token #}
-
客户端软件配置信息 -
- - - -
- +
客户端软件配置信息
+
+ + +
@@ -154,33 +152,30 @@
账号:
-{#