diff --git a/src/utils/request.js b/src/utils/request.js index 908f693..8be5c5d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -56,9 +56,9 @@ const s_time = sessionObj.time; // 请求时间 const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交 if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) { - const message = '数据正在处理,请勿重复提交'; - console.warn(`[${s_url}]: ` + message); - return Promise.reject(new Error(message)); + // const message = '数据正在处理,请勿重复提交'; + // console.warn(`[${s_url}]: ` + message); + // return Promise.reject(new Error(message)); } else { cache.session.setJSON('sessionObj', requestObj); } diff --git a/src/utils/request.js b/src/utils/request.js index 908f693..8be5c5d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -56,9 +56,9 @@ const s_time = sessionObj.time; // 请求时间 const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交 if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) { - const message = '数据正在处理,请勿重复提交'; - console.warn(`[${s_url}]: ` + message); - return Promise.reject(new Error(message)); + // const message = '数据正在处理,请勿重复提交'; + // console.warn(`[${s_url}]: ` + message); + // return Promise.reject(new Error(message)); } else { cache.session.setJSON('sessionObj', requestObj); } diff --git a/vite.config.js b/vite.config.js index ca3cd5c..bc4479e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,8 +9,8 @@ // const targetUrl = 'http://192.168.48.145:13000'; //张鸿志 const zhz = 'http://192.168.20.5:13002'; //张鸿志 const zyh = 'http://192.168.16.105:13002'; //张亚辉 -// const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上 -const targetUrl = 'http://192.168.16.135:13000'; //徐云欣 +const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上 +// const targetUrl = 'http://192.168.16.135:13000'; //徐云欣 // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {