doum
3 天以前 1674f2b873da35814f5f1bdd199b0b37d5d04a3b
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 () {