vue-routerでparamsのidを取得する
参考
https://qiita.com/turmericN/items/b849ebe8313d863855b1
以下の記述で取得出来る
this.$route.params['id']
例、
axiosで指定するパス内で使用
component
.get(`/api/tasks/${this.$route.params['id']}`)
Go to list of users who liked
More than 5 years have passed since last update.
参考
https://qiita.com/turmericN/items/b849ebe8313d863855b1
以下の記述で取得出来る
this.$route.params['id']
例、
axiosで指定するパス内で使用
.get(`/api/tasks/${this.$route.params['id']}`)
Register as a new user and use Qiita more conveniently
Go to list of users who liked