diff --git a/src/forge/Information/Pages/main.jsx b/src/forge/Information/Pages/main.jsx
index 668aee4b1..0952af045 100644
--- a/src/forge/Information/Pages/main.jsx
+++ b/src/forge/Information/Pages/main.jsx
@@ -29,10 +29,10 @@ function Main(props){
const menu = (
);
@@ -56,14 +56,6 @@ function Main(props){
}
}, [newCateId])
- function addNew(type){
- if(role && role.role === "Manager"){
- window.open(role.docManageUrl);
- }else{
- history.push(`/zone/${deptId}/news/add?type=${type}`)
- }
- }
-
function getMainList(){
getNewsAllList(id).then(result=>{
if(result){
@@ -134,9 +126,9 @@ function Main(props){
{role.role === "Member" && }
-
+ {role.role === "Member" ?
-
+ : }
}
{
diff --git a/src/forge/Information/Pages/source.jsx b/src/forge/Information/Pages/source.jsx
index 266c6f153..eed911c1d 100644
--- a/src/forge/Information/Pages/source.jsx
+++ b/src/forge/Information/Pages/source.jsx
@@ -95,7 +95,7 @@ function Source(props){
{role.role === "Member" && }
-
+
}
diff --git a/src/forge/Information/fetch.js b/src/forge/Information/fetch.js
index 29cc15d28..69f62c0a0 100644
--- a/src/forge/Information/fetch.js
+++ b/src/forge/Information/fetch.js
@@ -1,5 +1,6 @@
import axios from 'axios';
import { message , notification } from 'antd';
+// import cookie from 'react-cookies';
function beforeFetch(actionUrl){
if (window.location.href.indexOf('localhost') < 0) {
@@ -7,6 +8,7 @@ function beforeFetch(actionUrl){
}
const service = axios.create({
+ // headers:{Authorization: cookie.load("autologin_trustie")},
baseURL: actionUrl,
timeout: 1800000, // 请求超时时间
});