提交 4e347cff 作者: ZhangLingKun

功能:后台删除账号

上级 0a8230a1
...@@ -21,7 +21,11 @@ export class SystemManageAPI { ...@@ -21,7 +21,11 @@ export class SystemManageAPI {
static insertBAccount: insertBAccountType = (params) => static insertBAccount: insertBAccountType = (params) =>
axios.post('/userapp/back-user/insertBAccount', params); axios.post('/userapp/back-user/insertBAccount', params);
// 账号-删除 // 账号-删除(后台)
static removeBAccountBack: removeBAccountType = (params) =>
axios.get('/userapp/back-user/removeBAccount', { params });
// 账号-删除(小程序)
static removeBAccount: removeBAccountType = (params) => static removeBAccount: removeBAccountType = (params) =>
axios.get('/userapp/user-account/removeAppAccount', { params }); axios.get('/userapp/user-account/removeAppAccount', { params });
......
...@@ -69,7 +69,7 @@ function AccountManageView() { ...@@ -69,7 +69,7 @@ function AccountManageView() {
title: '提示', title: '提示',
content: '是否删除该账号?', content: '是否删除该账号?',
onOk: async () => { onOk: async () => {
const res = await SystemManageAPI.removeBAccount({ userAccountId: value.id }); const res = await SystemManageAPI.removeBAccountBack({ userAccountId: value.id });
if (res && res.code === '200') { if (res && res.code === '200') {
message.success('删除成功'); message.success('删除成功');
paginationChange( paginationChange(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论