feature/suitable #44

Merged
swyoo merged 12 commits from feature/suitable into dev 2025-05-23 10:50:07 +09:00
Showing only changes of commit a25538319a - Show all commits

View File

@ -1,7 +1,8 @@
import { axiosInstance } from '@/libs/axios'
import { useAxios } from './useAxios'
import type { CommCode } from '@/types/CommCode'
export function useCommCode() {
const { axiosInstance } = useAxios()
const getCommCode = async (headCode: string): Promise<CommCode[]> => {
try {
const response = await axiosInstance(null).get<CommCode[]>('/api/comm-code', { params: { headCode: headCode } })