feat: add users with correct application (#2570)

This commit is contained in:
Yaodong Yu
2024-01-02 23:49:04 +08:00
committed by GitHub
parent e3f28e8b4c
commit 369de36987
3 changed files with 8 additions and 4 deletions

View File

@ -25,6 +25,7 @@ class BaseListPage extends React.Component {
super(props);
this.state = {
classes: props,
organizationName: this.props.match?.params.organizationName || Setting.getRequestOrganization(this.props.account),
data: [],
pagination: {
current: 1,
@ -39,6 +40,10 @@ class BaseListPage extends React.Component {
}
handleOrganizationChange = () => {
this.setState({
organizationName: this.props.match?.params.organizationName || Setting.getRequestOrganization(this.props.account),
});
const {pagination} = this.state;
this.fetch({pagination});
};