Commit d11be7e6 authored by 邓超's avatar 邓超

fix: 修改图片库web4路径

parent a26de315
Pipeline #50308 passed with stages
in 11 minutes 11 seconds
......@@ -213,7 +213,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
localStorage.setItem('pd2-baseUrl', baseUrl)
}
console.log(fileList[0].url)
this.props.onChange && this.props.onChange(maxLen === 1 ? fileList[0].url.replace('Web4\\', '') : fileList.map(f => f.url.replace('Web4\\', '')));
this.props.onChange && this.props.onChange(maxLen === 1 ? fileList[0].url.replace('web4\\', '') : fileList.map(f => f.url.replace('web4\\', '')));
this.setState({ fileList, wallModalVisible: false });
};
......@@ -265,7 +265,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
return path
}
if (path && path.indexOf('assets') === 0) {
return `${window.location.origin}/Web4/${path}`.replace(/\\/g, '/')
return `${window.location.origin}/web4/${path}`.replace(/\\/g, '/')
}
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