邓洁 : 适配大屏
This commit is contained in:
26
src/App.vue
26
src/App.vue
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user