Commit 0c6df5cd by zhaochengxiang

bug fix

parent 678f780a
......@@ -221,8 +221,9 @@ export const callFetchRaw = (method, url, options) => {
return axios.request({
method,
url,
params: {...params, templateType},
...config,
...options
...reqConfig
})
}
......@@ -241,7 +242,7 @@ export const callFetchRawByFormData = (method, url, options) => {
const templateType = getTemplateType();
var bodyFormData = new FormData();
Object.keys(params||[]).forEach(key => {
Object.keys(params||{}).forEach(key => {
bodyFormData.append(key, params[key]);
});
bodyFormData.append('templateType', templateType);
......
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