mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
feat: 已安装页面增加 loading
This commit is contained in:
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,12 +228,17 @@ 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)
|
||||||
data.value = res.data.items;
|
.then((res) => {
|
||||||
paginationConfig.total = res.data.total;
|
data.value = res.data.items;
|
||||||
});
|
paginationConfig.total = res.data.total;
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
GetAppTags().then((res) => {
|
GetAppTags().then((res) => {
|
||||||
tags.value = res.data;
|
tags.value = res.data;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user