From 5d9e5baec15935cd20079d05733acbcaca9ecfb0 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 11 Oct 2023 21:50:32 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=AE=89=E8=A3=85=E8=B7=B3=E8=BD=AC=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=20(#2519)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/app-store/apps/index.vue | 1 + frontend/src/views/home/app/index.vue | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/app-store/apps/index.vue b/frontend/src/views/app-store/apps/index.vue index bd19899ba..36aa8f48b 100644 --- a/frontend/src/views/app-store/apps/index.vue +++ b/frontend/src/views/app-store/apps/index.vue @@ -159,6 +159,7 @@ v-model:page-size="paginationConfig.pageSize" v-bind="paginationConfig" @change="search(req)" + :page-sizes="[30, 60, 90]" :layout="mobile ? 'total, prev, pager, next' : 'total, sizes, prev, pager, next, jumper'" /> diff --git a/frontend/src/views/home/app/index.vue b/frontend/src/views/home/app/index.vue index 3b9784a07..8518e58ff 100644 --- a/frontend/src/views/home/app/index.vue +++ b/frontend/src/views/home/app/index.vue @@ -28,7 +28,7 @@ round size="small" :disabled="app.limit == 1 && app.installed" - @click="goInstall(app.key)" + @click="goInstall(app.key, app.type)" > {{ $t('app.install') }} @@ -64,8 +64,17 @@ const acceptParams = (): void => { search(req); }; -const goInstall = (key: string) => { - router.push({ name: 'AppAll', query: { install: key } }); +const goInstall = (key: string, type: string) => { + switch (type) { + case 'php': + router.push({ path: '/websites/runtimes/php' }); + break; + case 'node': + router.push({ path: '/websites/runtimes/node' }); + break; + default: + router.push({ name: 'AppAll', query: { install: key } }); + } }; const search = async (req: App.AppReq) => {