fix:取消监听tableData 把回到顶部事件放入search 解决删除修改后也回到顶部的问题
This commit is contained in:
@@ -124,11 +124,6 @@
|
||||
'alertLabel':alertLabel,
|
||||
},
|
||||
watch:{
|
||||
tableData(){
|
||||
if(this.$refs.assetTable&& this.$refs.assetTable.bodyWrapper){
|
||||
this.$refs.assetTable.bodyWrapper.scrollTop = 0;
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
tagType() {
|
||||
@@ -340,6 +335,9 @@
|
||||
if(orderBy){
|
||||
this.$set(this.searchLabel, 'orderBy', orderBy);
|
||||
}
|
||||
if(this.$refs.assetTable&& this.$refs.assetTable.bodyWrapper){
|
||||
this.$refs.assetTable.bodyWrapper.scrollTop = 0;
|
||||
}
|
||||
this.getAssetList();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user