mockData

export function mockData(data = [{id: 1}], times = 10) {
  return new Promise((resolve, reject) => {
    let mockData = _.times(times, () => {
      let mockData = { ...data[0] }
      data[0].id++
      return mockData
    })
    resolve(mockData)
  })
}
评论数量: 0

0
点赞
68
浏览
0
评论

贡献 56