Optimize import. Optimize date convert.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import request from '@/services'
|
||||
import { URL_API_V1_AVATAR_RANDOM_BASE64 } from '@/constants/urls.constants'
|
||||
import request from '@/services'
|
||||
|
||||
export const r_api_avatar_random_base64 = () =>
|
||||
request.get<AvatarBase64Vo>(URL_API_V1_AVATAR_RANDOM_BASE64)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import request from '@/services'
|
||||
import { URL_LOGIN, URL_LOGOUT } from '@/constants/urls.constants'
|
||||
import request from '@/services'
|
||||
|
||||
export const r_auth_login = (username: string, password: string) =>
|
||||
request.post<TokenVo>(URL_LOGIN, {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import axios, { type AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
|
||||
import { jwtDecode, JwtPayload } from 'jwt-decode'
|
||||
import { message } from 'antd'
|
||||
import { getToken, removeToken, setToken } from '@/utils/common'
|
||||
import {
|
||||
PERMISSION_ACCESS_DENIED,
|
||||
PERMISSION_TOKEN_HAS_EXPIRED,
|
||||
@@ -9,6 +7,7 @@ import {
|
||||
PERMISSION_TOKEN_RENEW_SUCCESS,
|
||||
PERMISSION_UNAUTHORIZED
|
||||
} from '@/constants/common.constants'
|
||||
import { getToken, removeToken, setToken } from '@/utils/common'
|
||||
|
||||
const service: AxiosInstance = axios.create({
|
||||
baseURL: import.meta.env.VITE_API_URL,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from 'react'
|
||||
import request from '@/services/index'
|
||||
import {
|
||||
URL_SYS_USER_INFO,
|
||||
URL_SYS_USER,
|
||||
@@ -10,6 +9,7 @@ import {
|
||||
URL_SYS_GROUP_LIST,
|
||||
URL_SYS_LOG
|
||||
} from '@/constants/urls.constants'
|
||||
import request from '@/services/index'
|
||||
|
||||
export const r_sys_user_info = () => request.get<UserWithPowerInfoVo>(URL_SYS_USER_INFO)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user