优化message页面

This commit is contained in:
TOP糯米 2023-03-02 16:30:29 +08:00
parent ece85b81c6
commit ef9d6ef5b2
1 changed files with 1 additions and 2 deletions

View File

@ -121,9 +121,8 @@ export default {
this.switchTab(e.detail.current);
},
setTabHeight() {
let element = ".tab" + this.tabIndex;
let query = uni.createSelectorQuery().in(this);
query.select(element).boundingClientRect();
query.select(".tab" + this.tabIndex).boundingClientRect();
query.exec((res) => {
if (res && res[0]) {
this.tabHeight = res[0].height;