diff --git a/spug_web/src/pages/ssh/FileManager.js b/spug_web/src/pages/ssh/FileManager.js index c4c51de8..dbb82258 100644 --- a/spug_web/src/pages/ssh/FileManager.js +++ b/spug_web/src/pages/ssh/FileManager.js @@ -38,6 +38,13 @@ class FileManager extends React.Component { this.fetchFiles() } + componentDidUpdate(prevProps) { + if (this.props.id !== prevProps.id) { + this.fetchFiles() + this.setState({objects: []}) + } + } + columns = [{ title: '名称', key: 'name',