1.post请求 method: "post", data: params,
export function getAttendanceRate(params) {
return request({
url: prefix + "/dashboard/attendance_rate",
method: "post",
data: params,
});
}
2. get请求 method: "get", params: params,
export function getWhitelist(params) {
return request({
url: prefix + "/dashboard/whitelist",
method: "get",
params: params,
});
}
拼接参数
export const getByMacApi = (params) => {
return request({
url: prefix + "/book/library/getByMac/" + params,
method: "GET",
});
};
/**获取图书馆信息 */
getByMac () {
getByMacApi(this.libraryMacNo).then((res) => {
this.libraryId=res.data.data.id;
})
},
如果觉得可以就点个👍吧,欢迎粉丝收藏,土豪打赏,你的鼓励将是我创作的最大动力!
qq群933053581