销毁仿真接口调整

This commit is contained in:
dong 2023-07-31 15:03:27 +08:00
parent 3aadf898e2
commit 08c57ae47e

View File

@ -16,7 +16,7 @@ export async function createSimulation(data: { mapId: number }) {
* @param simulationId 仿id * @param simulationId 仿id
*/ */
export async function destroySimulation(data: { simulationId: string }) { 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; return response.data;
} }