Avatar
0
phuoc Beginner
phuoc Beginner
download template xlsx trên ReactJs
Hi mn, Em muốn khi click vào button download thì tải về file template. E đặt file template vào cùng thư mục. Đây là đoạn code: import batchTemplate from "./template.xlsx"; function downloadTemplate() {     axios({         url: batchTemplate,         method: "GET",         headers: {             "Content-Disposition": "attachment; filename=template.xlsx",             "Content-Type": ...
Answer