From 28ebf7a0cc501eab4a70b14fd5322f7662f920cf Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Sat, 6 May 2023 13:49:33 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=90=8E=EF=BC=8C=E7=82=B9=E5=87=BB=E4=B8=8B=E9=9D=A2?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84=E7=9B=AE=E5=BD=95=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=B5=84=E6=BA=90=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#896)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/host/file-management/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index 48438f987..0e04d1152 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -356,6 +356,7 @@ const back = () => { }; const jump = async (url: string) => { + const oldUrl = req.path; // reset search params before exec jump Object.assign(req, initData()); req.path = url; @@ -364,6 +365,7 @@ const jump = async (url: string) => { let searchResult = await searchFile(); // check search result,the file is exists? if (!searchResult.data.path) { + req.path = oldUrl; MsgWarning(i18n.global.t('commons.res.notFound')); return; }