From c98596f8d909220e87ee578445db856eef551546 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 23 Apr 2026 14:46:16 +0800 Subject: [PATCH] =?UTF-8?q?2026-04-23=20=E7=94=B1=E4=BA=8E=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=89=A9=E6=96=99=E7=9A=84=E6=8E=A5=E5=8F=A3=E5=A4=AA?= =?UTF-8?q?=E6=85=A2=EF=BC=8C=E8=AF=B7=E6=B1=82=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=B0=83=E6=95=B4=E4=B8=BA120=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/part/partInformation.js | 2 +- src/utils/httpRequest.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/part/partInformation.js b/src/api/part/partInformation.js index 1df7c34..21e638b 100644 --- a/src/api/part/partInformation.js +++ b/src/api/part/partInformation.js @@ -12,7 +12,7 @@ export const partInformationSave = data => createAPI(`/plm/partInformation/partI export const partInformationEdit = data => createAPI(`/plm/partInformation/partInformationEdit`,'post',data) // 材料信息删除 -export const partInformationDelete = data => createAPI(`/plm/partInformation/partInformationDelete`,'post',data) +export const partInformationDelete = data => createAPI(`/plm/partInformation/partInformationDelete`,'post',data, 120000) // 查询材料属性 export const getPartItem = data => createAPI(`/plm/partInformation/getPartItem`,'post',data) diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index 0ae8526..7d47598 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -160,7 +160,7 @@ instance2.interceptors.response.use(response => { -export const createAPI = (url, method, data) => { +export const createAPI = (url, method, data, timeout) => { let config = {} if (method === 'get') { config.params = data @@ -168,6 +168,10 @@ export const createAPI = (url, method, data) => { config.data = data } + if (timeout) { + config.timeout = timeout + } + if (data === 'download'){ // 下载功能的请求 return instance2({ url,