feat: 完成多租户模块基础搭建

This commit is contained in:
橙子
2024-02-09 17:47:32 +08:00
parent 58fceea247
commit e30586d314
3 changed files with 6 additions and 1 deletions

View File

@@ -125,7 +125,12 @@ namespace Yi.Abp.Web
Configure<AbpTenantResolveOptions>(options =>
{
//基于cookie jwt不好用有坑
options.TenantResolvers.RemoveAll(x => x.Name == CookieTenantResolveContributor.ContributorName);
options.TenantResolvers.Clear();
options.TenantResolvers.Add(new HeaderTenantResolveContributor());
//options.TenantResolvers.Add(new HeaderTenantResolveContributor());
//options.TenantResolvers.Add(new CookieTenantResolveContributor());
//options.TenantResolvers.RemoveAll(x => x.Name == CookieTenantResolveContributor.ContributorName);
});
//jwt鉴权