$rootScope.$on('$stateChangeStart', function (event, next) {
var authorizedRoles = next.data.authorizedRoles;
var currentUser=userService.getCurrentUser();
if(authorizedRoles==USER_ROLES.admin && (currentUser.openid==null || currentUser.openid=="")){
window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize";
}
});
Open main page will validate permission ,if not login ,redirect to other system for validation ,then redirect to main page ,but icon disapper (screentshot),please help ,thanks!