Commit 3ad3191c authored by 盖献康's avatar 盖献康

文件上传名

parent aa7615b5
......@@ -36,9 +36,9 @@ export default {
const isBlob = blobValidate(res.data)
if (isBlob) {
const blob = new Blob([res.data])
const url = res.config['url']
const keyword = '-'
const index = url.indexOf(keyword, url.indexOf(keyword) + 1)
const url = decodeURIComponent(res.config['url'])
const keyword = '/tmt-pic/business/'
const index = url.indexOf(keyword)
let result = ''
if (index !== -1) {
result = url.substring(index + keyword.length)
......
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