diff --git a/lib/client.js b/lib/client.js index d1ce9ed2..515cb7f5 100644 --- a/lib/client.js +++ b/lib/client.js @@ -77,10 +77,8 @@ var Util, DOM, CloudFunc; dirName = Util.removeStr(dirName, '/'); rootDir = DOM.getCurrentFileByName(dirName); - if (rootDir) { + if (rootDir) DOM.setCurrentFile(rootDir); - DOM.scrollIntoViewIfNeeded(rootDir, true); - } } /**