diff --git a/src/pages/docs/main/struct/[struct].vue b/src/pages/docs/main/struct/[struct].vue index 775204f..a6eb0f8 100644 --- a/src/pages/docs/main/struct/[struct].vue +++ b/src/pages/docs/main/struct/[struct].vue @@ -25,7 +25,7 @@
-
+

{{ docs.Name }} @@ -225,6 +225,15 @@ export default defineComponent({ docsjson: {}, }; }, + + watch:{ + docs(prevV, currV ){ + if(prevV !== currV) { + (this.$refs.article as HTMLElement ).scrollIntoView({ behavior: 'smooth', block: 'start' }) + }; + }, + }, + async created() { this.$watch( () => this.$route.params,