F 修复文件管理器上传/下载后无法自定刷新的问题

pull/146/head
vapao 2020-07-03 17:19:42 +08:00
parent 861a1af622
commit 554b4f3b56
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class FileManager extends React.Component {
onShow = (visible) => {
if (visible) {
this.fetchFiles(this.state.pwd)
this.fetchFiles()
}
};
@ -82,6 +82,7 @@ class FileManager extends React.Component {
fetchFiles = (pwd) => {
this.setState({fetching: true});
pwd = pwd || this.state.pwd;
const path = '/' + pwd.join('/');
http.get('/api/file/', {params: {id: this.id, path}})
.then(res => {