masastack / MASA.Blazor

Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
https://docs.masastack.com/blazor/getting-started/installation
Other
1.19k stars 160 forks source link

[Bug Report]: PPageStack使用在不同母模版时,堆栈工作不正常 #2181

Open zdp120 opened 1 month ago

zdp120 commented 1 month ago

Masa.Blazor version

1.7.4

Describe the bug

当程序需要用到多个模版mainlayout,mainlayout2等多个模版的时候,每个模版里嵌套PPageStack会导致生成多个不同的堆栈,在页面导航时,页面堆栈返回不正常,希望能有办法建立一个总堆栈的概念,便于页面返回工作正常。

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

9.0 rc1

What browsers are you seeing the problem on?

No response

Additional context

No response

capdiem commented 1 month ago

@zdp120 PageStack是一个组件实例一个套堆栈历史,一般来说一个layout一个PageStack,所以跨layout不工作是正常的。我会尝试跨layout的pagestack实现。