修复issue

This commit is contained in:
unknown 2022-02-28 10:45:58 +08:00
parent 2f188824bd
commit 27f7eafa03
5 changed files with 22 additions and 5 deletions

View File

@ -121,7 +121,7 @@ function Index(props) {
}
}).then(result=>{
if(result && result.data){
setCloudData({categories:[]});
setCloudData(result.data || []);
}
}).catch(error=>{})
}
@ -202,7 +202,7 @@ function Index(props) {
<div className="echartBox">
<p>展示你擅长关注感兴趣的专业范围通过你参与项目收藏项目关注项目复刻项目等数据来统计</p>
{
cloudData && cloudData.length >0?
cloudData && cloudData.categories ?
<Cloud data={cloudData}/>
:
<Nodata _html="暂无数据" small={true}/>

View File

@ -128,4 +128,14 @@ span.list-gray {
}
.failByPression .ant-modal-body .anticon, .center-right-but .ant-input-search-icon:hover, .center-content .ant-pagination-item-active a{
color: #4154f1;
}
.go_profiles .ant-modal-body{
text-align: center;
.anticon{
color: #4154f1;
margin-left: 30px;
}
.ant-modal-confirm-btns{
float: none;
}
}

View File

@ -11,7 +11,7 @@ import '../index.scss';
const Search = Input.Search;
export default ({ history, current_user, showLoginDialog, location }) => {
export default ({ history, current_user, showLoginDialog, location, mygetHelmetapi }) => {
// console.log(current_user);
let initType = getUrlToken('type', location.search) || '';
@ -147,7 +147,7 @@ export default ({ history, current_user, showLoginDialog, location }) => {
if (res) {
if (res.message === 'success') {
history.push("/task/taskAdd");
} else if (res.message === '主体信息未认证') {
} else if (res.message === '进行实体认证') {
Modal.info({
title: '因为以下原因,您暂时不能进行本操作',
content: <div className="mt10">
@ -157,9 +157,10 @@ export default ({ history, current_user, showLoginDialog, location }) => {
</div>
</div>,
onOk: () => {
window.location.href = `/users/${current_user.login}/profiles`;
window.location.href = mygetHelmetapi && mygetHelmetapi.main_web_site_url + `/users/${current_user.login}/profiles`;
},
okText: '立即完善',
className: 'go_profiles'
});
} else {
Modal.info({

View File

@ -159,3 +159,7 @@
.MuiModal-root-15 {
z-index: 10001 !important;
}
.loginNotifion{
z-index: 1000001;
}

View File

@ -388,6 +388,7 @@ class LoginDialog extends Component {
message: '提示',
description: response.data.message,
duration: 5,
className: "loginNotifion"
});
}
} else {
@ -432,6 +433,7 @@ class LoginDialog extends Component {
onClick: () => {
},
className: "loginNotifion"
});
}
openqqlogin = () => {