mirror of https://github.com/openspug/spug
F 修复文件管理某些情况下未正常刷新的问题
parent
1a607acfe5
commit
828c55f859
|
@ -38,6 +38,13 @@ class FileManager extends React.Component {
|
||||||
this.fetchFiles()
|
this.fetchFiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidUpdate(prevProps) {
|
||||||
|
if (this.props.id !== prevProps.id) {
|
||||||
|
this.fetchFiles()
|
||||||
|
this.setState({objects: []})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
columns = [{
|
columns = [{
|
||||||
title: '名称',
|
title: '名称',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
|
|
Loading…
Reference in New Issue