1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@vue/cli-shared-utils/lib/request.js

16 lines
279 B
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
exports.request = {
get (uri) {
// lazy require
const request = require('request-promise-native')
const reqOpts = {
method: 'GET',
timeout: 30000,
resolveWithFullResponse: true,
json: true,
uri
}
return request(reqOpts)
}
}