Przeglądaj źródła

总账统计表格自适应

lichao 3 lat temu
rodzic
commit
cf8e53b329
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/reportManagement/outExcel/index.vue

+ 1 - 1
src/views/reportManagement/outExcel/index.vue

@@ -314,7 +314,7 @@ export default {
           this.total = res.total;
           this.loading = false;
           // 根据浏览器高度设置初始高度
-          setInterval(() => {
+          setTimeout(() => {
             this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
           }, 300)
         }