接口更换

This commit is contained in:
qiukai 2025-03-14 09:29:20 +08:00
parent ae95f8a13e
commit 4108dd60e0
3 changed files with 7 additions and 7 deletions

View File

@ -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',
});
}

View File

@ -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);
};

View File

@ -80,7 +80,7 @@ function Home(props) {
useEffect(() => {
getDay()
const timer = setInterval(() => {
//10
//5
getDay();
}, Number(localStorage.getItem('apiTime')) || 300000);
return () => {