1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

feat: 增加概览页跳转方式 (#4417)

This commit is contained in:
ssongliu 2024-04-07 17:29:46 +08:00 committed by GitHub
parent 33a0c2ba30
commit f1ed051135
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 12 deletions

View File

@ -15,12 +15,12 @@
<el-divider direction="vertical" />
</span>
<el-button type="primary" link @click="toHalo">
{{ isProductPro ? $t('license.pro') : $t('license.community') }} :
{{ isProductPro ? $t('license.pro') : $t('license.community') }}
<span class="version">{{ version }}</span>
</el-button>
<el-badge is-dot class="item" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
<el-badge is-dot style="margin-left: -3px" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
<el-button type="primary" link @click="onLoadUpgradeInfo">
<span>{{ $t('setting.hasNewVersion') }}</span>
<span>({{ $t('setting.hasNewVersion') }})</span>
</el-button>
</el-badge>
<el-button
@ -29,7 +29,7 @@
link
@click="onLoadUpgradeInfo"
>
<span>{{ $t('setting.upgradeCheck') }}</span>
<span>({{ $t('setting.upgradeCheck') }})</span>
</el-button>
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">{{ $t('setting.upgrading') }}</el-tag>
</div>

View File

@ -1467,8 +1467,8 @@ const message = {
confirmMessage: 'The page will be refreshed to update the advanced menu list. Continue?',
},
license: {
community: 'Community Edition',
pro: 'Professional Edition',
community: 'Community Edition: ',
pro: 'Professional Edition: ',
trial: 'Trial Edition',
office: 'Official Edition',
trialInfo: 'Version',

View File

@ -1367,8 +1367,8 @@ const message = {
confirmMessage: '即將刷新頁面更新高級功能菜單列表是否繼續',
},
license: {
community: '社區版',
pro: '專業版',
community: '社區版',
pro: '專業版',
trial: '試用版',
office: '正式版',
trialInfo: '版本',

View File

@ -1368,8 +1368,8 @@ const message = {
confirmMessage: '即将刷新页面更新高级功能菜单列表是否继续',
},
license: {
community: '社区版',
pro: '专业版',
community: '社区版',
pro: '专业版',
trial: '试用版',
office: '正式版',
trialInfo: '版本',

View File

@ -1,15 +1,20 @@
<template>
<div class="logo">
<img :src="getLogoUrl(isCollapse)" alt="logo" />
<img :src="getLogoUrl(isCollapse)" style="cursor: pointer" alt="logo" @click="goHome" />
</div>
</template>
<script setup lang="ts">
import router from '@/routers';
import { GlobalStore } from '@/store';
defineProps<{ isCollapse: boolean }>();
const globalStore = GlobalStore();
const goHome = () => {
router.push({ name: 'home' });
};
const getLogoUrl = (isCollapse: boolean) => {
if (isCollapse) {
if (globalStore.themeConfig.logo) {
@ -36,7 +41,7 @@ const getLogoUrl = (isCollapse: boolean) => {
img {
object-fit: contain;
width: 95%;
height: 50px;
height: 45px;
}
}
</style>