[Vuejs]-How can i fixed the error of the assigned id that has never been used but actually used?

0👍

It’s not a string but a template literal

await Axios.put(`${todoUrl}/${id}`, this.todoItem);
...
await Axios.delete(`${todoUrl}/${id}`, this.todoItem);

Wrap your code with backtick symbol ` instead of ' single quote

Leave a comment