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

<style lang="less"></style>
