Commit 470d6594 by zhaochengxiang

模型默认不选中模版

parent 65aecb07
...@@ -41,8 +41,8 @@ const ImportAction = (props) => { ...@@ -41,8 +41,8 @@ const ImportAction = (props) => {
setTemplates(data.templates||[]); setTemplates(data.templates||[]);
if (action === 'add') { if (action === 'add') {
setConstraint((data.constraints||[]).length>0?data.constraints[0]:{}); setConstraint((data.constraints||[]).length>0?data.constraints[0]:{});
setTemplate((data.templates||[]).length>0?data.templates[0]:{}); setTemplate({});
getDraft((data.constraints||[]).length>0?data.constraints[0]:{}, (data.templates||[]).length>0?data.templates[0]:{} ,hints); getDraft((data.constraints||[]).length>0?data.constraints[0]:{}, {} ,hints);
} else if(action === 'edit' || action === 'detail') { } else if(action === 'edit' || action === 'detail') {
getCurrentDataModel(); getCurrentDataModel();
} }
......
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