type: 定义全局返回值类型

This commit is contained in:
奔跑的面条
2022-06-01 22:41:11 +08:00
parent 93727a0ac7
commit fb0ff50837
12 changed files with 25 additions and 24 deletions
-6
View File
@@ -8,12 +8,6 @@ import { redirectErrorPage, getLocalStorage, routerTurnByName, httpErrorHandle }
import { fetchAllowList } from './axios.config'
import includes from 'lodash/includes'
interface MyResponseType {
code: number;
msg: string;
data: any;
}
const axiosInstance = axios.create({
baseURL: `${import.meta.env.PROD ? import.meta.env.VITE_PRO_PATH : ''}${axiosPre}`,
timeout: ResultEnum.TIMEOUT,