fix: 解决首页应用安装跳转错误的问题 (#2519)

This commit is contained in:
zhengkunwang
2023-10-12 02:50:32 +00:00
committed by GitHub
parent 16f9533372
commit 5d9e5baec1
2 changed files with 13 additions and 3 deletions
@@ -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'"
/>
</div>
+12 -3
View File
@@ -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') }}
</el-button>
@@ -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) => {