From 24e6fe89c840b0583adc54dc062e109f59388591 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:38:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=BA=E7=A9=BA=E4=B8=80=E7=9B=B4=E8=BD=AC?= =?UTF-8?q?=E5=9C=88=E7=9A=84=E9=97=AE=E9=A2=98=20(#1526)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/file.go | 2 +- frontend/src/views/host/process/process/index.vue | 11 ++++------- frontend/src/views/host/ssh/session/index.vue | 1 - 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index a5f03280b..b0fe5e341 100644 --- a/backend/app/api/v1/file.go +++ b/backend/app/api/v1/file.go @@ -532,7 +532,7 @@ func (b *BaseApi) DownloadChunkFiles(c *gin.Context) { } defer file.Close() - file.Seek(startPos, 0) + _, _ = file.Seek(startPos, 0) reader := io.LimitReader(file, endPos-startPos+1) _, err = io.CopyBuffer(c.Writer, reader, buffer) if err != nil { diff --git a/frontend/src/views/host/process/process/index.vue b/frontend/src/views/host/process/process/index.vue index 2debcd055..55ab05798 100644 --- a/frontend/src/views/host/process/process/index.vue +++ b/frontend/src/views/host/process/process/index.vue @@ -55,13 +55,7 @@