29c739c7 by lihua

解决查看凭证的文件名问题

1 parent 7f1ece6a
......@@ -72,9 +72,11 @@ export const onUploadFilePreview = async (params) => {
url = getPathUrl(url);
// let f = formInline.value[item.field].find(i => i.name == file.name);
// let url = f.url;
let fileName: string = parseAndDecodeUrl(url).fileName;
let urlInfo = parseAndDecodeUrl(url);
let fileName: string = urlInfo.fileName;
if (!name) {
name = fileName;
// 获取最后的文件名部分
name = urlInfo.lastPart;
}
const refSignInfo: any = await getDownFileSignByUrl(fileName);
if (!refSignInfo?.data) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!