파일이름 재정의
This commit is contained in:
@@ -47,7 +47,8 @@ export const CashReceiptSample = ({
|
||||
const section = document.getElementById('image-section') as HTMLElement;
|
||||
toPng(section).then((image) => {
|
||||
const link = document.createElement('a');
|
||||
link.download = 'downloadImage.png';
|
||||
let fileName = 'cash-receipt-' + moment().format('YYMMDDHHmmss');
|
||||
link.download = fileName + '.png';
|
||||
link.href = image;
|
||||
link.click();
|
||||
snackBar(t('common.imageRequested'), function(){
|
||||
|
||||
Reference in New Issue
Block a user