|
@@ -11,7 +11,7 @@ import * as crypto from './crypto'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
let currentRequests = 0
|
|
|
const { VITE_APP_BASE_API, VITE_USE_CRYPTO } = import.meta.env
|
|
|
-const userErrorCodeList = ['NOT_LOGIN', 'ACCOUNT_HAS_EXPIRED', 'ACCOUNT_LOGGED_IN_ELESWHERE', 'USER_NOT_FOUND', 'USER_IS_DISABLED', 'ROLE_IS_DISABLED', 'SERVICE_REPEAT', 'SERVICE_END']
|
|
|
+const userErrorCodeList = ['NOT_LOGIN', 'ACCOUNT_HAS_EXPIRED', 'ACCOUNT_LOGGED_IN_ELESWHERE', 'USER_NOT_FOUND', 'USER_IS_DISABLED', 'ROLE_IS_DISABLED', 'SERVICE_REPEAT', 'SERVICE_COPY', 'SERVICE_END']
|
|
|
export class AxiosWrapper {
|
|
|
constructor({ baseUrl = VITE_APP_BASE_API, unwrap = true } = {}) {
|
|
|
this.baseUrl = baseUrl
|