Skip to content

Commit

Permalink
🎨 优化表格高度计算逻辑 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier authored Dec 27, 2024
1 parent b24b36a commit 4185e0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/database/CmdMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
></el-empty>
</div>
<template v-else>
<el-table :data="resultData" border :height="tableHeight">
<el-table :data="resultData" border :height="sizeMana.resultHeight">
<el-table-column
v-for="c in columns"
:label="c"
Expand Down Expand Up @@ -146,7 +146,6 @@ export default {
window.addEventListener("resize", this.handleResize)
this.getSqlLog()
this.handleResize()
this.tableHeight = this.$refs.resultBox.clientHeight
if (this.$store.state.botType == "zhenxun") {
this.getCommonSql()
}
Expand Down

0 comments on commit 4185e0d

Please sign in to comment.