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