diff --git a/admin-views/.env b/admin-views/.env index c1057536..75d671ad 100644 --- a/admin-views/.env +++ b/admin-views/.env @@ -3,6 +3,6 @@ VITE_BASE_URL=/admin # 接口前缀 (默认) VITE_API_PREFIX=/admin-api # 代理地址, mode != production 时生效 -VITE_PROXY_URL=http://owl-admin-demo.test +VITE_PROXY_URL=http://owl-admin.test # 代理地址是否更改origin VITE_PROXY_CHANGE_ORIGIN=Y diff --git a/admin-views/src/layouts/DoubleLayout/index.tsx b/admin-views/src/layouts/DoubleLayout/index.tsx index 60b2685d..5d7aeb5f 100644 --- a/admin-views/src/layouts/DoubleLayout/index.tsx +++ b/admin-views/src/layouts/DoubleLayout/index.tsx @@ -124,13 +124,17 @@ export const DoubleLayout = () => { className="border-r overflow-y-auto" theme="light" collapsed={collapsed}> - {(!collapsed && !!childrenRoutes?.length) && ( -
- {getSetting('app_name')} +
+ {(!collapsed && !!childrenRoutes?.length) && ( +
+ {getSetting('app_name')} +
+ )} + +
+
- )} - - +