|
|
|
@ -18,7 +18,8 @@ const $http = new request({ |
|
|
|
// defaultUploadUrl: 'upload/image',
|
|
|
|
// 设置请求头(如果使用报错跨域问题,可能是content-type请求类型和后台那边设置的不一致)
|
|
|
|
header: { |
|
|
|
'Content-Type': 'application/json;charset=utf-8' |
|
|
|
'Content-Type': 'application/json;charset=utf-8', |
|
|
|
"Access-Control-Allow-Origin":"*" |
|
|
|
}, |
|
|
|
// 请求超时时间, 单位ms(默认15000)
|
|
|
|
timeout: 15000, |
|
|
|
|