forge
caicai8 5 years ago
parent 5d4c909020
commit f47569cc3e

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

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

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

Loading…
Cancel
Save