From 828c55f8597b1877e5d3d9b62f32352e44296ea9 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 16 May 2022 13:26:27 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E5=B8=B8=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/ssh/FileManager.js | 7 +++++++ 1 file changed, 7 insertions(+) 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',