mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-21 08:46:10 +01:00
fix(menu): remove unnecessary /
(cherry picked from commit 3476253)
This commit is contained in:
parent
d9084037e7
commit
105163a0f2
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ export class BaMenuService {
|
|||
if (!object.skip) {
|
||||
|
||||
let itemUrl = this._router.serializeUrl(this._router.createUrlTree(object.route.paths));
|
||||
object.url = object.url ? object.url : '/#' + itemUrl;
|
||||
object.url = object.url ? object.url : '#' + itemUrl;
|
||||
|
||||
object.target = object.target || '';
|
||||
return this._selectItem(object);
|
||||
|
|
@ -107,7 +107,7 @@ export class BaMenuService {
|
|||
}
|
||||
|
||||
protected _selectItem(object:any):any {
|
||||
object.selected = object.url == ('/#' + this._router.url);
|
||||
object.selected = object.url == ('#' + this._router.url);
|
||||
return object;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue