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

fix: 修改弥勒集成登录营收跳转问题

parent 1d10eeab
Pipeline #96511 passed with stages
......@@ -244,17 +244,13 @@ const IntegrationMile = props => {
if (res.code === 0) {
// 营收是api-bcs,直饮水是api-ddw
const apiPath = `${item.url}/api-ddw/sysUser/ssoGCK?sysFlag=0&${item.paramName}=${res.data}`;
setLinkUrl(apiPath);
const res2 = await axios({
url: apiPath,
method: 'get',
dataType: 'json',
});
if (res2?.data?.resultcode !== 'no') {
setLinkUrl('');
// setLinkUrl(apiPath);
if (item?.openOpt === '当前页打开') {
setLinkUrl(apiPath);
} else {
setJumpLoading(false);
jumpProgressEnd();
message.warning('没权限,请联系管理员');
window.open(apiPath, '_blank');
}
} else {
res.msg && message.error(res.msg);
......
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