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 @@ - + 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 {