02bffd1b by lihua

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

1 parent a61b4d39
...@@ -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) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!