fix: mock api error
This commit is contained in:
parent
b760cc34dd
commit
3a38adc71e
@ -122,9 +122,6 @@ export default [
|
|||||||
url: '/api/post/:id',
|
url: '/api/post/:id',
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
response: ({ query }) => {
|
response: ({ query }) => {
|
||||||
if (!query.id) {
|
|
||||||
return { code: -1, message: '删除失败,id不能为空' }
|
|
||||||
} else {
|
|
||||||
return {
|
return {
|
||||||
code: 0,
|
code: 0,
|
||||||
message: 'ok',
|
message: 'ok',
|
||||||
@ -132,7 +129,6 @@ export default [
|
|||||||
id: query.id,
|
id: query.id,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user