feat: 修复 H5 底部导航覆盖 + 更新项目进度文档
## H5 底部导航修复 (Bug #10) - 精简 App.vue,移除重复 tabbar,仅保留全局样式 - uni-page 设置 height: calc(100% - 50px) + overflow-y: auto - 内容区域精确停在底部导航上方,独立滚动不再叠加 - 恢复 custom-tab-bar 组件 ## 项目进度文档 - PROGRESS.md 更新至 10 个 Bug 修复 - 新增 H5 底部导航修复记录 - 新增历史变更条目
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from app.config import settings
|
||||
import redis.asyncio as aioredis
|
||||
from redis.asyncio import ConnectionPool
|
||||
|
||||
_pool = None
|
||||
|
||||
|
||||
async def get_redis():
|
||||
global _pool
|
||||
if _pool is None:
|
||||
_pool = ConnectionPool.from_url(settings.REDIS_URL, max_connections=20)
|
||||
return aioredis.Redis(connection_pool=_pool)
|
||||
|
||||
|
||||
async def close_redis():
|
||||
global _pool
|
||||
if _pool:
|
||||
await _pool.disconnect()
|
||||
_pool = None
|
||||
Reference in New Issue
Block a user