From 4108dd60e0579432616d2e900d5e182fe4e0919e Mon Sep 17 00:00:00 2001 From: qiukai <123@qq.com> Date: Fri, 14 Mar 2025 09:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/SoftwareFactory/api.js | 6 +++--- src/forge/SoftwareFactory/components/Home/centerPanel.jsx | 6 +++--- src/forge/SoftwareFactory/components/Home/index.jsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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 () => {