Commit 738612e2 authored by 皮倩雯's avatar 皮倩雯

fix: '修复集成登录图标裂掉的问题'

parent b449444d
Pipeline #77776 passed with stages
......@@ -79,7 +79,7 @@ const AddModal = props => {
const [pick, setPick] = useState(''); // 复选框数据填入项
const [keepIds, setKeepIds] = useState(null);
const [account, setAccount] = useState(0);
const [isFromLocal, setIsFromLocal] = useState(false);
const [isFromLocal, setIsFromLocal] = useState('');
const key = CryptoJS.enc.Utf8.parse('1p2a3n4d5a6o7m8s9a10n1e2t3c4o5re'); // 十六位十六进制数作为密钥
const iv = CryptoJS.enc.Utf8.parse('1234567890000000');
......@@ -87,6 +87,7 @@ const AddModal = props => {
useEffect(() => {
if (visible) {
setIsFromLocal('');
getRole();
getMap();
if (type === 'edit') {
......@@ -390,12 +391,12 @@ const AddModal = props => {
}
});
}
console.log(obj.isMaster);
if (!obj.iconUrl) {
message.error('请选择图标!');
return;
}
if (!isFromLocal) {
// 从本地选取
if (!isFromLocal && isFromLocal !== '') {
if (obj.iconUrl.includes('CityTemp') && obj.iconUrl.includes('图库')) {
obj.iconUrl = obj.iconUrl;
} 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