fix bugs
This commit is contained in:
parent
2d59d2839d
commit
3451d4e784
|
|
@ -30,7 +30,8 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
|
|||
.then((data) => {
|
||||
$scope.user = data;
|
||||
if(data.username === 'lcq') {
|
||||
$scope.loginMenus = $scope.loginMenus.filter(item => item.uiSref !== 'hot');
|
||||
$scope.loginMenus[dataService.LoginIndexHot].show = false;
|
||||
console.info($scope.loginMenus)
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="js-menu" ng-controller="menuCtr">
|
||||
<div class="ui huge menu js-login-in" ng-if="login">
|
||||
<a class="item" ng-class="{selected:$index===selectLoginIndex}" style="cursor:default;" ui-sref-opts="{reload: true}" ng-repeat="menu in loginMenus" ui-sref="{{ menu.uiSref }}({searchWord:null})" js-menu-init>
|
||||
<a class="item" ng-class="{selected:$index===selectLoginIndex}" style="cursor:default;" ui-sref-opts="{reload: true}" ng-repeat="menu in loginMenus" ui-sref="{{ menu.uiSref }}({searchWord:null})" ng-show="menu.show !== false" js-menu-init>
|
||||
<div>{{ menu.title }}</div>
|
||||
<div class="ui floating simple dropdown icon js-bookmark-dropdown" ng-if="$index==0" ng-click="$event.stopPropagation();">
|
||||
<i class="dropdown icon"></i>
|
||||
|
|
|
|||
Loading…
Reference in New Issue