1
0
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:
lian
2019-01-22 18:27:51 +08:00
committed by Daniel Pan
parent 35c1663dc2
commit 0fb958d9bd
8 changed files with 89 additions and 85 deletions

View File

@@ -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);