Explorar el Código

列表接口修改

zhouna hace 3 años
padre
commit
4967f0b30b
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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);