9 lines
301 B
TypeScript
9 lines
301 B
TypeScript
import http from '@/api/http';
|
|
|
|
export default (eggId: number, variableId: number): Promise<void> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.delete(`/api/application/eggs/${eggId}/variables/${variableId}`)
|
|
.then(() => resolve())
|
|
.catch(reject);
|
|
});
|
|
};
|