20210908
This commit is contained in:
@@ -7,8 +7,8 @@ import qs from 'qs'
|
|||||||
// axios全局配置
|
// axios全局配置
|
||||||
axios.defaults.timeout = 10000 // 超时时间
|
axios.defaults.timeout = 10000 // 超时时间
|
||||||
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' // 配置请求头
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' // 配置请求头
|
||||||
// axios.defaults.baseURL = 'http://www.tougao.com/'
|
axios.defaults.baseURL = 'http://www.tougao.com/'
|
||||||
axios.defaults.baseURL = '/'
|
// axios.defaults.baseURL = '/'
|
||||||
// 添加响应拦截器,统一处理服务器响应和异常
|
// 添加响应拦截器,统一处理服务器响应和异常
|
||||||
axios.interceptors.response.use(
|
axios.interceptors.response.use(
|
||||||
(response) => {
|
(response) => {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
const baseUrl = '/';
|
// const baseUrl = '/';
|
||||||
const mediaUrl = 'http://api.tmrjournals.com/public/';
|
// const mediaUrl = 'http://api.tmrjournals.com/public/';
|
||||||
// const mediaUrl = 'http://www.tougao.com/';
|
const mediaUrl = 'http://www.tougao.com/';
|
||||||
// const baseUrl = 'http://www.tougao.com/';
|
const baseUrl = 'http://www.tougao.com/';
|
||||||
export default {
|
export default {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
mediaUrl
|
mediaUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user