解决适配问题

prod
许宏杰 10 months ago
parent bfebccd585
commit 14a0bbd6bc

@ -1,24 +1,22 @@
<template>
<div id="app">
<router-view />
<theme-picker />
</div>
</template>
<script>
import ThemePicker from "@/components/ThemePicker";
// import autofit from "autofit.js";
import autofit from "autofit.js";
export default {
name: "App",
components: { ThemePicker },
mounted() {
// console.log(window.innerHeight);
// autofit.init({
// dh: 919,
// dw: 1920,
// el: "body",
// resize: true,
// });
autofit.init({
dh: 919,
dw: 1920,
el: "body",
resize: true,
});
},
metaInfo() {
return {

@ -29,12 +29,12 @@ export default {
<style lang="scss" scoped>
.app-main {
/* 50= navbar 50 */
height: calc(100vh - 120px);
height: calc(100% - 120px);
width: 100%;
position: relative;
padding: 10px 10px 0 10px;
background: #f6f7f9;
overflow: hidden;
}
.fixed-header + .app-main {

@ -1,9 +0,0 @@
<template>
<h1>项目详情</h1>
</template>
<script>
export default {};
</script>
<style></style>
Loading…
Cancel
Save