fix: mock api error

This commit is contained in:
张传龙 2022-09-03 22:43:57 +08:00
parent b760cc34dd
commit 3a38adc71e

View File

@ -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,
},
}
}
},
},
]