Commit f3086e37 authored by 周宏民's avatar 周宏民

pref: 兼容以前集成登录没有配置 client的情况

parent 6dcbc0c8
Pipeline #94169 waiting for manual action with stages
......@@ -105,7 +105,14 @@ const IntegratedSwitch = props => {
'',
})
.then(res => {
setDataList(res?.data || []);
let arr = res?.data || [];
arr = arr.map(item => {
if (item.subType === '内链' && !item.client && item.url) {
item.client = item.url?.indexOf('client=') >= 0 ? item.url.split('client=')[1] : '';
}
return item;
});
setDataList(arr);
})
.catch(err => {
setDataList([]);
......
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