fix(layout): 更新移动侧边栏样式以支持深色模式
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 4m22s
CI/CD Pipeline / build-and-deploy (push) Successful in 5m23s

This commit is contained in:
严浩
2025-10-21 23:09:59 +08:00
parent e54272b68b
commit 1afb28cb2b
4 changed files with 14 additions and 4 deletions

View File

@@ -30,7 +30,13 @@ import { ViteWebfontDownload } from 'vite-plugin-webfont-dl';
import VueMacros from 'vue-macros/vite';
import { IndexHtmlPlugin } from './vite.config.plugin.index-html-plugin';
export function Plugins({ mode }: { mode: string }): PluginOption[] {
export function Plugins({
mode,
env,
}: {
mode: string;
env: Record<string, string>;
}): PluginOption[] {
const plugins: PluginOption[] = [
VueMacros({
plugins: {
@@ -165,8 +171,11 @@ export function Plugins({ mode }: { mode: string }): PluginOption[] {
);
}
if (env.VITE_ENABLE_VUE_DEVTOOLS === 'true') {
plugins.push(vueDevTools());
}
plugins.push(
vueDevTools(),
// https://vite-plugin-checker.netlify.app/introduction/introduction.html
checker({
eslint: {