zjj
2025-04-16 c801f1d76578cfe2db9da8888d8f8690e9b5dee0
rsf-admin/src/page/components/ImportModal.jsx
@@ -80,10 +80,13 @@
    };
    const downloadTemplate = async (type) => {
        const res = await request.post(`/${value}/template/download`, {})
        const res = await request.post(`/${value}/template/download`, {}, {
            responseType: "blob",
        })
        const url = window.URL.createObjectURL(
            new Blob([res.data], { type: res.headers["content-type"] }),
        );
        const link = document.createElement("a");
        link.href = url;
        link.setAttribute("download", `${value}.xlsx`);