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