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