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')
|
mk_instance = FlibInstance(application_dict, 'v1')
|
||||||
application_pickle = pickle.dumps(mk_instance)
|
application_pickle = pickle.dumps(mk_instance)
|
||||||
response = HttpResponse(content_type='text/plain', content=application_pickle)
|
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
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||||
|
|||||||
@ -105,7 +105,7 @@ const exportFunctionLib = (
|
|||||||
loading?: Ref<boolean>
|
loading?: Ref<boolean>
|
||||||
) => {
|
) => {
|
||||||
return exportFile(
|
return exportFile(
|
||||||
name + '.flib',
|
name + '.fx',
|
||||||
`${prefix}/${id}/export`,
|
`${prefix}/${id}/export`,
|
||||||
undefined,
|
undefined,
|
||||||
loading
|
loading
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user