To delete a member, you need to accept the deleted id, so you need to modify the delete button
Write code in the controller
//用户删除 public function del(){ $admin=D('Admin'); if($admin->delete(I('id'))){ $this->success('删除管理员成功!'); }else{ $this->error('删除管理员失败!'); } }