회원리스트
- 프로필 이미지 다운로드 추가
This commit is contained in:
		@@ -82,12 +82,13 @@
 | 
			
		||||
                        :src="item.profileUrl"
 | 
			
		||||
                        class="rounded-circle"
 | 
			
		||||
                      />
 | 
			
		||||
                      <button
 | 
			
		||||
                        class="download-button"
 | 
			
		||||
                        @click="downloadImage(item.profileUrl)"
 | 
			
		||||
                      <br>
 | 
			
		||||
                      <a
 | 
			
		||||
                        :href="item.profileUrl"
 | 
			
		||||
                        class="v-btn v-btn--outlined"
 | 
			
		||||
                      >
 | 
			
		||||
                        다운로드
 | 
			
		||||
                      </button>
 | 
			
		||||
                        Download Image
 | 
			
		||||
                      </a>
 | 
			
		||||
                    </div>
 | 
			
		||||
                  </td>
 | 
			
		||||
                  <td>{{ item.userType }}</td>
 | 
			
		||||
@@ -365,26 +366,10 @@ export default {
 | 
			
		||||
 | 
			
		||||
      this.is_loading = false
 | 
			
		||||
      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>
 | 
			
		||||
 | 
			
		||||
<style scoped>
 | 
			
		||||
.download-button {
 | 
			
		||||
  margin-top: 5px;
 | 
			
		||||
  background-color: #3bb9f1;
 | 
			
		||||
  color: white;
 | 
			
		||||
  padding: 10px;
 | 
			
		||||
  border-radius: 10px;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user