👤U
Size: a a a
👤U
👤U
М
ВБ
:to="{path: this.$route.path, query: this.$route.query}" допустим. Есть ли возможность получить ссылку которую генерит роутер, что бы вместо nuxt-link подставить её в <a> ?V
this.$router.resolve()A
async fetch() {
// Получаем статус дружбы для пользователя в просматриваемом профиле
let api = this.$store.getters['api/get_user_friends_request_status'](this.user.username)
await this.$axios.get(api).then(response => {
this.friend_status = response.data
})
console.log('123')
},
Но это не работает watch: {
'$route.query': '$fetch'
},
, но результата нольA
A
A
ВБ
this.friend_status точно данные приходят?DG
ВБ
A

ВБ
ВБ
ВБ
A
async fetch() {
console.log('Fetch!')
// Получаем статус дружбы для пользователя в просматриваемом профиле
let api = this.$store.getters['api/get_user_friends_request_status'](this.user.username)
await this.$axios.get(api).then(response => {
this.friend_status = response.data
})
console.log(this.friend_status)
},НК