This commit is contained in:
Lexcubia 2025-04-21 11:11:08 +08:00
parent 1958abd246
commit 57a9b5adc5
3 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
<title>对话</title>
</head>
<body>
<div id="app"></div>

View File

@ -15,7 +15,7 @@ import Sidebar from '../components/Sidebar.vue'
<style scoped>
.main-layout {
display: flex;
height: 100%;
height: calc(100vh - var(--vh-offset, 0px));
/* min-width: 640px; */
overflow: hidden; /* 防止内部滚动影响布局 */
}

View File

@ -4,6 +4,7 @@ import App from "./App.vue";
import {router} from "@/router/index";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import vhCheck from 'vh-check'
// 引入 Element Plus
import ElementPlus from 'element-plus'
@ -20,4 +21,5 @@ app.use(router);
app.use(ElementPlus, {
locale: zhCn,
})
app.mount("#app");
app.mount("#app");
vhCheck()