Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_ec
cxt 5 years ago
commit 7038608c14

@ -15,6 +15,7 @@ import RepositoryCodeEditor from './shixunchild/Repository/RepositoryCodeEditor'
class TPMRepositoryComponent extends Component {
constructor(props) {
super(props)
this.nameTypeMap = {}
let pathArray = []
var splitArray = window.location.pathname.split('shixun_show/');
if (splitArray[1]) {
@ -38,7 +39,7 @@ class TPMRepositoryComponent extends Component {
componentDidMount = () => {
this.nameTypeMap = {}
this.fetchRepo()
}
setContentWidth100 = (flag) => {
@ -139,7 +140,7 @@ class TPMRepositoryComponent extends Component {
let fileInPathArray = false;
if (newPathArray.length) {
fileInPathArray = this.nameTypeMap[newPathArray[newPathArray.length - 1]] ? this.nameTypeMap[newPathArray[newPathArray.length - 1]] !== 'tree'
: (listItem.type !== 'tree' && this._isFileName( newPathArray[newPathArray.length - 1] ))
: (listItem ? listItem.type !== 'tree' : this._isFileName( newPathArray[newPathArray.length - 1] ))
if ( fileInPathArray ) {
urlNewPathArray = newPathArray.slice(0, newPathArray.length - 1)
}

Loading…
Cancel
Save