1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

repo share admin (#5596)

* repo share admin

* check share_to param

* [repo 'share admin' dialog] removed 'internal links'; fixup & improvements

---------

Co-authored-by: llj <lingjun.li1@gmail.com>
This commit is contained in:
lian
2023-08-24 10:18:40 +08:00
committed by GitHub
parent 191ab183f8
commit 3b6142e639
14 changed files with 1244 additions and 247 deletions

View File

@@ -277,7 +277,7 @@ export const Utils = {
if (path === '/') {
return path;
}
path = path[path.length - 1] !== '/' ? path : path.slice(0, path.length -2);
path = path[path.length - 1] !== '/' ? path : path.slice(0, path.length - 1);
return path.slice(path.lastIndexOf('/') + 1);
},