fix: 优化administration切换tab的效果
This commit is contained in:
@@ -32,6 +32,8 @@ export default {
|
|||||||
object: {},
|
object: {},
|
||||||
searchLabel: ref({}),
|
searchLabel: ref({}),
|
||||||
|
|
||||||
|
isFirstQuery: true,
|
||||||
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
scrollbarWrap: null,
|
scrollbarWrap: null,
|
||||||
delFlag: false,
|
delFlag: false,
|
||||||
@@ -118,7 +120,14 @@ export default {
|
|||||||
},
|
},
|
||||||
pageNo (val) {
|
pageNo (val) {
|
||||||
this.pageObj.pageNo = val
|
this.pageObj.pageNo = val
|
||||||
this.getTableData()
|
if (this.isFirstQuery) {
|
||||||
|
this.isFirstQuery = false
|
||||||
|
setTimeout(() => {
|
||||||
|
this.getTableData()
|
||||||
|
}, 300)
|
||||||
|
} else {
|
||||||
|
this.getTableData()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
pageSize (val) {
|
pageSize (val) {
|
||||||
this.pageObj.pageSize = val
|
this.pageObj.pageSize = val
|
||||||
|
|||||||
Reference in New Issue
Block a user