1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-28 16:17:02 +00:00

Merge pull request #2648 from haiwen/repo-share

Repo share
This commit is contained in:
Daniel Pan
2018-12-17 15:22:44 +08:00
committed by GitHub
22 changed files with 490 additions and 239 deletions

View File

@@ -147,7 +147,9 @@ export const Utils = {
return encodeURIComponent(e);
}).join('/');
*/
if (!path) {
return '';
}
var path_arr = path.split('/');
var path_arr_ = [];
for (var i = 0, len = path_arr.length; i < len; i++) {