feat: 已安装页面增加 loading

pull/170/head
zhengkunwang223 2 years ago committed by zhengkunwang223
parent 0a6a2ed0a5
commit 3456e807a7

@ -114,10 +114,6 @@
</div> </div>
<div class="d-description"> <div class="d-description">
<el-tag>{{ $t('app.version') }}{{ installed.version }}</el-tag> <el-tag>{{ $t('app.version') }}{{ installed.version }}</el-tag>
<!-- <el-tag>HTTP{{ $t('app.port') }}{{ installed.httpPort }}</el-tag>
<el-tag v-if="installed.httpsPort > 0">
HTTPS{{ $t('app.port') }}{{ installed.httpsPort }}
</el-tag> -->
<div class="description"> <div class="description">
<span>{{ $t('app.areadyRun') }} {{ getAge(installed.createdAt) }}</span> <span>{{ $t('app.areadyRun') }} {{ getAge(installed.createdAt) }}</span>
</div> </div>
@ -232,11 +228,16 @@ const changeTag = (key: string) => {
}; };
const search = () => { const search = () => {
loading.value = true;
searchReq.page = paginationConfig.currentPage; searchReq.page = paginationConfig.currentPage;
searchReq.pageSize = paginationConfig.pageSize; searchReq.pageSize = paginationConfig.pageSize;
SearchAppInstalled(searchReq).then((res) => { SearchAppInstalled(searchReq)
.then((res) => {
data.value = res.data.items; data.value = res.data.items;
paginationConfig.total = res.data.total; paginationConfig.total = res.data.total;
})
.finally(() => {
loading.value = false;
}); });
GetAppTags().then((res) => { GetAppTags().then((res) => {
tags.value = res.data; tags.value = res.data;

Loading…
Cancel
Save