add mockjs“
This commit is contained in:
@@ -3,8 +3,9 @@ const Random = Mock.Random
|
||||
|
||||
const pageViewModel = () => ({
|
||||
code: Random.county(),
|
||||
stateDictValue: Random.integer(1, 7),
|
||||
orderCode: Random.string(10),
|
||||
stateDictValue: Random.integer(0, 3),
|
||||
// orderCode: Random.string(10),
|
||||
orderCode: Random.integer(1,7),
|
||||
posCode: Random.string(10),
|
||||
startTime: Random.datetime(),
|
||||
endTime: Random.datetime(),
|
||||
|
||||
@@ -10,7 +10,7 @@ function m(url, type, fn) {
|
||||
m(carManagement.url, carManagement.type, opt => {
|
||||
let { limit, page } = JSON.parse(opt.body)
|
||||
// console.log('limit, page', limit, page, opt.body)
|
||||
limit = 5
|
||||
// limit = 5
|
||||
return {
|
||||
code: 0,
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user