fix: json-schema request 组件

This commit is contained in:
gaoxiaolin.gao 2018-06-14 11:34:33 +08:00
parent 35c2e0200b
commit a7e21c3ea2
3 changed files with 1 additions and 11 deletions

View File

@ -14,7 +14,7 @@ import formats from 'common/formats';
const jSchema = require('json-schema-editor-visual');
const ResBodySchema = jSchema({ lang: 'zh_CN', format: formats });
const ReqBodySchema = jSchema({ lang: 'zh_CN' });
const ReqBodySchema = jSchema({ lang: 'zh_CN', format: formats });
const TabPane = Tabs.TabPane;
require('codemirror/lib/codemirror.css'); // codemirror

View File

@ -169,7 +169,6 @@ class Profile extends Component {
let _userinfo = this.state._userinfo;
let roles = { admin: '管理员', member: '会员' };
let userType = "";
console.log("userinfo", userinfo)
if (this.props.userType === "third") {
userType = false;
} else if (this.props.userType === "site") {

View File

@ -574,17 +574,8 @@ class interfaceController extends baseController {
this.projectModel.up(interfaceData.project_id, { up_time: new Date().getTime() }).then();
if (params.switch_notice === true) {
// console.log('logData', logData);
// let logDiffData = {
// interface_id: id,
// cat_id: data.catid,
// current: CurrentInterfaceData.toObject(),
// old: interfaceData.toObject()
// }
let diffView = showDiffMsg(jsondiffpatch, formattersHtml, logData);
let annotatedCss = fs.readFileSync(path.resolve(yapi.WEBROOT, 'node_modules/jsondiffpatch/public/formatters-styles/annotated.css'), 'utf8');
let htmlCss = fs.readFileSync(path.resolve(yapi.WEBROOT, 'node_modules/jsondiffpatch/public/formatters-styles/html.css'), 'utf8');