From ed1c841fc2e542209fe3857a1068312e730fef01 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Mon, 11 Sep 2023 09:58:50 +0800 Subject: [PATCH] fix not refesh after save --- src/pages/pnspsUserDetailPage/index.js | 2 +- src/pages/pnspsUserGroupDetailPage/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/pnspsUserDetailPage/index.js b/src/pages/pnspsUserDetailPage/index.js index 4fc4523..032cf51 100644 --- a/src/pages/pnspsUserDetailPage/index.js +++ b/src/pages/pnspsUserDetailPage/index.js @@ -144,7 +144,7 @@ const UserMaintainPage = () => { "removeAuthIds": deletedUserAuth, }, ).then((response) => { - if (response.status === 200) { + if (response.status === 204) { // notifySaveSuccess(); navigate('/userSearchview'); } diff --git a/src/pages/pnspsUserGroupDetailPage/index.js b/src/pages/pnspsUserGroupDetailPage/index.js index a7d9f4a..2fa6aab 100644 --- a/src/pages/pnspsUserGroupDetailPage/index.js +++ b/src/pages/pnspsUserGroupDetailPage/index.js @@ -12,7 +12,7 @@ import { GeneralConfirmWindow, getDeletedRecordWithRefList, getIdList, - notifyDeleteSuccess, + // notifyDeleteSuccess, // notifySaveSuccess } from "../../utils/CommonFunction"; import {POST_AND_UPDATE_USER_GROUP,GET_GROUP_LIST_PATH } from "../../utils/ApiPathConst"; @@ -58,7 +58,7 @@ const UserMaintainPage = () => { ) .then((response) => { if (response.status === 204) { - notifyDeleteSuccess(); + // notifyDeleteSuccess(); setIsWindowOpen(false); navigate('/usergroupSearchview'); }