forked from Gitlink/forgeplus-react
接口更换
This commit is contained in:
parent
ae95f8a13e
commit
4108dd60e0
|
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ function Home(props) {
|
|||
useEffect(() => {
|
||||
getDay()
|
||||
const timer = setInterval(() => {
|
||||
//默认10分钟更新一次
|
||||
//默认5分钟更新一次
|
||||
getDay();
|
||||
}, Number(localStorage.getItem('apiTime')) || 300000);
|
||||
return () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue