diff --git a/config/config.ts b/config/config.ts
index 11e31a68..9a3c3b8a 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -2,13 +2,13 @@ export default {
theme: {
'primary-color': '#1d39c4',
},
- logo: '/favicon.ico',
- title: 'Jetlinks',
+ logo: '/favicon.ico', // 浏览器标签页logo
+ title: 'Jetlinks', // 浏览器标签页title
layout: {
- title: '物联网平台',
- logo: '/icons/icon-192x192.png',
- siderWidth: 208,
- headerHeight: 48,
+ title: '物联网平台', // 平台title
+ logo: '/icons/icon-192x192.png', // 平台logo
+ siderWidth: 208, // 左侧菜单栏宽度
+ headerHeight: 48, // 头部高度
collapsedWidth: 48,
mode: 'inline',
theme: 'light', // 'dark' 'light'
diff --git a/src/App.vue b/src/App.vue
index 0bd59e76..02bc5677 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,31 +1,8 @@
-
-
-
+
diff --git a/src/components/Layout/BlankLayoutPage.vue b/src/components/Layout/BlankLayoutPage.vue
new file mode 100644
index 00000000..69d6fa16
--- /dev/null
+++ b/src/components/Layout/BlankLayoutPage.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Layout/components/Header/Header.tsx b/src/components/Layout/components/Header/Header.tsx
index ad36951b..f3ff3654 100644
--- a/src/components/Layout/components/Header/Header.tsx
+++ b/src/components/Layout/components/Header/Header.tsx
@@ -8,6 +8,9 @@ import { defaultSettingProps } from 'components/Layout/defaultSetting'
import PropTypes from 'ant-design-vue/es/_util/vue-types'
import { CustomRender, MenuDataItem, ProProps, RightContentRender, WithFalse } from 'components/Layout/typings'
import './index.less'
+import { omit } from 'lodash-es'
+import { RouteRecordRaw } from 'vue-router'
+import { clearMenuItem } from 'components/Layout/utils'
export const headerProps = {
...defaultSettingProps,
@@ -66,48 +69,60 @@ export default defineComponent({
const context = useRouteContext();
+ const noChildrenMenuData = (menuData || []).map((item) => ({
+ ...item,
+ children: undefined,
+ })) as RouteRecordRaw[];
+
+ const clearMenuData = clearMenuItem(noChildrenMenuData);
+
return () => (
-