转移项目-修改1

This commit is contained in:
caishi 2021-04-26 16:17:04 +08:00
parent 631b05dfd6
commit 0636e0a925
3 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ if (isDev) {
} }
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' : window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student' window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
} }
window._debugType = debugType; window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {

View File

@ -42,7 +42,7 @@ function Notify(props){
list.map((i,k)=>{ list.map((i,k)=>{
return( return(
<li> <li>
<Link to={`/users/${i.login}`}><img src={getImageUrl(i.applied_user && i.applied_user.image_url)} alt="" className="notifyImg"/></Link> <Link to={`/users/${i.login}`}><img src={getImageUrl(`/${i.applied_user && i.applied_user.image_url}`)} alt="" className="notifyImg"/></Link>
<div className="notifyFlex"> <div className="notifyFlex">
<p className="notifyInfos"> <p className="notifyInfos">
<Link to={`/users/${i.applied_user && i.applied_user.login}`} className="font-15 mr20">{i.applied_user && i.applied_user.name}</Link> <Link to={`/users/${i.applied_user && i.applied_user.login}`} className="font-15 mr20">{i.applied_user && i.applied_user.name}</Link>

View File

@ -64,14 +64,14 @@ function UndoEvent(props){
list.map((i,k)=>{ list.map((i,k)=>{
return( return(
<li> <li>
<Link to={`/users/${i.user && i.user.login}`}><img src={getImageUrl(i.user && i.user.image_url)} alt="" className="notifyImg"/></Link> <Link to={`/users/${i.user && i.user.login}`}><img src={getImageUrl(`/${i.user && i.user.image_url}`)} alt="" className="notifyImg"/></Link>
<div className="notifyFlex"> <div className="notifyFlex">
<p className="notifyInfos"> <p className="notifyInfos">
<Link to={`/users/${i.login}`} className="font-15 mr20">{i.user && i.user.name}</Link> <Link to={`/users/${i.login}`} className="font-15 mr20">{i.user && i.user.name}</Link>
<span className="color-grey-9">{i.time_ago}</span> <span className="color-grey-9">{i.time_ago}</span>
</p> </p>
<FlexAJ> <FlexAJ>
<p>请求将仓库转移给{i.owner && i.owner.name},是否接受</p> <p className="color-grey-6">请求将仓库{i.project && i.project.name}转移给{i.owner && i.owner.name},是否接受</p>
{ {
i.status === "common" && i.status === "common" &&
<span> <span>
@ -87,7 +87,7 @@ function UndoEvent(props){
i.status === "canceled" && <span className="color-grey-9">对方已取消转移</span> i.status === "canceled" && <span className="color-grey-9">对方已取消转移</span>
} }
{ {
i.status === "accept" && <span className="color-grey-9">已接受</span> i.status === "accepted" && <span className="color-grey-9">已接受</span>
} }
{ {
i.status === "refused" && <span className="color-grey-9">已拒绝</span> i.status === "refused" && <span className="color-grey-9">已拒绝</span>