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

View File

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

View File

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