From cd56076f0d0d12aae77d4959ccbb0341446dcded Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Tue, 7 May 2019 10:06:24 +0800 Subject: [PATCH] Modify some formatting issues --- frontend/src/pages/lib-content-view/lib-content-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 286b5d8077..a20d446a5c 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -996,8 +996,8 @@ class LibContentView extends React.Component { // else do nothing } - moveDirent = (direntPath, moveToDirentPath=null) => { - let name = direntPath.slice(direntPath.lastIndexOf('/') + 1); + moveDirent = (direntPath, moveToDirentPath = null) => { + let name = Utils.getFileName(direntPath); if (moveToDirentPath === this.state.path) { this.loadDirentList(this.state.path) return;