How to understand the API interface document given by the back end?

for the first time, separate items from front and rear, don"t laugh.

clipboard.png

this is the "account list" interface given by the backend. I installed axios but couldn"t get the data.

mounted:function () {

var Authorization = getCookie("token");
axios.get("http://218.17.XXX.XXX:9104/account/list",Authorization)
.then( res =>{
    console.log(res)
})

}

browser keeps reporting error: Uncaught (in promise) Error: Request failed with status code 401

Mar.09,2021

The request parameter written on the

document is in header. Try adding authorization
to header and authorization is of type string

.

clipboard.png

Menu