1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

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

This commit is contained in:
zhengkunwang 2023-10-11 21:50:32 -05:00 committed by GitHub
parent 16f9533372
commit 5d9e5baec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -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>

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) => {