11-mes-new/src/App.vue

31 lines
563 B
Vue
Raw Normal View History

2022-11-07 08:45:49 +08:00
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: 'App',
mounted() {
2022-11-09 15:30:00 +08:00
this.beilv = document.body.offsetWidth / 1920
document.documentElement.style.setProperty('--beilv', this.beilv)
window.addEventListener('resize', () => {
this.beilv = document.body.offsetWidth / 1920
document.documentElement.style.setProperty('--beilv', this.beilv)
})
},
data() {
2022-11-14 14:12:22 +08:00
return {
beilv: 1
}
2022-11-07 08:45:49 +08:00
}
}
</script>
<style lang="scss" scoped>
2022-11-09 15:30:00 +08:00
#app {
background-color: #f2f4f9;
}
2022-11-07 08:45:49 +08:00
</style>