feat: 新增空间切换选项

This commit is contained in:
xlsea 2024-04-03 17:16:49 +08:00
parent e25bd1dea7
commit 51cd5ee70c
2 changed files with 13 additions and 11 deletions

View File

@ -8,6 +8,7 @@ import HorizontalMenu from '../global-menu/base-menu.vue';
import GlobalLogo from '../global-logo/index.vue'; import GlobalLogo from '../global-logo/index.vue';
import GlobalBreadcrumb from '../global-breadcrumb/index.vue'; import GlobalBreadcrumb from '../global-breadcrumb/index.vue';
import GlobalSearch from '../global-search/index.vue'; import GlobalSearch from '../global-search/index.vue';
import NamespaceSelect from '../namespace-select/index.vue';
import { useMixMenuContext } from '../../context'; import { useMixMenuContext } from '../../context';
import ThemeButton from './components/theme-button.vue'; import ThemeButton from './components/theme-button.vue';
import UserAvatar from './components/user-avatar.vue'; import UserAvatar from './components/user-avatar.vue';
@ -55,6 +56,7 @@ const headerMenus = computed(() => {
<GlobalBreadcrumb v-if="!appStore.isMobile" class="ml-12px" /> <GlobalBreadcrumb v-if="!appStore.isMobile" class="ml-12px" />
</div> </div>
<div class="h-full flex-y-center justify-end"> <div class="h-full flex-y-center justify-end">
<NamespaceSelect />
<GlobalSearch /> <GlobalSearch />
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" /> <FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" />
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" /> <LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />

View File

@ -316,17 +316,6 @@ export const generatedRoutes: GeneratedRoute[] = [
] ]
} }
] ]
},
{
name: 'pods',
path: '/pods',
component: 'layout.base$view.pods',
meta: {
title: 'pods',
i18nKey: 'route.pods',
icon: 'ant-design:database-outlined',
order: 1
}
}, },
{ {
name: 'namepase', name: 'namepase',
@ -339,6 +328,17 @@ export const generatedRoutes: GeneratedRoute[] = [
order: 2 order: 2
} }
}, },
{
name: 'pods',
path: '/pods',
component: 'layout.base$view.pods',
meta: {
title: 'pods',
i18nKey: 'route.pods',
icon: 'ant-design:database-outlined',
order: 1
}
},
{ {
name: 'user-center', name: 'user-center',
path: '/user-center', path: '/user-center',