From 3456e807a71dc1604e6c5597846d7c5d911af6d2 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Tue, 28 Feb 2023 11:09:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=B2=E5=AE=89=E8=A3=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=20loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/app-store/installed/index.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/app-store/installed/index.vue b/frontend/src/views/app-store/installed/index.vue index a8fbdc69f..83bfc1da0 100644 --- a/frontend/src/views/app-store/installed/index.vue +++ b/frontend/src/views/app-store/installed/index.vue @@ -114,10 +114,6 @@
{{ $t('app.version') }}:{{ installed.version }} -
{{ $t('app.areadyRun') }}: {{ getAge(installed.createdAt) }}
@@ -232,12 +228,17 @@ const changeTag = (key: string) => { }; const search = () => { + loading.value = true; searchReq.page = paginationConfig.currentPage; searchReq.pageSize = paginationConfig.pageSize; - SearchAppInstalled(searchReq).then((res) => { - data.value = res.data.items; - paginationConfig.total = res.data.total; - }); + SearchAppInstalled(searchReq) + .then((res) => { + data.value = res.data.items; + paginationConfig.total = res.data.total; + }) + .finally(() => { + loading.value = false; + }); GetAppTags().then((res) => { tags.value = res.data; });