generate功能调整
This commit is contained in:
@@ -29,8 +29,8 @@ let httpIp = process.env.NODE_ENV == 'development' ? "" : "";
|
||||
// let httpIp = process.env.NODE_ENV == 'development' ? "https://192.168.0.102:10086" : "";
|
||||
// console.log(httpIp,process.env.VUE_APP_BASE_URL);
|
||||
|
||||
// axios.defaults.baseURL = httpIp; //配置接口地址
|
||||
axios.defaults.baseURL = process.env.VUE_APP_BASE_URL; //配置接口地址
|
||||
axios.defaults.baseURL = httpIp; //配置接口地址
|
||||
// axios.defaults.baseURL = process.env.VUE_APP_BASE_URL; //配置接口地址
|
||||
|
||||
// console.log(process.env.VUE_APP_BASE_URL);
|
||||
//POST传参序列化(添加请求拦截器)
|
||||
@@ -56,7 +56,7 @@ axios.interceptors.response.use((res) =>{
|
||||
// return Promise.reject(res.data);
|
||||
// }else
|
||||
if (res.data) {
|
||||
if (res.data.errCode === 0) {
|
||||
if (res.data.errCode === 0) {
|
||||
// message.error(res.data.errMsg)
|
||||
return Promise.resolve(res.data.data);
|
||||
} else if(res.data.errCode === 1){
|
||||
|
||||
Reference in New Issue
Block a user