From 6dab2ab35bf0b1f4bd6bb0bbf992a434eff052e0 Mon Sep 17 00:00:00 2001
From: Maybe_QHL <1013480204@qq.com>
Date: Mon, 7 Mar 2022 14:21:27 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=A7=E8=BE=B9=E5=AF=BC?=
=?UTF-8?q?=E8=88=AA=E6=A0=8F=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E4=B8=BAmodal=E6=98=BE=E7=A4=BA=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
src/layout/index.vue | 338 +++++++++++++++++++--------------
src/settings/projectSetting.ts | 2 +
types/config.d.ts | 1 +
4 files changed, 196 insertions(+), 147 deletions(-)
diff --git a/.env.development b/.env.development
index 03e0f3d..8e4b0cc 100644
--- a/.env.development
+++ b/.env.development
@@ -15,7 +15,7 @@ VITE_DROP_CONSOLE = true
# 跨域代理,可以配置多个,请注意不要换行
#VITE_PROXY = [["/appApi","http://localhost:8001"],["/upload","http://localhost:8001/upload"]]
-# VITE_PROXY=[["/api","https://naive-ui-admin"]]
+VITE_PROXY=[["/api","https://naive-ui-admin"]]
# API 接口地址
VITE_GLOB_API_URL =
diff --git a/src/layout/index.vue b/src/layout/index.vue
index 4ac4a2b..66a8b93 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,7 +1,7 @@
+
+
+
+
+
@@ -57,170 +67,206 @@
-
+
diff --git a/src/settings/projectSetting.ts b/src/settings/projectSetting.ts
index f98926e..5abea51 100644
--- a/src/settings/projectSetting.ts
+++ b/src/settings/projectSetting.ts
@@ -33,6 +33,8 @@ const setting = {
fixed: true,
//分割菜单
mixMenu: false,
+ //触发移动端侧边栏的宽度
+ mobileWidth: 800
},
//面包屑
crumbsSetting: {
diff --git a/types/config.d.ts b/types/config.d.ts
index ca2f8e2..748df08 100644
--- a/types/config.d.ts
+++ b/types/config.d.ts
@@ -33,6 +33,7 @@ export interface ImenuSetting {
fixed: boolean;
mixMenu: boolean;
collapsed: boolean;
+ mobileWidth: number;
}
export interface IcrumbsSetting {