feat: 新增数据请求接口

This commit is contained in:
MTrun
2022-03-21 20:56:42 +08:00
parent 0cb3cb3eae
commit d9ee41c892
14 changed files with 177 additions and 73 deletions
+13
View File
@@ -0,0 +1,13 @@
import Mock from 'mockjs'
import test from './test.mock'
Mock.setup({
timeout: '300-600'
})
// 单个X数据
const featchMockData = '/api/mockData'
Mock.mock(/\/api\/mockData(|\?\S*)$/, 'get', test.featchMockData)
export {
featchMockData
}