fix(menu): remove unnecessary /

(cherry picked from commit 3476253)
This commit is contained in:
nixa 2016-07-18 16:20:51 +03:00
parent d9084037e7
commit 105163a0f2

View file

@ -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;
}
}