Commit c338435f by zhaochengxiang

bug fix

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