Ver Fonte

出入库统计表格自适应

lichao há 3 anos atrás
pai
commit
e8c832e1d4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/reportManagement/Statistics/index.vue

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

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