return Response(data=serializer.data, status=status.HTTP_200_OK, content_type="application/json")
content_type="application/json"去掉,写成:return Response(data=serializer.data, status=status.HTTP_200_OK)即可
原文地址:https://www.cnblogs.com/yushengzhou/p/9813892.html
时间: 2024-10-31 16:16:24