mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
get dir_id from headers
This commit is contained in:
@@ -272,14 +272,14 @@ class Wiki extends Component {
|
||||
this.setState({isDirentListLoading: true});
|
||||
seafileAPI.listDir(repoID, filePath).then(res => {
|
||||
let direntList = [];
|
||||
res.data.data.forEach(item => {
|
||||
res.data.forEach(item => {
|
||||
let dirent = new Dirent(item);
|
||||
direntList.push(dirent);
|
||||
});
|
||||
this.setState({
|
||||
direntList: direntList,
|
||||
isDirentListLoading: false,
|
||||
dirID: res.data.oid,
|
||||
dirID: res.headers.oid,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user