fix --safe-area-inset-top

This commit is contained in:
Timi
2026-11-05 17:32:33 +08:00
parent 2b3da3c97b
commit a11725bc12
2 changed files with 18 additions and 6 deletions
+4 -3
View File
@@ -313,7 +313,7 @@ export function useMasterDetailPane(options: UseMasterDetailPaneOptions): UseMas
if (options.syncQuery !== false) {
watch([selectedId, editing], ([id, isEditing]) => {
// 窄屏走的是整页详情路由,列表页不该再改 query 把它顶掉
if (!isWide.value) {
if (!isWide.value || route.path !== options.path) {
return;
}
@@ -349,11 +349,12 @@ export function useMasterDetailPane(options: UseMasterDetailPaneOptions): UseMas
if (options.syncQuery !== false) {
watch(
() => [
route.path,
String(route.query[queryKey] || ""),
String(route.query[viewKey] || "")
] as const,
([nextId, nextView]) => {
if (!isWide.value) {
([path, nextId, nextView]) => {
if (!isWide.value || path !== options.path) {
return;
}