Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

모집의뢰서, 기업리스트 엑셀 다운로드 버그 수정 #57

Merged

Conversation

phyuna0525
Copy link
Contributor

특이사항

관련 이슈

@phyuna0525 phyuna0525 added the 버그 버그를 수정합니다. label Jul 8, 2024
@phyuna0525 phyuna0525 self-assigned this Jul 8, 2024
@phyuna0525 phyuna0525 linked an issue Jul 8, 2024 that may be closed by this pull request
Comment on lines +185 to +190
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', '모집기업의뢰서.xlsx');
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 코드를 utils에서 downloadFile로 파일 분리해보는 것은 어떨까요? 반복되는 부분도 있어서 분리할 수 있을 거 같아요. 함수 인자로는 다운로드 파일 이름과 url을 받으면 될듯합니다.

@phyuna0525 phyuna0525 merged commit 656d51c into develop Aug 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
버그 버그를 수정합니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

모집의뢰서, 기업 엑셀 다운로드 수정
4 participants