fix(admin): 消除骨架屏→认证→正常页面的布局闪烁
合并 (true, None) 和 (false, _) 两个分支为统一的 fallback 骨架屏。 旧 (true, None) 分支渲染无侧边栏的全屏居中文字「正在验证身份...」, 与骨架屏 / 正常页面的侧边栏+卡片布局完全不同,在 checked.set(true) 同步触发 re-render 时产生明显的布局跳变。统一后三个状态的布局结构 一致,过渡平滑无闪烁。
This commit is contained in:
parent
53de550d7c
commit
d690910efa
@ -139,16 +139,7 @@ pub fn AdminLayout() -> Element {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(true, None) => {
|
_ => {
|
||||||
rsx! {
|
|
||||||
div { class: "{root_class}",
|
|
||||||
div { class: "flex-1 flex items-center justify-center font-medium text-sm text-[var(--color-paper-secondary)]",
|
|
||||||
"正在验证身份..."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
(false, _) => {
|
|
||||||
rsx! {
|
rsx! {
|
||||||
div { class: "{root_class}",
|
div { class: "{root_class}",
|
||||||
{nav_content}
|
{nav_content}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user