Commit 3ac0e9a9 authored by 邓超's avatar 邓超

fix: 修改集成登录图片路劲问题

parent 373af9ac
Pipeline #73902 passed with stages
......@@ -390,7 +390,7 @@ const AddModal = props => {
if (obj.iconUrl.includes('CityTemp') && obj.iconUrl.includes('图库')) {
obj.iconUrl = obj.iconUrl;
} else {
obj.iconUrl = 'CityTemp\\图库\\' + obj.iconUrl;
obj.iconUrl = obj.iconUrl;
}
}
if (type === 'add') {
......@@ -543,7 +543,7 @@ const AddModal = props => {
// };
// });
if (info.file.response.code === 0) {
setIsFromLocal(false)
setIsFromLocal(false);
console.log('触发咯');
if (
info.file.response.data.includes('CityTemp') &&
......@@ -551,7 +551,7 @@ const AddModal = props => {
) {
setImageUrl(getImg(info.file.response.data));
} else {
setImageUrl(getImg('CityTemp\\图库\\' + info.file.response.data));
setImageUrl(getImg(info.file.response.data));
}
setLoading(false);
} else {
......
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