瀏覽代碼

feat: 修改暗黑模式下页面背景会同步变黑问题

zhouyuhao 1 年之前
父節點
當前提交
de98b3e6b6
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 1 0
      src/styles/index.scss
  2. 1 1
      src/views/Layout/src/LayoutView.vue
  3. 1 1
      vite.config.ts

+ 1 - 0
src/styles/index.scss

@@ -9,6 +9,7 @@
   font-size: var(--font-size-3);
   color: var(--color-neutral-1);
   // user-select: none;
+  background-color: white;
 }
 @font-face {
   font-family: 'Lato-Light'; /* 为字体定义一个名称 */

+ 1 - 1
src/views/Layout/src/LayoutView.vue

@@ -20,7 +20,7 @@ const handleMenuCollapse = (val: boolean) => {
       <div class="logo-bd">
         <el-image
           v-if="isCollapse"
-          style="width: 36px; height: 36px"
+          style="width: 40px; height: 40px"
           :src="LogoMenu"
           fit="cover"
         ></el-image>

+ 1 - 1
vite.config.ts

@@ -9,7 +9,7 @@ import IconsResolver from 'unplugin-icons/resolver'
 
 // https://vitejs.dev/config/
 export default defineConfig({
-  base: `/k_new_online/`,
+  base: `/`,
   resolve: {
     alias: {
       '@': fileURLToPath(new URL('./src', import.meta.url))