beelink/src/config/axiosConfig.ts
2020-11-03 14:56:34 +08:00

7 lines
325 B
TypeScript

import { getValue } from '@/utils/common';
import axios from 'axios'
axios.defaults.baseURL = 'https://case.sy-my.net/beelink/public/home/';
axios.defaults.headers.common['Authorization'] = "Bearer " + getValue("token");
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
export default axios