mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
optimized code
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user