Страницы открываются сверху

This commit is contained in:
2020-08-06 01:26:53 +03:00
parent 9bb06dd1b8
commit 92b66da48e
4 changed files with 14 additions and 0 deletions

View File

@@ -25,6 +25,9 @@
<script> <script>
export default { export default {
name: "Contact", name: "Contact",
mounted () {
window.scrollTo(0, 0);
}
} }
</script> </script>

View File

@@ -91,6 +91,7 @@ export default {
}, },
mounted() { mounted() {
window.addEventListener('scroll', this.handleScroll); window.addEventListener('scroll', this.handleScroll);
window.scrollTo(0, 0)
} }
} }
</script> </script>

View File

@@ -187,6 +187,7 @@ export default {
}, },
mounted() { mounted() {
//navigator.geolocation.getCurrentPosition(this.selectNearest); //navigator.geolocation.getCurrentPosition(this.selectNearest);
window.scrollTo(0, 0);
} }
}; };
</script> </script>

View File

@@ -11,6 +11,15 @@
</div> </div>
</template> </template>
<script>
export default {
name: "Order",
mounted () {
window.scrollTo(0, 0);
}
}
</script>
<style scoped> <style scoped>
.main { .main {
display: flex; display: flex;