浏览代码

通关表格自适应

lichao 3 年之前
父节点
当前提交
ddc167e759
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/Warehousing/cargoClearance/index.vue

+ 1 - 1
src/views/Warehousing/cargoClearance/index.vue

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