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

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>
export default {
name: "Contact",
mounted () {
window.scrollTo(0, 0);
}
}
</script>

View File

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

View File

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

View File

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