created() { // when the instance ist create call the method this.getLink(); }, methods: { async getLink(){ let response = await PostsService.downloadURL({ imgURL : this.url }) console.log(response.data) this.link = response.data } }
created() { // when the instance ist create call the method this.getLink(); }, methods: { async getLink(){ let response = await PostsService.downloadURL({ imgURL : this.url }) console.log(response.data) this.link = response.data } }