fix --safe-area-inset-top
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user