fix: 🐛 菜单管理
1.修复菜单管理问题;
This commit is contained in:
@@ -23,7 +23,7 @@ class MenuButtonSerializer(CustomModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = MenuButton
|
||||
fields = ['id', 'name', 'value', 'api', 'method']
|
||||
fields = ['id', 'name', 'value', 'api', 'method','menu']
|
||||
read_only_fields = ["id"]
|
||||
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
||||
|
||||
};
|
||||
const editRequest = async ({ form, row }: EditReq) => {
|
||||
form.id = row.id;
|
||||
return await api.UpdateObj(form);
|
||||
return await api.UpdateObj(row);
|
||||
};
|
||||
const delRequest = async ({ row }: DelReq) => {
|
||||
return await api.DelObj(row.id);
|
||||
|
||||
Reference in New Issue
Block a user