升级 AppStore 缓存 Key 并在覆盖安装时强制重新登录。
统一账号作用域 Key 对齐 Android,新增缓存 schema 迁移清理旧数据,并同步更新相关模块与单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -113,6 +113,9 @@ final class HomeViewModel {
|
||||
|
||||
appStore.permissions.saveRolePermissionList(rolePermissionList)
|
||||
let matched = appStore.permissions.matchRolePermissionItem(in: rolePermissionList) ?? rolePermissionList[0]
|
||||
if !matched.role.roleCode.isEmpty {
|
||||
appStore.session.roleCode = matched.role.roleCode
|
||||
}
|
||||
if !matched.role.name.isEmpty {
|
||||
appStore.session.roleName = matched.role.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user