新增mock数据

This commit is contained in:
chenghx
2018-08-01 16:02:53 +08:00
parent 25e297fe86
commit f15f33dd64
10 changed files with 185 additions and 12 deletions

15
src/mock/project/index.js Normal file
View File

@@ -0,0 +1,15 @@
import Mock from 'mockjs'
import '@/mock/extend'
const projectArr = Mock.mock({
'list|6': [
{
logo: '@LOGO',
desc: '@SAYING'
}
]
}).list
Mock.mock('/project', 'get', () => {
return projectArr
})