|
@@ -74,7 +74,9 @@ axios.interceptors.response.use(
|
|
|
|
|
|
Vue.prototype.$axios = axios;
|
|
Vue.prototype.$axios = axios;
|
|
|
|
|
|
-
|
|
|
|
|
|
+axios.defaults.headers.get['Pragma'] = 'no-cache';
|
|
|
|
+axios.defaults.headers.get['Cache-Control'] = 'no-cache, no-store';
|
|
|
|
+
|
|
let requestLoading = (url, method, params, showLoading = true) => {
|
|
let requestLoading = (url, method, params, showLoading = true) => {
|
|
if (showLoading) {
|
|
if (showLoading) {
|
|
loading = context.$loading({
|
|
loading = context.$loading({
|
|
@@ -84,6 +86,8 @@ let requestLoading = (url, method, params, showLoading = true) => {
|
|
background: 'rgba(0, 0, 0, 0.2)'
|
|
background: 'rgba(0, 0, 0, 0.2)'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
return axios({
|
|
return axios({
|
|
method: method,
|
|
method: method,
|
|
url: url,
|
|
url: url,
|
|
@@ -96,8 +100,9 @@ let requestLoading = (url, method, params, showLoading = true) => {
|
|
|
|
|
|
|
|
|
|
// const TestSrv = process.env.NODE_ENV == 'production' ? 'http://39.97.239.116:8080' : '/api';
|
|
// const TestSrv = process.env.NODE_ENV == 'production' ? 'http://39.97.239.116:8080' : '/api';
|
|
-const StanleyLocal = process.env.NODE_ENV == 'production' ? 'http://zngapi.hemadj.com:8080' : '/api';
|
|
|
|
|
|
+// const StanleyLocal = process.env.NODE_ENV == 'production' ? 'http://zngapi.hemadj.com:8080' : '/api';
|
|
// const StanleyLocal = process.env.NODE_ENV == 'production' ? 'http://192.168.1.200:8080' : '/api';
|
|
// const StanleyLocal = process.env.NODE_ENV == 'production' ? 'http://192.168.1.200:8080' : '/api';
|
|
|
|
+const StanleyLocal = process.env.NODE_ENV == 'production' ? 'https://apizng.eavic.com' : '/api';
|
|
|
|
|
|
const Prefix = StanleyLocal;
|
|
const Prefix = StanleyLocal;
|
|
|
|
|
|
@@ -138,6 +143,7 @@ export const boxList = (params) => {
|
|
|
|
|
|
//新增柜子
|
|
//新增柜子
|
|
export const addCabinet = (params) => {
|
|
export const addCabinet = (params) => {
|
|
|
|
+ console.log('call:',addCabinet);
|
|
return requestLoading(`${Prefix}/AddCabinet`, 'post', params)
|
|
return requestLoading(`${Prefix}/AddCabinet`, 'post', params)
|
|
}
|
|
}
|
|
|
|
|