You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
frontend/src/App.vue

32 lines
536 B
Vue

2 years ago
<template>
2 years ago
<div id="app" class="greenStyle">
2 years ago
<router-view> </router-view>
</div>
2 years ago
</template>
<script>
export default {
2 years ago
name: "App",
data() {
2 years ago
return {
pageScreen: window.innerWidth,
};
},
mounted() {
this.pageWidth();
},
methods: {
pageWidth() {
console.log(this.pageScreen);
window.addEventListener("resize", () => {
this.pageScreen = window.innerWidth;
});
},
2 years ago
},
created() {
2 years ago
//new DevicePixelRatio().init();
},
2 years ago
};
</script>
2 years ago
<style lang="less"></style>