forked from Gitlink/forgeplus-react
修复issue
This commit is contained in:
parent
2f188824bd
commit
27f7eafa03
|
@ -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}/>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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({
|
||||
|
|
|
@ -159,3 +159,7 @@
|
|||
.MuiModal-root-15 {
|
||||
z-index: 10001 !important;
|
||||
}
|
||||
|
||||
.loginNotifion{
|
||||
z-index: 1000001;
|
||||
}
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue