forge
caicai8 5 years ago
parent 5d4c909020
commit f47569cc3e

@ -329,7 +329,7 @@ class ApplicationController < ActionController::Base
def current_user
# User.current
if Rails.env.development?
user_id = 50207
user_id = 36390
else
user_id = 130328
end

@ -47,8 +47,8 @@ export function initAxiosInterceptors(props) {
// TODO 读取到package.json中的配置
var //proxy = "http://localhost:3000"
// proxy="http://123.59.135.93:56666"
proxy="http://localhost:3000"
proxy="http://123.59.135.93:56666"
// proxy="http://localhost:3000"
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制

@ -70,17 +70,20 @@ class CoderRootDirectory extends Component{
branch
}
}).then((result)=>{
if(result && result.data && result.data.length > 0){
this.setState({
filePath:[],
fileDetail:undefined,
isSpin: false
})
this.renderData(result.data);
if(result){
if(result && result.data && result.data.length > 0){
this.setState({
filePath:[],
fileDetail:undefined,
isSpin: false
})
this.renderData(result.data);
}
this.setState({
rootData:result.data
})
}
}).catch((error)=>{})
}
@ -206,7 +209,7 @@ class CoderRootDirectory extends Component{
}
render(){
const { rootList , branch ,filePath , fileDetail , subFileType , readMeContent, isSpin , rootData } = this.state;
console.log("ddd",rootData);
const { branchLastCommit , http_url , isManager , isDeveloper } = this.props;
const { projectsId } = this.props.match.params;

Loading…
Cancel
Save