tweak mock

This commit is contained in:
Pan
2019-03-20 11:00:54 +08:00
parent d927d4172f
commit 7c33568883
6 changed files with 59 additions and 29 deletions

View File

@@ -48,7 +48,7 @@ export default [
const pageList = mockList.filter((item, index) => index < limit * page && index >= limit * (page - 1))
return {
code: '20000',
code: 20000,
data: {
total: mockList.length,
items: pageList
@@ -65,7 +65,7 @@ export default [
for (const article of List) {
if (article.id === +id) {
return {
code: '20000',
code: 20000,
data: article
}
}
@@ -78,7 +78,7 @@ export default [
type: 'get',
response: _ => {
return {
code: '20000',
code: 20000,
data: {
pvData: [
{ key: 'PC', pv: 1024 },
@@ -96,7 +96,7 @@ export default [
type: 'post',
response: _ => {
return {
code: '20000',
code: 20000,
data: 'success'
}
}
@@ -107,7 +107,7 @@ export default [
type: 'post',
response: _ => {
return {
code: '20000',
code: 20000,
data: 'success'
}
}