瀏覽代碼

列表接口修改

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);