跨域处理
This commit is contained in:
@@ -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