Commit 1908ef99 authored by chenqikuai's avatar chenqikuai

fix: 修复banner管理bug

parent 31781636
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "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": { "dependencies": {
"@tiptap/extension-image": "^2.0.0-beta.15", "@tiptap/extension-image": "^2.0.0-beta.15",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:startTime="queryParam.startTime" :startTime="queryParam.startTime"
:endTime="queryParam.endTime" :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> </a-button>
<!-- 新增 --> <!-- 新增 -->
...@@ -215,6 +215,10 @@ export default Vue.extend({ ...@@ -215,6 +215,10 @@ export default Vue.extend({
} }
}, },
methods: { methods: {
handleClickQuery(){
this.queryParam.offset = 0;
this.fetchList();
},
handlePaginationChange(current: number) { handlePaginationChange(current: number) {
this.queryParam.offset = (current - 1) * this.queryParam.limit this.queryParam.offset = (current - 1) * this.queryParam.limit
this.fetchList() 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