mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
feat: 增加概览页跳转方式 (#4417)
This commit is contained in:
parent
33a0c2ba30
commit
f1ed051135
@ -15,12 +15,12 @@
|
|||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical" />
|
||||||
</span>
|
</span>
|
||||||
<el-button type="primary" link @click="toHalo">
|
<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>
|
<span class="version">{{ version }}</span>
|
||||||
</el-button>
|
</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">
|
<el-button type="primary" link @click="onLoadUpgradeInfo">
|
||||||
<span>({{ $t('setting.hasNewVersion') }})</span>
|
<span>({{ $t('setting.hasNewVersion') }})</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
<el-button
|
<el-button
|
||||||
@ -29,7 +29,7 @@
|
|||||||
link
|
link
|
||||||
@click="onLoadUpgradeInfo"
|
@click="onLoadUpgradeInfo"
|
||||||
>
|
>
|
||||||
<span>({{ $t('setting.upgradeCheck') }})</span>
|
<span>({{ $t('setting.upgradeCheck') }})</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">{{ $t('setting.upgrading') }}</el-tag>
|
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">{{ $t('setting.upgrading') }}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1467,8 +1467,8 @@ const message = {
|
|||||||
confirmMessage: 'The page will be refreshed to update the advanced menu list. Continue?',
|
confirmMessage: 'The page will be refreshed to update the advanced menu list. Continue?',
|
||||||
},
|
},
|
||||||
license: {
|
license: {
|
||||||
community: 'Community Edition',
|
community: 'Community Edition: ',
|
||||||
pro: 'Professional Edition',
|
pro: 'Professional Edition: ',
|
||||||
trial: 'Trial Edition',
|
trial: 'Trial Edition',
|
||||||
office: 'Official Edition',
|
office: 'Official Edition',
|
||||||
trialInfo: 'Version',
|
trialInfo: 'Version',
|
||||||
|
@ -1367,8 +1367,8 @@ const message = {
|
|||||||
confirmMessage: '即將刷新頁面更新高級功能菜單列表,是否繼續?',
|
confirmMessage: '即將刷新頁面更新高級功能菜單列表,是否繼續?',
|
||||||
},
|
},
|
||||||
license: {
|
license: {
|
||||||
community: '社區版',
|
community: '社區版:',
|
||||||
pro: '專業版',
|
pro: '專業版:',
|
||||||
trial: '試用版',
|
trial: '試用版',
|
||||||
office: '正式版',
|
office: '正式版',
|
||||||
trialInfo: '版本',
|
trialInfo: '版本',
|
||||||
|
@ -1368,8 +1368,8 @@ const message = {
|
|||||||
confirmMessage: '即将刷新页面更新高级功能菜单列表,是否继续?',
|
confirmMessage: '即将刷新页面更新高级功能菜单列表,是否继续?',
|
||||||
},
|
},
|
||||||
license: {
|
license: {
|
||||||
community: '社区版',
|
community: '社区版:',
|
||||||
pro: '专业版',
|
pro: '专业版:',
|
||||||
trial: '试用版',
|
trial: '试用版',
|
||||||
office: '正式版',
|
office: '正式版',
|
||||||
trialInfo: '版本',
|
trialInfo: '版本',
|
||||||
|
@ -1,15 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img :src="getLogoUrl(isCollapse)" alt="logo" />
|
<img :src="getLogoUrl(isCollapse)" style="cursor: pointer" alt="logo" @click="goHome" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import router from '@/routers';
|
||||||
import { GlobalStore } from '@/store';
|
import { GlobalStore } from '@/store';
|
||||||
|
|
||||||
defineProps<{ isCollapse: boolean }>();
|
defineProps<{ isCollapse: boolean }>();
|
||||||
const globalStore = GlobalStore();
|
const globalStore = GlobalStore();
|
||||||
|
|
||||||
|
const goHome = () => {
|
||||||
|
router.push({ name: 'home' });
|
||||||
|
};
|
||||||
|
|
||||||
const getLogoUrl = (isCollapse: boolean) => {
|
const getLogoUrl = (isCollapse: boolean) => {
|
||||||
if (isCollapse) {
|
if (isCollapse) {
|
||||||
if (globalStore.themeConfig.logo) {
|
if (globalStore.themeConfig.logo) {
|
||||||
@ -36,7 +41,7 @@ const getLogoUrl = (isCollapse: boolean) => {
|
|||||||
img {
|
img {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: 50px;
|
height: 45px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user