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

feat: 修改首页应用跳转

This commit is contained in:
zhengkunwang223 2023-02-08 17:21:11 +08:00 committed by zhengkunwang223
parent 2b89a8ddff
commit 8eb0ebb607
2 changed files with 11 additions and 4 deletions

View File

@ -21,7 +21,14 @@
</div>
</el-col>
<el-col :span="2">
<el-button class="h-app-button" type="primary" plain round size="small" @click="goInstall">
<el-button
class="h-app-button"
type="primary"
plain
round
size="small"
@click="goInstall(app.key)"
>
{{ $t('app.install') }}
</el-button>
</el-col>
@ -71,8 +78,8 @@ const acceptParams = (base: Dashboard.BaseInfo): void => {
search(req);
};
const goInstall = () => {
router.push({ name: 'App' });
const goInstall = (key: string) => {
router.push({ name: 'AppDetail', params: { appKey: key } });
};
const search = async (req: App.AppReq) => {

View File

@ -48,7 +48,7 @@
<template v-if="nginxIsExist && !openNginxConfig" #search>
<div :class="{ mask: nginxStatus != 'Running' }">
<el-select v-model="req.websiteGroupId" @change="search()">
<template #prefix>分组</template>
<template #prefix>{{ $t('website.group') }}</template>
<el-option :label="$t('website.allGroup')" :value="0"></el-option>
<el-option
v-for="(group, index) in groups"