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