Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
1、改bug
  • Loading branch information
ZreoDark committed Dec 23, 2024
1 parent e966745 commit 8295f74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pm-web-app/src/pages/Project/Edit/EditActive/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ const Project: React.FC<any> = () => {
...query,
...params,
page,
group: '',
group: params.group.length !== 0
? params.group.reduce((accumulator: string, currentValue: string) => {
return `${accumulator}/${currentValue}`;
}, '')
: '',
});
};

Expand Down
6 changes: 5 additions & 1 deletion pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ const Project: React.FC<any> = () => {
...query,
...params,
page,
group: '',
group: params.group.length !== 0
? params.group.reduce((accumulator: string, currentValue: string) => {
return `${accumulator}/${currentValue}`;
}, '')
: '',
});
};
const searchBtn = () => {
Expand Down
6 changes: 5 additions & 1 deletion pm-web-app/src/pages/Project/View/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ const Project: React.FC<any> = (props) => {
};
const pageChange = (page: any) => {
setParams({ ...params, page });
let obj = { group: '' };
let obj = { group: params.group.length !== 0
? params.group.reduce((accumulator: string, currentValue: string) => {
return `${accumulator}/${currentValue}`;
}, '')
: '',};
setQuery({
...query,
...params,
Expand Down

0 comments on commit 8295f74

Please sign in to comment.