Merge pull request #3129 from jumpserver/v52_remoteapp

V52 remoteapp
pull/3131/head
BaiJiangJie 2019-08-15 19:10:18 +08:00 committed by GitHub
commit 088f815a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -110,16 +110,15 @@ function hiddenFields(){
function constructParams(data) {
var typeList = ['chrome', 'mysql_workbench', 'vmware_client', 'custom'];
var params = {};
for (var type in typeList){
if (data.type === type){
$.each(typeList, function(index, value){
if (data.type === value){
for (var k in data){
if (k.startsWith(data.type)){
if (k.startsWith(value)){
params[k] = data[k]
}
}
break
}
}
});
return params;
}
$(document).ready(function () {