解决查看凭证的文件名问题
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -72,9 +72,11 @@ export const onUploadFilePreview = async (params) => { | ... | @@ -72,9 +72,11 @@ export const onUploadFilePreview = async (params) => { |
| 72 | url = getPathUrl(url); | 72 | url = getPathUrl(url); |
| 73 | // let f = formInline.value[item.field].find(i => i.name == file.name); | 73 | // let f = formInline.value[item.field].find(i => i.name == file.name); |
| 74 | // let url = f.url; | 74 | // let url = f.url; |
| 75 | let fileName: string = parseAndDecodeUrl(url).fileName; | 75 | let urlInfo = parseAndDecodeUrl(url); |
| 76 | let fileName: string = urlInfo.fileName; | ||
| 76 | if (!name) { | 77 | if (!name) { |
| 77 | name = fileName; | 78 | // 获取最后的文件名部分 |
| 79 | name = urlInfo.lastPart; | ||
| 78 | } | 80 | } |
| 79 | const refSignInfo: any = await getDownFileSignByUrl(fileName); | 81 | const refSignInfo: any = await getDownFileSignByUrl(fileName); |
| 80 | if (!refSignInfo?.data) { | 82 | if (!refSignInfo?.data) { | ... | ... |
-
Please register or sign in to post a comment