Commit c17b33caacc6f9d4defc30e84ffa75979902897b
1 parent
f64a3d1f
删除事件
Showing
1 changed file
with
1 additions
and
3 deletions
src/components/Common/CommonHooks/useCommonBase.js
| @@ -2722,7 +2722,6 @@ const useCommonBase = props => { | @@ -2722,7 +2722,6 @@ const useCommonBase = props => { | ||
| 2722 | onSuccess, | 2722 | onSuccess, |
| 2723 | nextProps | 2723 | nextProps |
| 2724 | } = params; | 2724 | } = params; |
| 2725 | - debugger | ||
| 2726 | const { sControlName = "", sInstruct } = config; | 2725 | const { sControlName = "", sInstruct } = config; |
| 2727 | const sControlLowerName = sControlName.toLowerCase(); | 2726 | const sControlLowerName = sControlName.toLowerCase(); |
| 2728 | 2727 | ||
| @@ -3285,8 +3284,7 @@ const useCommonBase = props => { | @@ -3285,8 +3284,7 @@ const useCommonBase = props => { | ||
| 3285 | }; | 3284 | }; |
| 3286 | const handleDel = (obj) => { | 3285 | const handleDel = (obj) => { |
| 3287 | const props = { ...obj, ...state }; | 3286 | const props = { ...obj, ...state }; |
| 3288 | - props.onCancel() | ||
| 3289 | - // handleOkDel(props); | 3287 | + handleOkDel(props); |
| 3290 | }; | 3288 | }; |
| 3291 | /* 确定要删除 */ | 3289 | /* 确定要删除 */ |
| 3292 | const handleOkDel = async (props) => { | 3290 | const handleOkDel = async (props) => { |