邓洁 : 适配大屏

This commit is contained in:
邓洁
2023-12-07 21:21:19 +08:00
parent 2b7115d7c1
commit bf564e8e9b
5 changed files with 61 additions and 6 deletions

View File

@@ -1,7 +1,31 @@
<template>
<RouterView />
<RouterView/>
</template>
<script setup>
import autofit from 'autofit.js';
onMounted(() => {
autofit.init({
dh: 2160,
dw: 3840,
el: "#app",
resize: true,
ignore: [
{
el: "#tunnel-box", //必填
height: "100vh", //可选,需注明单位
width: "100vw", //可选,需注明单位
}, {
el: "#login-box", //必填
height: "100vh", //可选,需注明单位
width: "100vw", //可选,需注明单位
},{
el: "#chat-box", //必填
height: "100vh", //可选,需注明单位
width: "100vw", //可选,需注明单位
}
],
});
});
</script>