refactor: 替换部分v-show为v-if

This commit is contained in:
CaptainB 2023-12-25 23:12:27 +08:00
parent a5a0ba99df
commit cc2d3784bb
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
element-loading-background="#FFFFFF" element-loading-background="#FFFFFF"
> >
<div <div
v-show="loadError" v-if="loadError"
style=" style="
width: 100%; width: 100%;
height: 300px; height: 300px;
@ -27,7 +27,7 @@
$t("home.dashboard.public.load_error") $t("home.dashboard.public.load_error")
}}</span> }}</span>
</div> </div>
<div v-show="!loadError"> <div v-if="!loadError">
<el-table <el-table
:data="tableData" :data="tableData"
class="adjust-table table-content" class="adjust-table table-content"