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