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:
parent
16f9533372
commit
5d9e5baec1
@ -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>
|
||||
|
@ -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) => {
|
||||
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user