fix(mp): 二轮审计修复 — ScrollView嵌套/InputField重建/markdown分组/BLE上限/缓存清理
CRITICAL: ai-report/list PageShell scroll=false 修复双重滚动冲突 HIGH: dialysis/create InputField 提取为独立组件避免 render 销毁重建 MEDIUM: markdownToHtml 连续<li>合并到单个<ul> MEDIUM: 咨询详情页图片添加 lazyLoad MEDIUM: BLEManager readings 添加 MAX_LIVE_READINGS=200 上限 MEDIUM: DataBuffer trimToMax 时重建 seenKeys 保持一致性 MEDIUM: auth.ts logout 清理模块级缓存变量 LOW: request.ts safeReLaunch 添加 console.warn + doRefresh 死锁警告注释
This commit is contained in:
@@ -241,6 +241,13 @@ export const useAuthStore = create<AuthState>((set, get) => ({
|
||||
markLoggingOut();
|
||||
clearRequestCache();
|
||||
setCachedPatientId('');
|
||||
// 清理模块级缓存
|
||||
cachedUserJson = '';
|
||||
cachedUserObj = null;
|
||||
cachedRolesJson = '';
|
||||
cachedRolesObj = [];
|
||||
cachedPatientJson = '';
|
||||
cachedPatientObj = null;
|
||||
secureRemove('access_token');
|
||||
secureRemove('refresh_token');
|
||||
secureRemove('token_expires_at');
|
||||
|
||||
Reference in New Issue
Block a user