v-scale-screen
使用yarn add v-scale-screen
在app.vue中
<template>
<v-scale-screen width="1920" height="1080">
<router-view></router-view>
</v-scale-screen>
</template>
<script setup lang="ts">
import VScaleScreen from 'v-scale-screen'
![](https://i-blog.csdnimg.cn/blog_migrate/c37cef7dfc1db37c3a76faf615ea5504.png)
使用yarn add v-scale-screen
在app.vue中
<template>
<v-scale-screen width="1920" height="1080">
<router-view></router-view>
</v-scale-screen>
</template>
<script setup lang="ts">
import VScaleScreen from 'v-scale-screen'