From df6225a7529513ea2833b7b5eecd898035a351dc Mon Sep 17 00:00:00 2001 From: Xiongxing Date: Fri, 12 Aug 2022 21:10:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20get=E8=AF=B7=E6=B1=82=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examples/table/post/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/examples/table/post/api.js b/src/views/examples/table/post/api.js index 42fa0b6..9416f24 100644 --- a/src/views/examples/table/post/api.js +++ b/src/views/examples/table/post/api.js @@ -1,7 +1,7 @@ import request from '@/utils/http' export default { - getPosts: (params = {}) => request.get('posts', params), + getPosts: (params = {}) => request.get('posts', { params }), getPostById: (id) => request.get(`/post/${id}`), savePost: (id, data = {}) => { if (id) {