Pārlūkot izejas kodu

fix not refesh after save

master
Alex Cheung pirms 1 gada
vecāks
revīzija
ed1c841fc2
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      src/pages/pnspsUserDetailPage/index.js
  2. +2
    -2
      src/pages/pnspsUserGroupDetailPage/index.js

+ 1
- 1
src/pages/pnspsUserDetailPage/index.js Parādīt failu

@@ -144,7 +144,7 @@ const UserMaintainPage = () => {
"removeAuthIds": deletedUserAuth, "removeAuthIds": deletedUserAuth,
}, },
).then((response) => { ).then((response) => {
if (response.status === 200) {
if (response.status === 204) {
// notifySaveSuccess(); // notifySaveSuccess();
navigate('/userSearchview'); navigate('/userSearchview');
} }


+ 2
- 2
src/pages/pnspsUserGroupDetailPage/index.js Parādīt failu

@@ -12,7 +12,7 @@ import {
GeneralConfirmWindow, GeneralConfirmWindow,
getDeletedRecordWithRefList, getDeletedRecordWithRefList,
getIdList, getIdList,
notifyDeleteSuccess,
// notifyDeleteSuccess,
// notifySaveSuccess // notifySaveSuccess
} from "../../utils/CommonFunction"; } from "../../utils/CommonFunction";
import {POST_AND_UPDATE_USER_GROUP,GET_GROUP_LIST_PATH } from "../../utils/ApiPathConst"; import {POST_AND_UPDATE_USER_GROUP,GET_GROUP_LIST_PATH } from "../../utils/ApiPathConst";
@@ -58,7 +58,7 @@ const UserMaintainPage = () => {
) )
.then((response) => { .then((response) => {
if (response.status === 204) { if (response.status === 204) {
notifyDeleteSuccess();
// notifyDeleteSuccess();
setIsWindowOpen(false); setIsWindowOpen(false);
navigate('/usergroupSearchview'); navigate('/usergroupSearchview');
} }


Notiek ielāde…
Atcelt
Saglabāt