From 4eeb488fe8264eb6630b367d9fff7c7d7e4684c0 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sun, 29 Sep 2019 11:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E4=B8=AD=E6=9C=89.?= =?UTF-8?q?=E7=9A=84=E7=9B=AE=E5=BD=95=EF=BC=8C=E8=A2=AB=E5=BD=93=E6=88=90?= =?UTF-8?q?=E4=BA=86=E4=BB=A3=E7=A0=81=E6=96=87=E4=BB=B6=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/tpm/TPMRepositoryComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/tpm/TPMRepositoryComponent.js b/public/react/src/modules/tpm/TPMRepositoryComponent.js index f4c90b3b4..50d163f51 100644 --- a/public/react/src/modules/tpm/TPMRepositoryComponent.js +++ b/public/react/src/modules/tpm/TPMRepositoryComponent.js @@ -137,7 +137,7 @@ class TPMRepositoryComponent extends Component { let urlNewPathArray = newPathArray; let fileInPathArray = false; if (newPathArray.length) { - fileInPathArray = this._isFileName( newPathArray[newPathArray.length - 1] ) + fileInPathArray = (listItem.type !== 'tree' && this._isFileName( newPathArray[newPathArray.length - 1] )) if ( fileInPathArray ) { urlNewPathArray = newPathArray.slice(0, newPathArray.length - 1) }