Commit 44495de9 authored by 皮倩雯's avatar 皮倩雯

fix: 修复集成登录图标回显是选中状态消失的问题'

parent fc3337c9
Pipeline #73168 waiting for manual action with stages
......@@ -127,7 +127,7 @@ const AddModal = props => {
// setImageUrl(window.location.origin + `/${pickItem.iconUrl}`);
if (!pickItem.iconUrl.includes('images')) {
setImageUrl(getImg(pickItem.iconUrl));
setIm(getImg(pickItem.iconUrl));
setIm(pickItem.iconUrl);
} else {
if (
pickItem.iconUrl.startsWith('CityTemp') ||
......@@ -137,6 +137,7 @@ const AddModal = props => {
} else {
setImageUrl(window.location.origin + `/${pickItem.iconUrl}`);
}
setIm(pickItem.iconUrl);
}
// }
} else {
......@@ -588,12 +589,12 @@ const AddModal = props => {
if (props) {
if (!props.path.includes('images')) {
setImageUrl(getImg(props.path));
setIm(getImg(props.path));
setKeepImgeUrl(getImg(props.path));
setIm(props.path);
setKeepImgeUrl(props.path);
} else {
setImageUrl(window.location.origin + `/${props.path}`);
setIm(window.location.origin + `/${props.path}`);
setKeepImgeUrl(window.location.origin + `/${props.path}`);
setIm(props.path);
setKeepImgeUrl(props.path);
}
// setImageUrl(window.location.origin + `/${props.path}`);
// setIm(props.path);
......
......@@ -19,6 +19,9 @@ const PreviewModal = props => {
const [keepGroupName, setKeepGroupName] = useState([]);
useEffect(() => {
console.log(imageUrl);
console.log(keepImgeUrl);
debugger
console.log(type);
console.log(process.env, 'process.env.PROXY');
setPickItem('');
......
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