Unverified Commit 7d1e8d25 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3128 from jumpserver/v52_remoteapp

[Bugfix] 修复remote-app应用创建/更新时,参数设置不成功的bug
parents 10de4f4e 50f50a4f
...@@ -110,16 +110,15 @@ function hiddenFields(){ ...@@ -110,16 +110,15 @@ function hiddenFields(){
function constructParams(data) { function constructParams(data) {
var typeList = ['chrome', 'mysql_workbench', 'vmware_client', 'custom']; var typeList = ['chrome', 'mysql_workbench', 'vmware_client', 'custom'];
var params = {}; var params = {};
for (var type in typeList){ $.each(typeList, function(index, value){
if (data.type === type){ if (data.type === value){
for (var k in data){ for (var k in data){
if (k.startsWith(data.type)){ if (k.startsWith(value)){
params[k] = data[k] params[k] = data[k]
} }
} }
break
}
} }
});
return params; return params;
} }
$(document).ready(function () { $(document).ready(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment