diff --git a/src/pages/identity/containers/User/index.jsx b/src/pages/identity/containers/User/index.jsx index c76f0db1..4c6beb2e 100644 --- a/src/pages/identity/containers/User/index.jsx +++ b/src/pages/identity/containers/User/index.jsx @@ -73,7 +73,7 @@ export class User extends Base { return this.inDetailPage && path.includes('identity/role-admin'); } - getColumns = () => { + getColumns() { // const { // match: { path }, // } = this.props; @@ -254,7 +254,7 @@ export class User extends Base { ); } return columns; - }; + } get actionConfigs() { if (this.inDomainDetail) { diff --git a/src/pages/identity/containers/UserGroup/index.jsx b/src/pages/identity/containers/UserGroup/index.jsx index c142579c..1406184a 100644 --- a/src/pages/identity/containers/UserGroup/index.jsx +++ b/src/pages/identity/containers/UserGroup/index.jsx @@ -20,9 +20,7 @@ import { Badge } from 'antd'; import { emptyActionConfig } from 'utils/constants'; import actionConfigs from './actions'; -@inject('rootStore') -@observer -export default class UserGroups extends Base { +export class UserGroups extends Base { init() { this.store = globalGroupStore; } @@ -43,7 +41,7 @@ export default class UserGroups extends Base { return false; } - getColumns = () => { + getColumns() { const { match: { path }, } = this.props; @@ -102,7 +100,7 @@ export default class UserGroups extends Base { components.splice(2, 1); } return components; - }; + } get actionConfigs() { const { @@ -145,3 +143,5 @@ export default class UserGroups extends Base { this.list.silent = false; } } + +export default inject('rootStore')(observer(UserGroups));