mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 02:10:12 +01:00
fix(menu): prevent extra '/' in menu link for empty path string (#375)
This commit is contained in:
parent
bb4bf77ceb
commit
3f824b6e82
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export class BaMenuService {
|
||||||
item.route.paths = item.route.path;
|
item.route.paths = item.route.path;
|
||||||
} else {
|
} else {
|
||||||
item.route.paths = parent && parent.route && parent.route.paths ? parent.route.paths.slice(0) : ['/'];
|
item.route.paths = parent && parent.route && parent.route.paths ? parent.route.paths.slice(0) : ['/'];
|
||||||
item.route.paths.push(item.route.path);
|
if (!!item.route.path) item.route.paths.push(item.route.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (object.children && object.children.length > 0) {
|
if (object.children && object.children.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue