mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: i18n error
--bug=1054232 --user=王孝刚 系统设置:操作菜单中的操作在中文模式下显示英文 https://www.tapd.cn/57709429/s/1679409
This commit is contained in:
parent
739b977ce3
commit
5b2baaf04d
|
|
@ -136,7 +136,7 @@ class Document(APIView):
|
|||
@has_permissions(
|
||||
lambda r, k: Permission(group=Group.DATASET, operate=Operate.MANAGE,
|
||||
dynamic_tag=k.get('dataset_id')))
|
||||
@log(menu='Knowledge Base/Document', operate="Create document",
|
||||
@log(menu='document', operate="Create document",
|
||||
get_operation_object=lambda r, keywords: get_dataset_document_operation_object(
|
||||
get_dataset_operation_object(keywords.get('dataset_id')),
|
||||
{'name': r.data.get('name')}))
|
||||
|
|
|
|||
Loading…
Reference in New Issue