Commit 1908ef99 authored by chenqikuai's avatar chenqikuai

fix: 修复banner管理bug

parent 31781636
......@@ -4,7 +4,8 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --report"
"build": "vue-cli-service build --report",
"bd": "npm run build & bash deploy.sh"
},
"dependencies": {
"@tiptap/extension-image": "^2.0.0-beta.15",
......
......@@ -9,7 +9,7 @@
:startTime="queryParam.startTime"
:endTime="queryParam.endTime"
/>
<a-button type="primary" style="margin-right: 10px;" @click="fetchList">
<a-button type="primary" style="margin-right: 10px;" @click="handleClickQuery">
查询
</a-button>
<!-- 新增 -->
......@@ -215,6 +215,10 @@ export default Vue.extend({
}
},
methods: {
handleClickQuery(){
this.queryParam.offset = 0;
this.fetchList();
},
handlePaginationChange(current: number) {
this.queryParam.offset = (current - 1) * this.queryParam.limit
this.fetchList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment