跨域处理
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import axios from "./axios";
|
||||
|
||||
export default{
|
||||
index:(params={})=>{
|
||||
return axios.get('/tenement/pc/api/home',params)
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,8 @@ import router from '../router/index'
|
||||
// let protocol = window.location.protocol; //协议
|
||||
// let host = window.location.host; //主机
|
||||
// axios.defaults.baseURL = protocol + "//" + host;
|
||||
axios.defaults.baseURL = 'https://app.gter.net'
|
||||
// axios.defaults.baseURL = 'https://app.gter.net'
|
||||
axios.defaults.baseURL = '/index'
|
||||
// axios.defaults.emulateJSON = true
|
||||
// axios.defaults.withCredentials = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user