parent
ae2b70deb2
commit
7cd8673564
|
@ -82,12 +82,13 @@
|
||||||
:src="item.profileUrl"
|
:src="item.profileUrl"
|
||||||
class="rounded-circle"
|
class="rounded-circle"
|
||||||
/>
|
/>
|
||||||
<button
|
<br>
|
||||||
class="download-button"
|
<a
|
||||||
@click="downloadImage(item.profileUrl)"
|
:href="item.profileUrl"
|
||||||
|
class="v-btn v-btn--outlined"
|
||||||
>
|
>
|
||||||
다운로드
|
Download Image
|
||||||
</button>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ item.userType }}</td>
|
<td>{{ item.userType }}</td>
|
||||||
|
@ -365,26 +366,10 @@ export default {
|
||||||
|
|
||||||
this.is_loading = false
|
this.is_loading = false
|
||||||
this.cancel()
|
this.cancel()
|
||||||
},
|
|
||||||
|
|
||||||
async downloadImage(imageUrl) {
|
|
||||||
const link = document.createElement('a')
|
|
||||||
link.href = imageUrl
|
|
||||||
link.download = "image"
|
|
||||||
document.body.appendChild(link)
|
|
||||||
link.click()
|
|
||||||
document.body.removeChild(link)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.download-button {
|
|
||||||
margin-top: 5px;
|
|
||||||
background-color: #3bb9f1;
|
|
||||||
color: white;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue