diff --git a/web/client/src/sections/patrolManage/components/planModal.js b/web/client/src/sections/patrolManage/components/planModal.js index 7d42c1c..8eaa551 100644 --- a/web/client/src/sections/patrolManage/components/planModal.js +++ b/web/client/src/sections/patrolManage/components/planModal.js @@ -21,7 +21,7 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis dispatch(getUserList()) dispatch(getProjectList()) } - if (type === 'edit') { + if (type === 'edit' || type === 'view') { dispatch(positionList({ projectId: curRecord?.project?.id })).then(res => { if (res.success) { setPoints(res.payload.data?.rows)