Commit 38303574 authored by 涂伟's avatar 涂伟

fix: 'web配置图片上传显示逻辑优化'

parent fc3ce2b9
Pipeline #72430 passed with stages
......@@ -273,17 +273,19 @@ class PicturesWall extends React.Component<PicturesWallType> {
// reader.onload = () => resolve(reader.result as string);
// })
// });
return `/PandaOMS/OMS/FileCenter/DownLoadFiles?module=图库&filePath=${path}`
// if (path && path.indexOf('http') === 0) {
// return path
// }
// if (path && path.indexOf('data:') === 0) {
// return path
// }
// if (path && path.indexOf('assets') === 0) {
// return `${window.location.origin}/civweb4/${path}`.replace(/\\/g, '/')
// }
if (path && path.indexOf('http') === 0) {
return path
}
if (path && path.indexOf('data:') === 0) {
return path
}
if (path && path.indexOf('assets') === 0) {
return `${window.location.origin}/civweb4/${path}`.replace(/\\/g, '/')
}
return `/PandaOMS/OMS/FileCenter/DownLoadFiles?module=图库&filePath=${path}`
// return `${window.location.origin}/${path}`.replace(/\\/g, '/')
}
......
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