Commit 5f0f95b3 by zhaochengxiang

代理数据源信息

parent 567b616b
...@@ -175,6 +175,10 @@ const UpdateDatasourceModal = (props) => { ...@@ -175,6 +175,10 @@ const UpdateDatasourceModal = (props) => {
scope: ((scope||[]).length>2?scope[2]:'') scope: ((scope||[]).length>2?scope[2]:'')
}}; }};
if (action === 'edit') {
newDatasource = {...newDatasource, id: currentDatasource.id};
}
//深拷贝 //深拷贝
newDatasource = JSON.parse(JSON.stringify(newDatasource)); newDatasource = JSON.parse(JSON.stringify(newDatasource));
newDatasource && (newDatasource.targetParameters||[]).forEach(item => { newDatasource && (newDatasource.targetParameters||[]).forEach(item => {
......
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