From f3bc5740afe06fd8e2b8ac179a79ba9b60b36611 Mon Sep 17 00:00:00 2001
From: xieyonghong <18010623010@163.com>
Date: Sun, 29 Jan 2023 17:16:16 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96Layout=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=8A=A8=E6=80=81=E8=B7=AF?=
=?UTF-8?q?=E7=94=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/config.ts | 12 +-
src/App.vue | 25 +-
src/api/comm.ts | 5 +
src/api/login.ts | 7 +-
src/api/system/menu.ts | 3 +
src/components/AIcon/index.tsx | 3 +-
src/components/Layout/BasicLayout.tsx | 91 ++---
src/components/Layout/BasicLayoutPage.vue | 59 ++++
src/components/Layout/BlankLayoutPage.vue | 13 +
.../Layout/components/Header/Header.tsx | 87 +++--
.../Layout/components/Header/index.less | 5 +
.../Layout/components/Header/index.tsx | 45 ++-
.../Layout/components/SiderMenu/BaseMenu.tsx | 9 +-
.../components/SiderMenu/SiderMenu.less | 16 +
.../Layout/components/SiderMenu/SiderMenu.tsx | 37 ++-
src/components/Layout/index.ts | 4 +-
src/components/Layout/utils.ts | 6 +-
src/components/index.ts | 3 +
src/router/index.ts | 55 +++-
src/router/menu.ts | 310 +++++++++++-------
src/store/menu.ts | 46 ++-
src/store/system.ts | 24 ++
src/store/userInfo.ts | 14 +-
src/utils/encodeQuery.ts | 4 +-
src/utils/menu.ts | 111 +++++++
src/utils/request.ts | 6 +-
tsconfig.json | 2 +-
27 files changed, 716 insertions(+), 286 deletions(-)
create mode 100644 src/api/system/menu.ts
create mode 100644 src/components/Layout/BasicLayoutPage.vue
create mode 100644 src/components/Layout/BlankLayoutPage.vue
create mode 100644 src/components/Layout/components/SiderMenu/SiderMenu.less
create mode 100644 src/store/system.ts
create mode 100644 src/utils/menu.ts
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 @@
-