diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index db54c550f..5b0ddb8c0 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -47,7 +47,7 @@ if (isDev) { window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' } // 超管 -debugType="admin"; +//debugType="admin"; // 老师 // debugType="teacher"; // 学生 diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.css b/public/react/src/modules/tpm/shixunchild/Repository/Repository.css index c68184337..94daae68a 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.css +++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.css @@ -69,4 +69,7 @@ .pointer{ cursor: pointer; +} +.pl23{ + padding-left: 23px !important; } \ No newline at end of file diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js index 7437264f5..8eb3d691c 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js @@ -420,7 +420,8 @@ class Repository extends Component { > {treesdelecttype===false || trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => { return ( - :} id={`file${index}`} key={index}> + :} id={`file${index}`} key={index}> + )})} diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryDirectories.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryDirectories.js index 34b277009..b97d96ccc 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryDirectories.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryDirectories.js @@ -98,23 +98,24 @@ class RepositoryDirectories extends Component { { pathArray.map((item, index) => { - if(index - { this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1 + { index===pathArray.length-1 && item.indexOf('.') === -1? + / {item} :this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1 ? fetchRepo(index + 1)} className={this.props.tpmComment===true?"color888":"color-blue"} > / {item} : - - / {item} + + / {item} } {index !== pathArray.length - 1 && } ) - } + }) } {/*{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?*/}