mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
Optimized RoleManagement, GroupManagement and UserManagement
This commit is contained in:
@@ -3,6 +3,7 @@ import { clearLocalStorage, getToken } from '@/utils/common'
|
||||
import router from '@/router'
|
||||
import {
|
||||
ACCESS_DENIED,
|
||||
DATABASE_DATA_TO_LONG,
|
||||
TOKEN_HAS_EXPIRED,
|
||||
TOKEN_IS_ILLEGAL,
|
||||
UNAUTHORIZED
|
||||
@@ -49,6 +50,12 @@ service.interceptors.response.use(
|
||||
message: '<strong>暂无权限操作</strong>'
|
||||
})
|
||||
return await Promise.reject(response?.data)
|
||||
case DATABASE_DATA_TO_LONG:
|
||||
ElMessage.error({
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: '<strong>数据过长</strong>'
|
||||
})
|
||||
return await Promise.reject(response?.data)
|
||||
}
|
||||
return response
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user