Your ROOT_URL in app.ini is https://bdgit.educoder.net/ but you are visiting http://bdgit.educoder.net/pizvue73f/unilife/src/commit/ee406304c0ff654aec7bb19d37d7c5eb2e18b200/Front/vue-unilife/src/App.vue You should set ROOT_URL correctly, otherwise the web may not work correctly.
unilife/Front/vue-unilife/src/App.vue

29 lines
557 B

<template>
<HeaderBar v-if = "!route.meta.hideHeader"/>
<router-view/>
</template>
<script setup lang="ts">
import HeaderBar from './components/HeaderBar.vue'
import router from './routers/routers';
import { useRoute } from 'vue-router'
const route = useRoute()
</script>
<style>
/* 设置 body 背景渐变,清除异常布局设置 */
html, body, #app {
margin: 0;
padding: 0;
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
background: linear-gradient(200deg, #f3e7e9, #e3eeff);
overflow: hidden;
}
</style>