mirror of https://github.com/openspug/spug
F 修复文件管理器上传/下载后无法自定刷新的问题
parent
861a1af622
commit
554b4f3b56
|
@ -72,7 +72,7 @@ class FileManager extends React.Component {
|
||||||
|
|
||||||
onShow = (visible) => {
|
onShow = (visible) => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
this.fetchFiles(this.state.pwd)
|
this.fetchFiles()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ class FileManager extends React.Component {
|
||||||
|
|
||||||
fetchFiles = (pwd) => {
|
fetchFiles = (pwd) => {
|
||||||
this.setState({fetching: true});
|
this.setState({fetching: true});
|
||||||
|
pwd = pwd || this.state.pwd;
|
||||||
const path = '/' + pwd.join('/');
|
const path = '/' + pwd.join('/');
|
||||||
http.get('/api/file/', {params: {id: this.id, path}})
|
http.get('/api/file/', {params: {id: this.id, path}})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|
Loading…
Reference in New Issue