|
|
|
@ -158,9 +158,37 @@ function* userDeletePageSaga(
|
|
|
|
|
|
|
|
|
|
const { data } = yield call(authAPI.deletedata, controlId); |
|
|
|
|
// console.log('userPageData : ', data)
|
|
|
|
|
console.log("sdsdsd",data) |
|
|
|
|
if (data.errorCode === '-1') { |
|
|
|
|
yield put( |
|
|
|
|
MessageActions.IS_ERROR({ |
|
|
|
|
errorCode: ERROR_MESSAGE.code, |
|
|
|
|
errorMessage: ERROR_MESSAGE.message, |
|
|
|
|
isHistoryBack: false, |
|
|
|
|
isRefresh: false |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
yield put(Actions.userDeleteAction.success(data)); |
|
|
|
|
} else { |
|
|
|
|
yield put( |
|
|
|
|
MessageActions.IS_MESSAGE({ |
|
|
|
|
messageCode: SAVE_MESSAGE.code, |
|
|
|
|
message: SAVE_MESSAGE.message, |
|
|
|
|
isHistoryBack: false, |
|
|
|
|
isRefresh: true |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} catch (error) { |
|
|
|
|
yield put(Actions.userDeleteAction.failure(error)); |
|
|
|
|
yield put( |
|
|
|
|
MessageActions.IS_ERROR({ |
|
|
|
|
errorCode: ERROR_MESSAGE.code, |
|
|
|
|
errorMessage: '처리 중 에러입니다.', |
|
|
|
|
isHistoryBack: false, |
|
|
|
|
isRefresh: false |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
function* userUpdateSaga( |
|
|
|
|