From 0ddf2a73acca612185243f0556566ea4bcfa9e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 22 May 2024 15:01:08 +0800 Subject: [PATCH] fix: disable hide location on switching view --- components/OutputContainer.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/OutputContainer.vue b/components/OutputContainer.vue index 090c299..da2c737 100644 --- a/components/OutputContainer.vue +++ b/components/OutputContainer.vue @@ -64,6 +64,12 @@ function toggleHideLocationData() { autoFocus.value = false } } + +watch(outputView, (view) => { + if (view === 'json' && autoFocus.value) { + hideLocationData.value = false + } +})