From 3939044dc52e1fc1579dc592102c70446982fcd8 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 8 Jun 2026 13:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=B0=E9=97=BB=E5=90=8E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=9C=B0=E5=9D=80=E4=B8=AD?= =?UTF-8?q?=E7=9A=84id=E4=BD=BF=E7=94=A8=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/newsCreate.jsx | 4 ++-- src/forge/Information/fetch.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forge/Information/Pages/newsCreate.jsx b/src/forge/Information/Pages/newsCreate.jsx index 59b3bb868..a78100fbd 100644 --- a/src/forge/Information/Pages/newsCreate.jsx +++ b/src/forge/Information/Pages/newsCreate.jsx @@ -97,11 +97,11 @@ function NewsCreate(props){ if(isEdit){ delete params.editorType; return updateDoc(newsId, params).then(res=>{ - const {data:{code, msg}} = res; + const {data:{code, msg , data}} = res; setLoading(false); if(code === 200){ message.success("提交成功"); - history.push(`/zone/${deptId}/newdetail/${newsId}`); + history.push(`/zone/${deptId}/newdetail/${data}`); }else{ message.error(msg || '提交失败,请联系管理员!') } diff --git a/src/forge/Information/fetch.js b/src/forge/Information/fetch.js index b7b23f9ea..d4e74dbb1 100644 --- a/src/forge/Information/fetch.js +++ b/src/forge/Information/fetch.js @@ -15,7 +15,7 @@ function beforeFetch(actionUrl){ service.interceptors.request.use(request => { let deptId = sessionStorage.getItem('deptId'); - // request.headers.Authorization = '8786c89c803fc2420f75c19895f0cee794b6f9a3' + request.headers.Authorization = '8786c89c803fc2420f75c19895f0cee794b6f9a3' if (deptId) { // 用于权限区分 request.headers['Dept-Id'] = deptId