mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
fix: json-schema request 组件
This commit is contained in:
parent
35c2e0200b
commit
a7e21c3ea2
@ -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
|
||||
|
@ -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") {
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user