Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特意登录来感谢并且提一个问题!!! #48

Closed
SuceV587 opened this issue Nov 18, 2017 · 2 comments
Closed

特意登录来感谢并且提一个问题!!! #48

SuceV587 opened this issue Nov 18, 2017 · 2 comments

Comments

@SuceV587
Copy link

SuceV587 commented Nov 18, 2017

首先非常感谢大大的这个开源的项目!

UI非常的赞,比之大多同类项目赏心悦目很多!

但是有个问题很影响使用体验!就是我是后端准备用这个来测试api的使用,在返回的数据body里面,都是乱吃一坨显示!

没有格式化!
{ "cookie": [], "Date": "Sat, 18 Nov 2017 03:14:17 GMT", "Server": "Apache/2.4.10", "Cache-Control": "private, no-cache", "X-Catalyst": "5.90075", "Content-Length": "678", "Connection": "close", "Content-Type": "text/html; charset=utf-8", "Proxy-Connection": "keep-alive" }

就是如上一坨的没有格式化!希望得到的效果是:

{
    "cookie": [],
    "Date": "Sat, 18 Nov 2017 03:14:17 GMT",
    "Server": "Apache/2.4.10",
    "Cache-Control": "private, no-cache",
    "X-Catalyst": "5.90075",
    "Content-Length": "678",
    "Connection": "close",
    "Content-Type": "text/html; charset=utf-8",
    "Proxy-Connection": "keep-alive"
}

还有一个问题就是修改源码不知道为什么没有效果!
我修改的是:yapi/client/components/Postman/Postman.js

刷新后是没有效果的!!!

@hellosean1025
Copy link
Member

后端返回的 content-type 不是 application/json

@hellosean1025
Copy link
Member

如果要做简单的二次开发调试,参考插件 wiki -> 二次开发 文档

shouldnotappearcalm pushed a commit to shouldnotappearcalm/yapi that referenced this issue Feb 5, 2020
shouldnotappearcalm pushed a commit to shouldnotappearcalm/yapi that referenced this issue Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants