소스 검색

列表接口修改

zhouna 3 년 전
부모
커밋
4967f0b30b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/MsgManage/index.js
  2. 1 1
      src/components/MyMessage/index.js

+ 1 - 1
src/components/MsgManage/index.js

@@ -32,7 +32,7 @@ function MsgManage() {
 
     //获取表格数据
     function getTableData(param = {}) {
-        post(api.listPage, param).then((res) => {
+        post(api.listManagePage, param).then((res) => {
             if (res.data.code === 200) {
                 let data = res.data.data;
                 setTotal(data.total);

+ 1 - 1
src/components/MyMessage/index.js

@@ -29,7 +29,7 @@ function MyMessage() {
 
     //获取表格数据
     function getTableData(param = {}) {
-        post(api.listManagePage, param).then((res) => {
+        post(api.listPage, param).then((res) => {
             if (res.data.code === 200) {
                 let data = res.data.data;
                 setTotal(data.total);