diff --git a/README.md b/README.md
index 34486b7..b6b12fb 100644
--- a/README.md
+++ b/README.md
@@ -7,8 +7,8 @@
**프로젝트 기간**
2023.04 - 2023.10
-
-
+
+
## 기술스택
@@ -21,7 +21,7 @@
### 데모 영상
-
+
### 로그인 페이지
diff --git a/src/apis/vote.ts b/src/apis/vote.ts
index 71724ed..5cbde5c 100644
--- a/src/apis/vote.ts
+++ b/src/apis/vote.ts
@@ -77,3 +77,10 @@ export async function reviewVote({
const { data } = await client.post('myPage/review', { content, voteId });
return data;
}
+
+export async function deleteSticker(voteItemId: number, stickerId: number) {
+ const { data } = await client.delete('sticker', {
+ data: { voteItemId, stickerId },
+ });
+ return data;
+}
diff --git a/src/components/vote/VoteListItem.tsx b/src/components/vote/VoteListItem.tsx
index 4ea9cbd..bfa0123 100644
--- a/src/components/vote/VoteListItem.tsx
+++ b/src/components/vote/VoteListItem.tsx
@@ -22,8 +22,8 @@ function VoteListItem({
const { image, stickerCount, name, content, id, stickerList } = item;
function saveHandler() {
- // TODO : CORS 에러 해결
html2canvas(imgItemRef?.current, {
+ scale: 4,
useCORS: true,
allowTaint: true,
ignoreElements: (element) =>
@@ -55,6 +55,10 @@ function VoteListItem({
setStickerSize(getStickerSize());
}, [stickerList, isTablet]);
+ const imgSrc = `https://d2j21jlzisi105.cloudfront.net/${
+ image.split('.com/')[1]
+ }?timestamp=${new Date().getTime()}`;
+
return (