fix: Resolve the error message

--bug=1052045 --user=王孝刚 【应用】-应用中使用的函数被删除后,演示中提示函数库被删除,提示错误 https://www.tapd.cn/57709429/s/1651371
This commit is contained in:
wxg0103 2025-02-07 14:26:58 +08:00 committed by wxg
parent d9e18f13ef
commit b4d3939d95
4 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ class FunctionLibNodeParamsSerializer(serializers.Serializer):
super().is_valid(raise_exception=True)
f_lib = QuerySet(FunctionLib).filter(id=self.data.get('function_lib_id')).first()
if f_lib is None:
raise Exception(_('The library has been deleted'))
raise Exception(_('The function has been deleted'))
class IFunctionLibNode(INode):

View File

@ -490,7 +490,7 @@ msgid "Library ID"
msgstr ""
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
msgid "The library has been deleted"
msgid "The function has been deleted"
msgstr ""
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25

View File

@ -492,8 +492,8 @@ msgid "Library ID"
msgstr "函数库id"
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
msgid "The library has been deleted"
msgstr "函数已被删除"
msgid "The function has been deleted"
msgstr "函数已被删除"
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25
msgid "Is this field required"

View File

@ -493,8 +493,8 @@ msgid "Library ID"
msgstr "函數庫id"
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
msgid "The library has been deleted"
msgstr "函數已被刪除"
msgid "The function has been deleted"
msgstr "函數已被刪除"
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25
msgid "Is this field required"