|
|
@@ -5,7 +5,7 @@ import CryptoJS from 'crypto-js';
|
|
|
/* eslint-disable */
|
|
|
let baseUrl = process.env.VUE_APP_BASE_URL;
|
|
|
const axiosInstance = axios.create({
|
|
|
- baseURL: baseUrl,
|
|
|
+ baseURL: baseUrl
|
|
|
});
|
|
|
|
|
|
function decrypt(content) {
|
|
|
@@ -44,7 +44,7 @@ axiosInstance.interceptors.request.use(
|
|
|
},
|
|
|
function(error) {
|
|
|
return Promise.reject(error);
|
|
|
- },
|
|
|
+ }
|
|
|
);
|
|
|
|
|
|
axiosInstance.interceptors.response.use(
|
|
|
@@ -73,9 +73,10 @@ axiosInstance.interceptors.response.use(
|
|
|
}
|
|
|
}
|
|
|
return Promise.reject(error.response.data);
|
|
|
- },
|
|
|
+ }
|
|
|
);
|
|
|
export default {
|
|
|
+ baseUrl: baseUrl,
|
|
|
axios: axiosInstance,
|
|
|
install(_Vue, options) {
|
|
|
_Vue.prototype.$baseUrl = baseUrl;
|
|
|
@@ -88,9 +89,9 @@ export default {
|
|
|
.get(
|
|
|
url,
|
|
|
{
|
|
|
- params: params,
|
|
|
+ params: params
|
|
|
},
|
|
|
- { withCredentials: true },
|
|
|
+ { withCredentials: true }
|
|
|
)
|
|
|
.then(res => {
|
|
|
resolve(res.data);
|
|
|
@@ -122,7 +123,7 @@ export default {
|
|
|
reject(e);
|
|
|
});
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
- },
|
|
|
+ }
|
|
|
};
|