mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-21 01:13:51 +08:00
fix: 返回数据处加上预览功能
This commit is contained in:
parent
0a54eac409
commit
fa23d84002
@ -128,7 +128,7 @@ class ModalPostman extends Component {
|
||||
handleConstantsInput = (val) => {
|
||||
|
||||
val = val.replace(/^\{\{(.+)\}\}$/g, '$1');
|
||||
console.log('val', val);
|
||||
|
||||
this.setState({
|
||||
constantInput: val
|
||||
})
|
||||
|
@ -53,7 +53,7 @@ class Login extends Component {
|
||||
form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
if (this.props.isLDAP && this.state.loginType === 'ldap') {
|
||||
console.log('ldap');
|
||||
|
||||
this.props.loginLdapActions(values).then((res) => {
|
||||
if (res.payload.data.errcode == 0) {
|
||||
this.props.history.replace('/group');
|
||||
|
@ -52,7 +52,7 @@ class NewsList extends Component {
|
||||
const that = this;
|
||||
this.props.setLoading(true);
|
||||
this.props.fetchNewsData(+this.props.uid,0,5).then(function(data){
|
||||
console.log(data.data);
|
||||
|
||||
that.props.setLoading(false);
|
||||
})
|
||||
}
|
||||
|
@ -457,7 +457,6 @@ class InterfaceColContent extends Component {
|
||||
|
||||
copyUrl =(url) =>{
|
||||
|
||||
console.log('url',url);
|
||||
copy(url)
|
||||
message.success('已经成功复制到剪切板');
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -107,7 +107,7 @@ function postman(importDataModule){
|
||||
interfaceData.apis.push(data);
|
||||
}
|
||||
}
|
||||
console.log(interfaceData)
|
||||
|
||||
return interfaceData;
|
||||
|
||||
}catch(e){
|
||||
|
@ -114,7 +114,7 @@ function postman(importDataModule){
|
||||
interfaceData.apis.push(data);
|
||||
}
|
||||
}
|
||||
console.log(interfaceData)
|
||||
|
||||
return interfaceData;
|
||||
|
||||
}catch(e){
|
||||
|
Loading…
Reference in New Issue
Block a user