Onlife/request/index.js

16 lines
412 B
JavaScript
Raw Permalink Normal View History

2025-04-19 15:38:48 +08:00
//封装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;