Browse Source

修改接口

bill 2 years ago
parent
commit
74c39ad643
1 changed files with 1 additions and 1 deletions
  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 {