diff --git a/packages/app/pages/db/resources/[resourceName]/instances/[instanceId]/index.vue b/packages/app/pages/db/resources/[resourceName]/instances/[instanceId]/index.vue index 3f58551..70fc565 100644 --- a/packages/app/pages/db/resources/[resourceName]/instances/[instanceId]/index.vue +++ b/packages/app/pages/db/resources/[resourceName]/instances/[instanceId]/index.vue @@ -159,6 +159,13 @@ async function onSubmitInstance(value: any) { // Collapse const collapse = useLocalStorage('resource-instance-collapse', false) +const scroller = ref(null) + +watchEffect(() => { + if (!collapse.value && scroller.value) { + scroller.value.scrollTop = 0 + } +})