功能变化: 去掉菜单接口返回多余字段

pull/63/head
李强 2022-06-01 17:33:38 +08:00
parent 75db7ae163
commit 6f99989def
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,8 @@ class WebRouterSerializer(CustomModelSerializer):
class Meta: class Meta:
model = Menu model = Menu
fields = "__all__" fields = ('id', 'parent', 'icon', 'sort', 'path', 'name', 'title', 'is_link', 'is_catalog', 'web_path', 'component',
'component_name', 'cache', 'visible', 'menuPermission')
read_only_fields = ["id"] read_only_fields = ["id"]