Merge pull request '通知公告弹框bug以及pr页面下拉弹框的宽度' (#192) from caishi/forgeplus-react:pre_develop_dev into pre_develop_dev

This commit is contained in:
jasder 2021-10-20 11:19:13 +08:00
commit be3e2b6936
3 changed files with 12 additions and 16 deletions

View File

@ -12,26 +12,15 @@ function SystemNotice({system_notification,history}){
if(system_notification && !cookie.load('notice_stage')){
setVisible(true);
}
},[system_notification])
},[system_notification,history.location])
function sureContinue() {
// if(login && ( system_notification && system_notification.id )){
// const url = `/users/${login}/system_notification_histories.json`;
// axios.post(url,{
// system_notification_id:system_notification.id
// }).then(result=>{
// if(result && result.status === 0){
// setVisible(false);
// hideSystemNotice();
// }
// }).catch(error=>{})
// }
console.log("cookies before:",cookie.load('notice_stage')) ;
cookie.remove('notice_stage');
let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//
// let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//
cookie.save('notice_stage', true,{ expires: inFifteenMinutes });
console.log("cookies after:",cookie.load('notice_stage')) ;
cookie.save('notice_stage', true,{ expires: inFifteenMinutes,path:"/" });
setVisible(false);
}

View File

@ -22,9 +22,14 @@
border-bottom: none;
}
.treeinfo{
max-width: 399px;
width: 399px;
flex:1;
flex-direction: column;
&>a{
display: block;
width: 399px;
}
a:hover{
span{
color: #466AFF!important;

View File

@ -368,6 +368,7 @@ class CreateMerge extends Component {
onSelect={(e) => this.selectBrach('pull', e)}
showSearch
className="merge-flex1 flex1"
dropdownMatchSelectWidth={false}
>
{this.renderBrances(pullBranches)}
</Select>
@ -394,6 +395,7 @@ class CreateMerge extends Component {
onSelect={(e) => this.selectBrach('merge', e)}
showSearch
className="merge-flex1 flex1"
dropdownMatchSelectWidth={false}
>
{this.renderBrances(mergeBranches)}
</Select>