const defaultOptions = { | const defaultOptions = { | ||||
url: url, | url: url, | ||||
method: "post", | method: "post", | ||||
params: data, | |||||
data: data, | |||||
} | } | ||||
//合并用户配置参数信息 | //合并用户配置参数信息 | ||||
options = Object.assign(defaultOptions, options); | options = Object.assign(defaultOptions, options); |
proxy | proxy | ||||
}: any = getCurrentInstance(); | }: any = getCurrentInstance(); | ||||
proxy.$request.get('api/user', {}, { | |||||
proxy.$request.post('activeSuspend/query', { vehicleColour: '1', vehicleNumber: '2' }, { | |||||
}).then((res: {}) => { | }).then((res: {}) => { | ||||
console.log(res); | console.log(res); | ||||
}).catch((err: {}) => { | }).catch((err: {}) => { |