Browse Source

fix 巡检计划新增不清空信息

master
巴林闲侠 2 years ago
parent
commit
64c41b7f33
  1. 2
      web/client/src/sections/patrolManage/containers/patrolPlan.js

2
web/client/src/sections/patrolManage/containers/patrolPlan.js

@ -153,6 +153,7 @@ function PatrolPlan (props) {
curRecord={curRecord} curRecord={curRecord}
onCancel={() => { onCancel={() => {
setVisible(false); setVisible(false);
setCurRecord(null)
}} }}
/> : null /> : null
} }
@ -162,7 +163,6 @@ function PatrolPlan (props) {
function mapStateToProps (state) { function mapStateToProps (state) {
const { auth } = state const { auth } = state
console.log(state);
return { return {
user: auth.user user: auth.user
} }

Loading…
Cancel
Save