261102_04_ENH: 설문현황 KON·KIWI 바로가기를 환경별 KART 프로젝트 URL로 변경
This commit is contained in:
@@ -38,8 +38,6 @@ export const qk = {
|
||||
/********** KON, KIWI 프로젝트 관련 KART에서 받아옴 **********/
|
||||
kartProjectList: (itrntPrjctCd: string, userTeam: string, isKiwi: number, keyword: string) =>
|
||||
["kart", "project-list", itrntPrjctCd, userTeam, isKiwi, keyword] as const,
|
||||
surveyRedirectUrl: (isKiwi: number, pkey: string) =>
|
||||
["kart", "survey-redirect-url", isKiwi, pkey] as const,
|
||||
/********** KON, KIWI 프로젝트 관련 KART에서 받아옴 **********/
|
||||
|
||||
/********** 찐 인트라넷 관련 **********/
|
||||
|
||||
@@ -131,19 +131,6 @@ export function useKartProjectListQuery(args: {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* KON/KIWI 설문 현황(리포트) 바로가기 URL
|
||||
*/
|
||||
export function useSurveyRedirectUrlQuery(isKiwi: number, pkey: string, enabled: boolean) {
|
||||
return useQuery({
|
||||
queryKey: qk.surveyRedirectUrl(isKiwi, pkey),
|
||||
queryFn: () => nextApi.get<string>(`/kart/survey-redirect-url/${isKiwi}/${encodeURIComponent(pkey)}`, { skipForbiddenHandler: true }),
|
||||
enabled: enabled && !!pkey,
|
||||
staleTime: 0,
|
||||
meta: { ignoreGlobalLoading: true },
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로젝트에 배정된 회사 ID 목록
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user