| | |
| | | |
| | | import AxiosReques from "./axios"; |
| | | import qs from "qs"; |
| | | import {BASE_URL} from "@/config"; |
| | | import { BASE_URL } from "@/config"; |
| | | import { getStorage } from '@/utils' |
| | | |
| | | let baseUrl = BASE_URL |
| | | if (getStorage('tzlj')) { |
| | | baseUrl = getStorage('tzlj'); |
| | | // baseUrl = getStorage('tzlj'); |
| | | } |
| | | /** |
| | | * @description Create axios. |
| | |
| | | // } |
| | | return axios.request({ |
| | | url, |
| | | params: params ? params: {}, |
| | | params: params ? params : {}, |
| | | method |
| | | }); |
| | | } else { |
| | |
| | | * @param {Object} param Request params. |
| | | */ |
| | | export const httpMultipart = ({ url, method, isLoading }, params) => { |
| | | return createAxios(axiosMultipart, {url, method, isLoading}, params); |
| | | return createAxios(axiosMultipart, { url, method, isLoading }, params); |
| | | } |