fix: 代码健壮

This commit is contained in:
gaoxiaolin.gao 2018-07-23 10:31:30 +08:00
parent 8f09803b8b
commit 9b2226b2bb

View File

@ -208,7 +208,7 @@ class InterfaceList extends Component {
render: (item, record) => {
const path = this.props.curProject.basepath + item;
let methodColor =
variable.METHOD_COLOR[record.method ? record.method.toLowerCase() : 'get'];
variable.METHOD_COLOR[record.method ? record.method.toLowerCase() : 'get'] || variable.METHOD_COLOR['get'];
return (
<div>