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:
parent
33a0c2ba30
commit
f1ed051135
@ -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>
|
||||
|
@ -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',
|
||||
|
@ -1367,8 +1367,8 @@ const message = {
|
||||
confirmMessage: '即將刷新頁面更新高級功能菜單列表,是否繼續?',
|
||||
},
|
||||
license: {
|
||||
community: '社區版',
|
||||
pro: '專業版',
|
||||
community: '社區版:',
|
||||
pro: '專業版:',
|
||||
trial: '試用版',
|
||||
office: '正式版',
|
||||
trialInfo: '版本',
|
||||
|
@ -1368,8 +1368,8 @@ const message = {
|
||||
confirmMessage: '即将刷新页面更新高级功能菜单列表,是否继续?',
|
||||
},
|
||||
license: {
|
||||
community: '社区版',
|
||||
pro: '专业版',
|
||||
community: '社区版:',
|
||||
pro: '专业版:',
|
||||
trial: '试用版',
|
||||
office: '正式版',
|
||||
trialInfo: '版本',
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user