add
This commit is contained in:
@@ -185,7 +185,7 @@ const Utils = {
|
||||
if (this.confirm('确定要退出登录吗?')) {
|
||||
localStorage.removeItem(STORAGE.TOKEN);
|
||||
localStorage.removeItem(STORAGE.USER);
|
||||
window.location.href = 'login.html';
|
||||
window.location.href = '/login.html';
|
||||
}
|
||||
},
|
||||
|
||||
@@ -238,9 +238,9 @@ const Utils = {
|
||||
// 获取角色文本
|
||||
getRoleText(role) {
|
||||
const roles = {
|
||||
admin: '<span class="badge bg-danger">管理员</span>',
|
||||
staff: '<span class="badge bg-success">工作人员</span>',
|
||||
customer: '<span class="badge bg-info">客户</span>'
|
||||
admin: '管理员',
|
||||
staff: '工作人员',
|
||||
customer: '客户'
|
||||
};
|
||||
return roles[role] || role;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user