Commit eeb93ad9 by fanyj

tijiao

parent 62da8f61
......@@ -152,7 +152,6 @@ export function PostJSON(url, payload) {
// } catch (error) {
// }
console.log(params)
return IsArr(data) ? instance.post(url, data, {
params: {env, templateType: getTemplateType(), ...params}, cancelToken
......
......@@ -337,16 +337,20 @@ const AssetAction = (props) => {
const getElements = ( cb = null ) => {
console.log('data',templateType)
const tempinfo = {}
if(templateType){
tempinfo.templateType =templateType
}
dispatch({
type: (currentAction==='add')?'assetmanage.listElementsAndFillValue':'assetmanage.listElements',
payload: (currentAction==='add')?{
params: {
dirId,
templateType
...tempinfo
}
}:{
params:{
templateType
...tempinfo
}
},
callback: data => {
......
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