Commit a521ab74 by wusiyi

feat: 修改tiff文件打开链接

parent 2ee0c9d5
...@@ -3259,10 +3259,16 @@ const handleDownload = async (row: PodUsOrderListData) => { ...@@ -3259,10 +3259,16 @@ const handleDownload = async (row: PodUsOrderListData) => {
const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff' const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff'
try { try {
const url = let url: string = ''
type === 'png' if (type === 'png') {
? filePath + row.url url = filePath + row.url
: `https://ps.jomalls.com/tiff/` + row.tiffUrl } else {
if (row.tiffUrl?.startsWith('/temp')) {
url = `https://factory.jomalls.com/upload/factory` + row.tiffUrl
} else {
url = `https://ps.jomalls.com/tiff` + row.tiffUrl
}
}
if (type === 'tiff') { if (type === 'tiff') {
window.open(url, '_blank') window.open(url, '_blank')
......
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