From e8117f57adcb46f59030d1a3feba767c06be207b Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 25 Dec 2023 16:22:39 +0800
Subject: [PATCH] 管理后台查询不出来评论
---
src/api/article/articleComment.js | 13 ++++++++++++-
src/views/article/articleComment.vue | 6 +++---
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/api/article/articleComment.js b/src/api/article/articleComment.js
index 5f11193..438101c 100644
--- a/src/api/article/articleComment.js
+++ b/src/api/article/articleComment.js
@@ -11,6 +11,17 @@
}
})
}
+export const getPageList = (current, size, params) => {
+ return request({
+ url: '/api/blade-articleComment/articleComment/pageWeb',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
export const getListWords = (current, size, params) => {
return request({
@@ -69,4 +80,4 @@
type
}
})
-}
+}
\ No newline at end of file
diff --git a/src/views/article/articleComment.vue b/src/views/article/articleComment.vue
index d9d2e03..9a18721 100644
--- a/src/views/article/articleComment.vue
+++ b/src/views/article/articleComment.vue
@@ -16,7 +16,7 @@
</template>
<script>
import {
- getList,
+ getPageList,
remove,
update,
add,
@@ -167,7 +167,7 @@
...params,
};
this.loading = true;
- getList(page.currentPage, page.pageSize, values).then((res) => {
+ getPageList(page.currentPage, page.pageSize, values).then((res) => {
const data = res.data.data;
this.page.total = data.total;
this.dataList = data.records;
@@ -184,4 +184,4 @@
</script>
<style>
-</style>
+</style>
\ No newline at end of file
--
Gitblit v1.9.3