mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 06:44:16 +00:00
Update dir api (#2869)
* update dir api return dict format response * [listDir] modified listDir after api updated
This commit is contained in:
@@ -45,7 +45,7 @@ class DirentListItem extends React.Component {
|
||||
if (!this.state.hasRequest) {
|
||||
seafileAPI.listDir(this.props.repo.repo_id, this.state.filePath).then(res => {
|
||||
let direntList = [];
|
||||
res.data.forEach(item => {
|
||||
res.data.dirent_list.forEach(item => {
|
||||
if (this.props.isShowFile === true) { // show dir and file
|
||||
let dirent = new Dirent(item);
|
||||
direntList.push(dirent);
|
||||
|
Reference in New Issue
Block a user