소스 검색

修改接口

bill 2 년 전
부모
커밋
74c39ad643
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/api/example.ts

+ 1 - 1
src/api/example.ts

@@ -41,7 +41,7 @@ export const deleteExample = (props: Pick<Example, 'caseId'>) =>
   axios.post<undefined>(DELETE_EXAMPLE, props)
 
 export const getExampleScenes = async (props: Pick<Example, 'caseId'>) => {
-  const scenes = await axios.post(EXAMPLE_SCENE_LIST, props)
+  const scenes = await axios.get(EXAMPLE_SCENE_LIST, { params: props })
   return scenes.map((scene: any) => {
     if (scene.type === SceneType.SWMX) {
       return {