Onlife/request/index.js
2025-04-19 15:38:48 +08:00

16 lines
412 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//封装postget,patch 请求
import request from "./servies";
const jyRquest={
// post 封装请求
post(config){
return request({...config,method:'POST'})
},
get(config){
console.log('封装postget,patch 请求:',{...config})
return request({...config,method:'GET'})
},
patch(config){
return request({...config,method:'PATCH'})
}
}
export default jyRquest;