fix: update loading

This commit is contained in:
Qiuxia Fan 2022-03-10 10:26:28 +08:00
parent aa88bce938
commit 89515f404e

View File

@ -14,10 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div>
<div class="log-t-loading" v-show="logStore.loadLogs">
<Icon iconName="spinner" size="lg" />
</div>
<LogTable :tableData="logStore.logs || []" :type="type" :noLink="true">
<LogTable
v-loading="logStore.loadLogs"
:tableData="logStore.logs || []"
:type="type"
:noLink="true"
>
<div class="log-tips" v-if="!logStore.logs.length">{{ t("noData") }}</div>
</LogTable>
<div class="mt-5 mb-5">
@ -66,8 +68,4 @@ async function queryLogs() {
text-align: center;
margin: 50px 0;
}
.log-t-loading {
text-align: center;
}
</style>