Commit 7158b2c6 authored by dragondean@qq.com's avatar dragondean@qq.com

修复刷新提单pdf文件名少一个字符

parent 9ad37d9e
......@@ -51,7 +51,8 @@ export default {
}).then(res => {
let form = new FormData()
let file = (new URL(res.data.imgUrl)).pathname.replace(/^(\/)[a-zA-Z0-9]/, '') // 替换掉最前面的/
let file = (new URL(res.data.imgUrl)).pathname
if(file.substring(0, 1) == '/')file = file.substring(1) // 替换掉最前面的/
form.append('file', new File([doc.output('arraybuffer')], file, {type: 'application/pdf'}))
form.append('path', file)
......
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