mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-14 01:34:47 +08:00
feat: 修改首页应用跳转
This commit is contained in:
parent
2b89a8ddff
commit
8eb0ebb607
@ -21,7 +21,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<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') }}
|
{{ $t('app.install') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -71,8 +78,8 @@ const acceptParams = (base: Dashboard.BaseInfo): void => {
|
|||||||
search(req);
|
search(req);
|
||||||
};
|
};
|
||||||
|
|
||||||
const goInstall = () => {
|
const goInstall = (key: string) => {
|
||||||
router.push({ name: 'App' });
|
router.push({ name: 'AppDetail', params: { appKey: key } });
|
||||||
};
|
};
|
||||||
|
|
||||||
const search = async (req: App.AppReq) => {
|
const search = async (req: App.AppReq) => {
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
<template v-if="nginxIsExist && !openNginxConfig" #search>
|
<template v-if="nginxIsExist && !openNginxConfig" #search>
|
||||||
<div :class="{ mask: nginxStatus != 'Running' }">
|
<div :class="{ mask: nginxStatus != 'Running' }">
|
||||||
<el-select v-model="req.websiteGroupId" @change="search()">
|
<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 :label="$t('website.allGroup')" :value="0"></el-option>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(group, index) in groups"
|
v-for="(group, index) in groups"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user