no message

Former-commit-id: a93fca08c3279a8a135e52ddad8dd3d42626fb17
Former-commit-id: 265098e111bf7be16c22c23b8b22beff40df2726
Former-commit-id: aa78e1a82a4c3f45882e646defe3f59c29bb97d3
This commit is contained in:
李杨
2018-02-19 10:15:00 +08:00
parent 38c76d3233
commit 1e06ffe151
4 changed files with 28 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
import Mock from 'mockjs'
import * as fn from './_fn'
Mock.mock('/api/chart/G2NightingaleRose', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.type) {
// 基础南丁格尔玫瑰图
case 'base': {
return fn.returnMaker(['中国', '日本', '美国', '法国', '英国'].map(e => ({item: e, count: 100 + fn.r()})))
}
default:
return {}
}
})