diff --git a/src/api/Simulation.ts b/src/api/Simulation.ts index a5028d9..fca8fe5 100644 --- a/src/api/Simulation.ts +++ b/src/api/Simulation.ts @@ -16,7 +16,7 @@ export async function createSimulation(data: { mapId: number }) { * @param simulationId 仿真id */ export async function destroySimulation(data: { simulationId: string }) { - const response = await api.post(`${UriBase}/destroy`, data); + const response = await api.post(`${UriBase}/destroy/${data.simulationId}`); return response.data; }