byteRequest.js 276 B

12345678910111213
  1. import { base_url } from '@/network/request.js'
  2. export function byteRequest (url, data) {
  3. return uni.request({
  4. url: base_url + url,
  5. method: 'POST',
  6. data: data,
  7. responseType: 'arraybuffer',
  8. header: {
  9. openId: uni.getStorageSync('openId')
  10. }
  11. })
  12. }