解决:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse

后端已经正常返回了数据:
解决:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse
前端报错:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous

查看前端代码
解决:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse

如图无需再转JSON了,可以直接使用。一般接口返回正常的数据,接口请求没错的话(不显示红色或500错误),就是前端的问题。