fix: remain in the same position of list when back

This commit is contained in:
niubility000 2024-03-16 02:59:02 +08:00 committed by GitHub
parent b27d5b2dcc
commit e54363472e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,6 @@
<breadcrumbs base="/files" /> <breadcrumbs base="/files" />
<listing /> <listing />
<transition name="closing">
<errors v-if="error" :errorCode="error.status" /> <errors v-if="error" :errorCode="error.status" />
<component v-else-if="currentView" :is="currentView"></component> <component v-else-if="currentView" :is="currentView"></component>
<div v-else-if="currentView !== null"> <div v-else-if="currentView !== null">
@ -17,7 +16,6 @@
<span>{{ $t("files.loading") }}</span> <span>{{ $t("files.loading") }}</span>
</h2> </h2>
</div> </div>
</transition>
</div> </div>
</template> </template>
@ -153,13 +151,3 @@ export default {
}, },
}; };
</script> </script>
<style>
.closing-leave-active {
animation: closing 0.5s
}
@keyframes closing {
to {
transform: scale(0);
}
}
</style>