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

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

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