wr: 하수재이용시설등록 후 목록 재조회
This commit is contained in:
@@ -462,6 +462,12 @@ export default function PublicReuseFaciltyInsert() {
|
||||
void (async () => {
|
||||
const message = await pbnstInsert(data);
|
||||
alert(message);
|
||||
|
||||
if (searchTxt && searchTxt.trim().length > 0) {
|
||||
await pubHasuSearch(pageNation, laeSeCd, searchTxt);
|
||||
} else {
|
||||
await pubHasuInit(pageNation, laeSeCd);
|
||||
}
|
||||
})();
|
||||
setIsRuseReg({ isModal: false });
|
||||
}
|
||||
|
||||
@@ -261,11 +261,14 @@ export const pubFacActionsExport: (set: any, get: any) => pubFacActions = (set:
|
||||
const newPbnstRes = await initFetch(
|
||||
pbnstRes.pbnstRuseFcltId.slice(0, 11)
|
||||
);
|
||||
const wrRegList = await getFetch("wr", `/reuseFc/pubFc`);
|
||||
const fclts = Array.isArray(wrRegList) ? wrRegList : [];
|
||||
set((state: pubFacState) => ({
|
||||
...state,
|
||||
pbnst: {
|
||||
...state.pbnst,
|
||||
pbnstRes: newPbnstRes,
|
||||
fclts,
|
||||
},
|
||||
}));
|
||||
return successMessage;
|
||||
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
/// <reference path="./.next/types/routes.d.ts" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
|
||||
Reference in New Issue
Block a user