Commit a521ab74 by wusiyi

feat: 修改tiff文件打开链接

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