Front end. How should I request the interface for exporting the table?

clipboard.png

this is the interface document, and the function is to export excel table

my code:

this.$axios.get("/student/studentDataExport",{
    params:{
        schoolUid:this.common.getLocal("roleId"),
        schoolGradeUid:this.value_grade,
        classUid:this.value_class,
        name:this.keyword,
        pageNum:0,
        pageSize:0
    }
})
.then(res=>{
    console.log(res);
})

I can export the table with the online debugging of the interface document, but not with the code. I don"t know how to use this BINARY response type for the first time


when debugging the interface documentation page online, open the console and see how it is done.

Menu