+ {{ 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,
{{ 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,