From 1c20c8231980a8d4b91688ff8641a06d3b2f68ab Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 14 十月 2025 16:34:22 +0800
Subject: [PATCH] 改bug

---
 admin/src/components/base/BaseComputHeight.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/admin/src/components/base/BaseComputHeight.vue b/admin/src/components/base/BaseComputHeight.vue
index 6a876aa..c4cc769 100644
--- a/admin/src/components/base/BaseComputHeight.vue
+++ b/admin/src/components/base/BaseComputHeight.vue
@@ -1,20 +1,25 @@
 <script>
+import {mapState} from "vuex";
+
 export default {
   name: 'BaseComputeHeight',
   data () {
     return {
-      tableHeightNew: 300
+      // tableHeightNew: 300
     }
   },
+  computed: {
+    ...mapState(['tableHeightNew'])
+  },
   created() {
-    this.computeTableHeight()
+    // this.computeTableHeight()
   },
   mounted () {
-    this.computeTableHeight()
-    window.addEventListener('resize', this.computeTableHeight)
+    // this.computeTableHeight()
+    // window.addEventListener('resize', this.computeTableHeight)
   },
   activated() {
-    this.computeTableHeight()
+    // this.computeTableHeight()
   },
   methods: {
     computeTableHeight () {
@@ -33,8 +38,8 @@
         const height12 = document.getElementsByClassName('platgroup_tabs') && document.getElementsByClassName('platgroup_tabs')[0]?20+ document.getElementsByClassName('platgroup_tabs')[0].clientHeight:0
         // this.tableHeightNew = height-height4-height3-height2-height1-height5-height6-height7-height8-height9 -height10// 鎵撳嵃楂樺害
        this.tableHeightNew = height-height3 -height5-height6-height2-height7-height4-height9-height10 -height11 -height12
-        console.log('self',height,height3 ,height5,(height6==0?20:height6),height2,height7,height4,height9,height10 ,height11 ,height12)
-        console.log('self',this.tableHeightNew)
+        // console.log('self',height,height3 ,height5,(height6==0?20:height6),height2,height7,height4,height9,height10 ,height11 ,height12)
+        // console.log('self',this.tableHeightNew)
       })
     }
   }

--
Gitblit v1.9.3