Commit 0c6df5cd by zhaochengxiang

bug fix

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