diff --git a/src/forge/SoftwareFactory/api.js b/src/forge/SoftwareFactory/api.js index 0fed6e924..cf115f212 100644 --- a/src/forge/SoftwareFactory/api.js +++ b/src/forge/SoftwareFactory/api.js @@ -3,7 +3,7 @@ import fetch from '../Information/fetch' //今日工作态势 export function todayWorkSituation() { return fetch({ - url: `/pms/specialArea/softwareFact/statis/todayWorkSituation`, + url: `/pms/open/specialArea/softwareFact/statis/todayWorkSituation`, method: 'get', }); } @@ -11,7 +11,7 @@ export function todayWorkSituation() { //月、周工作态势 export function weekMonthWorkSituation(type) { return fetch({ - url: `/pms/specialArea/softwareFact/statis/weekMonthWorkSituation?type=${type}`, + url: `/pms/open/specialArea/softwareFact/statis/weekMonthWorkSituation?type=${type}`, method: 'get', }); } @@ -19,7 +19,7 @@ export function weekMonthWorkSituation(type) { //项目研发状态 export function projectSituation() { return fetch({ - url: `/pms/specialArea/softwareFact/statis/projectSituation`, + url: `/pms/open/specialArea/softwareFact/statis/projectSituation`, method: 'get', }); } \ No newline at end of file diff --git a/src/forge/SoftwareFactory/components/Home/centerPanel.jsx b/src/forge/SoftwareFactory/components/Home/centerPanel.jsx index 09908811a..6fcfd6c15 100644 --- a/src/forge/SoftwareFactory/components/Home/centerPanel.jsx +++ b/src/forge/SoftwareFactory/components/Home/centerPanel.jsx @@ -10,9 +10,9 @@ function CenterPanel(props) { useEffect(() => { const timer = setInterval(() => { //天气5分钟更新一次 - // getWether(); - }, 300000); - // getWether(); + getWether(); + }, Number(localStorage.getItem('apiTime')) || 300000); + getWether(); return () => { clearInterval(timer); }; diff --git a/src/forge/SoftwareFactory/components/Home/index.jsx b/src/forge/SoftwareFactory/components/Home/index.jsx index cb22d3285..ce919e557 100644 --- a/src/forge/SoftwareFactory/components/Home/index.jsx +++ b/src/forge/SoftwareFactory/components/Home/index.jsx @@ -80,7 +80,7 @@ function Home(props) { useEffect(() => { getDay() const timer = setInterval(() => { - //默认10分钟更新一次 + //默认5分钟更新一次 getDay(); }, Number(localStorage.getItem('apiTime')) || 300000); return () => {