mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-13 17:24:44 +08:00
feat: 修改首页应用跳转
This commit is contained in:
parent
2b89a8ddff
commit
8eb0ebb607
@ -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) => {
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user