feat:适配多租户
This commit is contained in:
1 parent
cdbb69f843
commit
b370be9111
13 files changed
+175
-8
No files matched your search
@@ -125,6 +125,10 @@ abstract class AppSettingTool {
|
||||
static Future<void> setUserSetting(UserSetting userInfo) async {
|
||||
final globalUserInfo = await getUserSetting();
|
||||
if (globalUserInfo == userInfo) return;
|
||||
if (ObjectUtil.isEmpty(userInfo.tenantId) &&
|
||||
ObjectUtil.isNotEmpty(globalUserInfo.tenantId)) {
|
||||
userInfo.tenantId = globalUserInfo.tenantId;
|
||||
}
|
||||
await _setSetting(userJson: userInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user