mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added enable status to Role, Group and User
This commit is contained in:
@@ -84,7 +84,12 @@
|
||||
import { getCaptchaSrc, login, verifyCaptcha } from '@/utils/auth'
|
||||
import backShape from '@/assets/svg/back-shape.svg'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { LOGIN_SUCCESS, LOGOUT_FAILED, PRODUCTION_NAME } from '@/constants/Common.constants'
|
||||
import {
|
||||
LOGIN_SUCCESS,
|
||||
LOGOUT_FAILED,
|
||||
PRODUCTION_NAME,
|
||||
USER_DISABLE
|
||||
} from '@/constants/Common.constants'
|
||||
import { setToken } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
@@ -169,6 +174,13 @@ export default {
|
||||
})
|
||||
this.resetLogin()
|
||||
break
|
||||
case USER_DISABLE:
|
||||
ElMessage.error({
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: '<strong>该用户已被禁用</strong>,请联系管理员'
|
||||
})
|
||||
this.resetLogin()
|
||||
break
|
||||
default:
|
||||
ElMessage.error({
|
||||
dangerouslyUseHTMLString: true,
|
||||
|
||||
Reference in New Issue
Block a user