mirror of https://gitee.com/topiam/eiam
✨ 用户组详情新增删除用户组
parent
bc399340dd
commit
60b2c8bc25
|
@ -15,7 +15,7 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import { getUserGroup, removeUser, updateUserGroup } from '@/services/account';
|
import { getUserGroup, removeUserGroup, updateUserGroup } from '@/services/account';
|
||||||
import { history } from '@@/core/history';
|
import { history } from '@@/core/history';
|
||||||
|
|
||||||
import { PageContainer, ProDescriptions, RouteContext } from '@ant-design/pro-components';
|
import { PageContainer, ProDescriptions, RouteContext } from '@ant-design/pro-components';
|
||||||
|
@ -178,7 +178,7 @@ export default () => {
|
||||||
okCancel: true,
|
okCancel: true,
|
||||||
cancelText: intl.formatMessage({ id: 'app.cancel' }),
|
cancelText: intl.formatMessage({ id: 'app.cancel' }),
|
||||||
onOk: async () => {
|
onOk: async () => {
|
||||||
const { success } = await removeUser(id);
|
const { success } = await removeUserGroup(id);
|
||||||
if (success) {
|
if (success) {
|
||||||
message.success(intl.formatMessage({ id: 'app.operation_success' }));
|
message.success(intl.formatMessage({ id: 'app.operation_success' }));
|
||||||
confirmed.destroy();
|
confirmed.destroy();
|
||||||
|
|
Loading…
Reference in New Issue