拼接格式如下
const deleteUser = (id:number) =>{
axios({
method:'Delete',
url: `http://localhost:8880/user/${id}`
}).then()
.catch()
}
const deleteUser = (id:number) =>{
axios({
method:'Delete',
url: `http://localhost:8880/user/${id}`
}).then()
.catch()
}