diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index 0353d81b..3be38b2b 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -5,7 +5,7 @@ import {
clearMenuItem,
MenuDataItem,
} from 'antdv-pro-layout';
-import RightContent from './components/RightContent.vue';
+import HeaderContentRight from './components/HeaderContentRight/HeaderContentRight.vue';
import Tabs from './components/Tabs.vue';
import GlobalMask from '@/components/GlobalMask/index.vue';
import ForcePasswdChange from '@/components/ForcePasswdChange/index.vue';
@@ -68,19 +68,6 @@ watch(
);
// 动态路由添加到菜单面板
-// const rootRoute = router.getRoutes().find(r => r.name === 'Root');
-// if (rootRoute) {
-// const children = routerStore.setRootRouterData(rootRoute.children);
-// const buildRouterData = routerStore.buildRouterData;
-// if (buildRouterData.length > 0) {
-// rootRoute.children = children.concat(buildRouterData);
-// } else {
-// rootRoute.children = children;
-// }
-// }
-//
-// const { menuData } = getMenuData(clearMenuItem(router.getRoutes()));
-//
const menuData = computed(() => {
const rootRoute = router.getRoutes().find(r => r.name === 'Root');
if (rootRoute) {
@@ -151,10 +138,13 @@ tabsStore.clear();
// LOGO地址
const logoUrl = computed(() => {
- let url =
- appStore.logoType === 'brand'
- ? parseUrlPath(appStore.filePathBrand)
- : parseUrlPath(appStore.filePathIcon);
+ let url = parseUrlPath(appStore.filePathIcon);
+ if (appStore.logoType === 'brand') {
+ url = parseUrlPath(appStore.filePathBrand);
+ }
+ if (layoutState.collapsed) {
+ url = parseUrlPath(appStore.filePathIcon);
+ }
if (url.indexOf('{language}') === -1) {
return url;
@@ -294,13 +284,17 @@ onUnmounted(() => {
:alt="appStore.appName"
:title="appStore.appName"
/>
-
+
{{ appStore.appName }}
-
+
{
-
+
diff --git a/src/layouts/components/HeaderContentRight/HeaderContentRight.vue b/src/layouts/components/HeaderContentRight/HeaderContentRight.vue
new file mode 100644
index 00000000..3ccad02a
--- /dev/null
+++ b/src/layouts/components/HeaderContentRight/HeaderContentRight.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.alarm') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.fullscreen') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.theme') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ opt.label }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/components/HeaderContentRight/components/LockScreen.vue b/src/layouts/components/HeaderContentRight/components/LockScreen.vue
new file mode 100644
index 00000000..89963e2e
--- /dev/null
+++ b/src/layouts/components/HeaderContentRight/components/LockScreen.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+ {{ t('loayouts.rightContent.lock') }}
+
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.lockPasswd') }}:
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/components/HeaderContentRight/components/NetCoreSelect.vue b/src/layouts/components/HeaderContentRight/components/NetCoreSelect.vue
new file mode 100644
index 00000000..01838332
--- /dev/null
+++ b/src/layouts/components/HeaderContentRight/components/NetCoreSelect.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+ {{ label }} - {{ value }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/components/HeaderContentRight/components/UserProfile.vue b/src/layouts/components/HeaderContentRight/components/UserProfile.vue
new file mode 100644
index 00000000..9e8e2ced
--- /dev/null
+++ b/src/layouts/components/HeaderContentRight/components/UserProfile.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+ {{ userStore.nickName }}
+
+
+
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.settings') }}
+
+
+
+
+
+
+ {{ t('loayouts.rightContent.logout') }}
+
+
+
+
+
+
+
diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue
deleted file mode 100644
index 7ca4ad41..00000000
--- a/src/layouts/components/RightContent.vue
+++ /dev/null
@@ -1,241 +0,0 @@
-
-
-
-
-
- {{ t('loayouts.rightContent.alarm') }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('loayouts.rightContent.lock') }}
-
-
-
-
-
-
-
- {{ t('loayouts.rightContent.lockPasswd') }}:
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('loayouts.rightContent.fullscreen') }}
-
-
-
-
-
-
-
-
-
- {{ t('loayouts.rightContent.theme') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ opt.label }}
-
-
-
-
-
-
-
-
-
- {{ userStore.nickName }}
-
-
-
-
-
-
-
-
-
- {{ t('loayouts.rightContent.settings') }}
-
-
-
-
-
-
- {{ t('loayouts.rightContent.logout') }}
-
-
-
-
-
-
-
-
diff --git a/src/store/modules/core.ts b/src/store/modules/core.ts
new file mode 100644
index 00000000..923d8f08
--- /dev/null
+++ b/src/store/modules/core.ts
@@ -0,0 +1,31 @@
+import { defineStore } from 'pinia';
+
+/**核心网信息类型 */
+type Core = {
+ /**当前选择 */
+ current: string;
+ /**核心网选择 */
+ coreOptions: Record[];
+};
+
+const useCoreStore = defineStore('core', {
+ state: (): Core => ({
+ current: 'Global',
+ coreOptions: [
+ { label: 'Core', value: 'Core' },
+ { label: 'Core2', value: 'Core2' },
+ ],
+ }),
+ getters: {
+ getCoreOptions(): Record[] {
+ return this.coreOptions;
+ },
+ },
+ actions: {
+ setCurrent(value: string = 'Global') {
+ this.current = value;
+ },
+ },
+});
+
+export default useCoreStore;
diff --git a/src/store/modules/layout.ts b/src/store/modules/layout.ts
index 80395ccf..143a7a2f 100644
--- a/src/store/modules/layout.ts
+++ b/src/store/modules/layout.ts
@@ -70,9 +70,9 @@ const proRender = (render: any) => (render === false ? false : undefined);
const proConfigLocal: LayoutStore['proConfig'] = localGetJSON(
CACHE_LOCAL_PROCONFIG
) || {
- layout: 'mix',
+ layout: 'side',
theme: 'light',
- menuTheme: 'light',
+ menuTheme: 'dark',
fixSiderbar: true,
fixedHeader: true,
splitMenus: true,