mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
fix: 代码健壮
This commit is contained in:
parent
8f09803b8b
commit
9b2226b2bb
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user