更换登陆与注销状态

This commit is contained in:
HelloWorld 2020-02-10 22:17:00 +08:00
parent 4498a45aa4
commit 64bc2471dd
2 changed files with 5 additions and 4 deletions

View File

@ -242,6 +242,7 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
bookmarkService.logout({})
.then((data) => {
console.log('logout..........', data)
toastr.success('权限注销成功!', "提示");
$scope.logined = false;
bookmarkService.autoLogin()
.then((data) => {

View File

@ -60,11 +60,11 @@
<span class="suggest" ng-click="showUpdate()" ng-show="user.username !== 'lcq'">
<i class="info circle link icon" style="cursor:default;margin-right: 8px;"></i>
</span>
<span data-tooltip="登" ng-if="!logined" ng-click="openLoginDialog()">
<i class="sign in link icon" style="cursor:default;margin-right: 8px;"></i>
<span data-tooltip="登陆解锁更多权限" ng-if="!logined" ng-click="openLoginDialog()">
<i class="red lock link icon" style="cursor:default;margin-right: 8px;"></i>
</span>
<span data-tooltip="退出" ng-if="logined" ng-click="logout()">
<i class="sign out link icon" style="cursor:default;margin-right: 8px;"></i>
<span data-tooltip="注销权限" ng-if="logined" ng-click="logout()">
<i class="green lock open link icon" style="cursor:default;margin-right: 8px;"></i>
</span>
</div>
</div>