Skip to content

Commit f397e29

Browse files
committed
8.1.12
1 parent 7267a40 commit f397e29

4 files changed

Lines changed: 24 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# 更新日志
22

33
## v8.x.x
4+
5+
##8.1.12(2024-10-10)
6+
* **修改:** 修复Blazor和Vue下多租户工作流的Bug
7+
48
##8.1.10(2024-7-15)
59
* **修改:** 修复Layui导出查询条件不变的bug
610
* **修改:** 修复自带代码生成器Blazor生成代码大小写的问题

src/WalkingTec.Mvvm.Core/WorkFlow/ElsaTenantAccessor .cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ public Task<string> GetTenantIdAsync(CancellationToken cancellationToken = defau
2424

2525
string t = null;
2626
var wtm = _hca.HttpContext.RequestServices.GetRequiredService<WTMContext>();
27-
t = wtm?.LoginUserInfo?.CurrentTenant;
27+
if (wtm?.LoginUserInfo != null)
28+
{
29+
t = wtm?.LoginUserInfo?.CurrentTenant;
30+
}
31+
else
32+
{
33+
if (_hca.HttpContext.Request.Cookies.ContainsKey("workflowtenant"))
34+
{
35+
t = _hca.HttpContext.Request.Cookies["workflowtenant"];
36+
}
37+
}
2838
return Task.FromResult(t);
2939
}
3040
}

src/WalkingTec.Mvvm.Mvc/_WorkflowController.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ public IActionResult Inner()
3838
if (Wtm.LoginUserInfo.Roles.Any(x => x.RoleCode == "001") ||
3939
Wtm.LoginUserInfo.Roles.Any(x => x.RoleName == "流程管理员"))
4040
{
41+
if (Wtm.LoginUserInfo.TenantCode != null)
42+
{
43+
Response.Cookies.Append("workflowtenant", Wtm.LoginUserInfo.TenantCode);
44+
}
45+
else
46+
{
47+
Response.Cookies.Delete("workflowtenant");
48+
}
4149
return View();
4250
}
4351
return Forbid();

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>8.1.11</VersionPrefix>
3+
<VersionPrefix>8.1.12</VersionPrefix>
44
</PropertyGroup>
55

66
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)