How can I use this link and get information in vue.js
http://localhost:2020/rest-password${token}&id=${data._id}
My code is:
const submit = async () => {
console.log('e');
try {
const user = await axios.post(`http://localhost:2020/rest-password${token}&id=${data._id}`,{
password:password.value
})
console.log(user, "sss");
router.push('/log')
} catch (e) {
error.value = e.response
}
}
I tried to get information from Backend, but I think the method is incorrect
When I put the link in Postman I can get it
http://localhost:2020/rest-password?token=a3224e69cba1be642b97c2ab7265b607ff9d8052c253cbc221cfee80327d&id=6226fa4a2ff1d47fa2e732d7