在config文件index.js文件下build下改(加一点)
assetsPublicPath: './',
页面自适应高度
<template>
<div style="background:#f65447;" class="box" :style="obj"></div>
</template>
<script>
export default {
data() {
return {
obj:{
height:""
}
};
},
mounted(){
this.obj.height=window.innerHeight+"px";
}
};
</script>