| 10 | /* 由于本组件由 /msg/add 与 /msg/:msgId 所公用 |
| 11 | 因此需要判断当前是“新增模式”还是“修改模式” */ |
| 12 | const isAddMode = pathname => pathname.startsWith('/msg/add') |
| 13 | |
| 14 | export default class MsgForm extends Component { |
| 15 | static contextTypes = { |
no outgoing calls
no test coverage detected