upload.js 209 B

123456789
  1. const { uploader } = require('../qcloud')
  2. module.exports = async ctx => {
  3. // 获取上传之后的结果
  4. // 具体可以查看:
  5. const data = await uploader(ctx.req)
  6. ctx.state.data = data
  7. }