mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: rename function lib export subfix
--bug=1052638 --user=刘瑞斌 函数库导出后缀名优化 https://www.tapd.cn/57709429/s/1660837
This commit is contained in:
parent
bd5d129778
commit
7cdd188b06
|
|
@ -249,7 +249,7 @@ class FunctionLibSerializer(serializers.Serializer):
|
|||
mk_instance = FlibInstance(application_dict, 'v1')
|
||||
application_pickle = pickle.dumps(mk_instance)
|
||||
response = HttpResponse(content_type='text/plain', content=application_pickle)
|
||||
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.flib"'
|
||||
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.fx"'
|
||||
return response
|
||||
except Exception as e:
|
||||
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ const exportFunctionLib = (
|
|||
loading?: Ref<boolean>
|
||||
) => {
|
||||
return exportFile(
|
||||
name + '.flib',
|
||||
name + '.fx',
|
||||
`${prefix}/${id}/export`,
|
||||
undefined,
|
||||
loading
|
||||
|
|
|
|||
Loading…
Reference in New Issue