Commit 603454e9 authored by 皮倩雯's avatar 皮倩雯

fix: '修复图片库显示不出来问题'

parent 59826b3a
......@@ -626,7 +626,7 @@ const AddModal = props => {
setOrder(res.data.root.Order);
form.setFieldsValue({ ...res.data.root });
if (res.data.root.ImageExpression) {
setImageUrl(window.location.origin + `/${res.data.root.ImageExpression}`);
setImageUrl(window.location.origin + `/civweb4/${res.data.root.ImageExpression}`);
setIm(res.data.root.ImageExpression);
} else {
form.setFieldsValue({
......@@ -1303,7 +1303,7 @@ const AddModal = props => {
const onOk = props => {
console.log(props);
if (props) {
setImageUrl(window.location.origin + `/${props}`);
setImageUrl(window.location.origin + `/civweb4/${props}`);
setIm(props);
setKeepImgeUrl(props);
form.setFieldsValue({ ImageExpression: `${props}` });
......
......@@ -191,7 +191,7 @@ const PreviewModal = props => {
return (
<div className={styles.divItem} key={index}>
<img
src={window.location.origin + `/${k.value}`}
src={window.location.origin + `/civweb4/${k.value}`}
className={classnames({
[styles.imgHidden]: k.value !== chooseItem,
[styles.imgItem]: k.value == chooseItem,
......
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