1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

optimized code

This commit is contained in:
shanshuirenjia
2018-12-17 12:03:37 +08:00
parent 4cbc72819e
commit 98de027e98
3 changed files with 3 additions and 6 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++) {