Commit c338435f by zhaochengxiang

bug fix

parent af85507b
...@@ -6,7 +6,8 @@ export default function (res: AxiosResponse<any>) { ...@@ -6,7 +6,8 @@ export default function (res: AxiosResponse<any>) {
let tempName = headers["content-disposition"] let tempName = headers["content-disposition"]
?.split(";")?.[1] ?.split(";")?.[1]
?.split("filename=")?.[1]; ?.split("filename=")?.[1]?.split(".")?.[0].replace(/"/g, "");
tempName = decodeURI(tempName); tempName = decodeURI(tempName);
// const blob = new Blob([content], { type: 'application/octet-stream' }) // const blob = new Blob([content], { type: 'application/octet-stream' })
......
...@@ -198,9 +198,6 @@ export const callFetchRaw = (method, url, options) => { ...@@ -198,9 +198,6 @@ export const callFetchRaw = (method, url, options) => {
bodyFormData.append(key, params[key]); bodyFormData.append(key, params[key]);
}); });
console.log('options', options)
console.log('reqConfig', reqConfig)
return axios.request({ return axios.request({
method, method,
url, url,
......
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