From 5546ebea86e965a591cc8ed04d5c6a74f38c699d Mon Sep 17 00:00:00 2001 From: dushixiang Date: Sun, 31 Oct 2021 20:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E5=89=8D=E7=AB=AF=E7=BC=93=E5=AD=98=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/devops/FileSystem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/devops/FileSystem.js b/web/src/components/devops/FileSystem.js index d119619..95d140b 100644 --- a/web/src/components/devops/FileSystem.js +++ b/web/src/components/devops/FileSystem.js @@ -328,7 +328,7 @@ class FileSystem extends Component { showEditor = async (name, key) => { message.loading({key: key, content: 'Loading'}) - let fileContent = await request.get(`${server}/${this.state.storageType}/${this.state.storageId}/download?file=${window.encodeURIComponent(key)}`); + let fileContent = await request.get(`${server}/${this.state.storageType}/${this.state.storageId}/download?file=${window.encodeURIComponent(key)}&t=${new Date().getTime()}`); this.setState({ currentFileKey: key, fileName: name, @@ -508,7 +508,7 @@ class FileSystem extends Component { 编辑