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

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

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