no message

Former-commit-id: 313b095dffa946b4a4dfffde241353bce31d8cef
Former-commit-id: 049f9d83d669be0ec8267004227e773eb38b96ac
Former-commit-id: 508d4dbe3860eb5e339c116253bb2ff14b01ae3b
This commit is contained in:
李杨
2018-01-28 23:52:37 +08:00
parent 555585b332
commit 3d2201a431
7 changed files with 44 additions and 28 deletions

25
src/mock/chart/G2Line.js Normal file
View File

@@ -0,0 +1,25 @@
import Mock from 'mockjs'
Mock.mock('/api/chart/G2Line', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.code) {
case 1:
return {
code: 0,
msg: '请求成功',
data: [
{ year: '1991', value: 3 },
{ year: '1992', value: 4 },
{ year: '1993', value: 3.5 },
{ year: '1994', value: 5 },
{ year: '1995', value: 4.9 },
{ year: '1996', value: 6 },
{ year: '1997', value: 7 },
{ year: '1998', value: 9 },
{ year: '1999', value: 13 }
]
}
default:
return {}
}
})