修复翻页未重置页码的问题
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
placeholder="关键字"
|
||||
prefix-icon="el-icon-search"
|
||||
clearable
|
||||
@input="getPlatformList"
|
||||
@input="queryList"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@@ -292,6 +292,11 @@ export default {
|
||||
this.count = val
|
||||
this.getPlatformList()
|
||||
},
|
||||
queryList: function() {
|
||||
this.currentPage = 1
|
||||
this.total = 0
|
||||
this.getPlatformList()
|
||||
},
|
||||
getPlatformList: function() {
|
||||
this.$store.dispatch('platform/query', {
|
||||
count: this.count,
|
||||
|
||||
Reference in New Issue
Block a user