From 66ca36deb1c1e8f3e426544b8994d0157bac8523 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Thu, 12 Dec 2019 18:01:44 +0800 Subject: [PATCH] mock: update mock --- lambda/mock/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lambda/mock/index.js b/lambda/mock/index.js index f412ec37..58b30c53 100644 --- a/lambda/mock/index.js +++ b/lambda/mock/index.js @@ -4036,12 +4036,10 @@ } const result = { - list: dataSource, - pagination: { - total: dataSource.length, - pageSize, - current: parseInt(params.currentPage, 10) || 1, - }, + data: dataSource, + total: dataSource.length, + pageSize, + current: parseInt(params.currentPage, 10) || 1, }; return res.json(result); }