no message

Former-commit-id: 3d89a48b4812432b1d8fb172550496ec368fe7b4
Former-commit-id: 2dfe3f42701c9bcba739c617db883cef7b515bf1
Former-commit-id: cf80d852d653158aa395be003359b46830741bb4
This commit is contained in:
李杨
2018-01-29 16:33:42 +08:00
parent bb33401182
commit b9f740e983
9 changed files with 75 additions and 82 deletions

20
src/mock/chart/G2Pie.js Normal file
View File

@@ -0,0 +1,20 @@
import Mock from 'mockjs'
Mock.mock('/api/chart/G2Pie', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.code) {
case 1:
return {
code: 0,
msg: '请求成功',
data: [
{ item: '分类1', count: 40 },
{ item: '分类2', count: 21 },
{ item: '分类3', count: 17 },
{ item: '分类4', count: 22 }
]
}
default:
return {}
}
})

View File

@@ -1 +1,2 @@
import './G2Line'
import './G2Pie'