forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-24 f39bc9d667e68526c79387d754e6304a80825ef5
1
2
3
4
5
6
7
8
9
10
11
import fetch from './_fetch';
export default data =>
  fetch(
    `api/tipoff/reply` +
      '?' +
      Object.entries(data)
        .map(([k, v]) => `${k}=${v}`)
        .join('&')
  )
    .then(json => json)
    .catch(error => message.error('信息加载失败,请联系管理员', 2));