diff --git a/src/app/pages/singlelogin/singlelogin.component.ts b/src/app/pages/singlelogin/singlelogin.component.ts index b321a12..5dc232e 100644 --- a/src/app/pages/singlelogin/singlelogin.component.ts +++ b/src/app/pages/singlelogin/singlelogin.component.ts @@ -31,11 +31,11 @@ export class SingleloginComponent implements OnInit { // this.setCookie(obj); let token = this.getCookie("SAG_USER_TOKEN"); - token = token.replace(/%3D/g, "="); if (!token) { - alert("获取失败!"); + alert("未获取到token!"); return; } else { + token = token.replace(/%3D/g, "="); this.sinToken = token; await this.getCurrentUserInfo(); await this.getAuthOrganInfos(); @@ -298,5 +298,4 @@ export class SingleloginComponent implements OnInit { } return menuList; } - } diff --git a/src/app/system-management/user-binding/user-binding.component.html b/src/app/system-management/user-binding/user-binding.component.html index ed27e93..5a8914d 100644 --- a/src/app/system-management/user-binding/user-binding.component.html +++ b/src/app/system-management/user-binding/user-binding.component.html @@ -46,7 +46,9 @@ {{listConfig.totalCount}}名用户